Pol
Revision:cb584c9
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
help.cpp
Go to the documentation of this file.
1
6
#include <stddef.h>
7
8
#include "../bscript/eprog.h"
9
#include "../clib/refptr.h"
10
#include "../plib/systemstate.h"
11
#include "
mobile/charactr.h
"
12
#include "
network/client.h
"
13
#include "
pktin.h
"
14
#include "
scrstore.h
"
15
16
namespace
Pol
17
{
18
namespace
Core
19
{
20
void
handle_help
(
Network::Client
* client,
PKTIN_9B
*
/*msg*/
)
21
{
22
ref_ptr<Bscript::EScriptProgram>
prog =
23
find_script
(
"misc/help"
,
true
,
Plib::systemstate
.config.cache_interactive_scripts );
24
if
( prog.
get
() != nullptr )
25
{
26
client->
chr
->
start_script
( prog.
get
(), false );
27
}
28
}
29
}
30
}
Pol::Core::PKTIN_9B
Definition:
pktin.h:332
Pol::Plib::systemstate
SystemState systemstate
Definition:
systemstate.cpp:12
ref_ptr::get
T * get() const
Definition:
refptr.h:176
charactr.h
Pol::Network::Client
Definition:
client.h:133
Pol::Network::Client::chr
Mobile::Character * chr
Definition:
client.h:182
Pol::Core::handle_help
void handle_help(Network::Client *client, PKTIN_9B *)
Definition:
help.cpp:20
ref_ptr< Bscript::EScriptProgram >
pktin.h
Pol::Mobile::Character::start_script
bool start_script(Bscript::EScriptProgram *prog, bool start_attached, Bscript::BObjectImp *param2=nullptr, Bscript::BObjectImp *param3=nullptr, Bscript::BObjectImp *param4=nullptr)
Definition:
chrituse.cpp:30
client.h
Pol::Core::find_script
ref_ptr< Bscript::EScriptProgram > find_script(const std::string &name, bool complain_if_not_found, bool cache_script)
Definition:
scrstore.cpp:38
scrstore.h
Pol
Definition:
berror.cpp:12
pol
help.cpp
Generated on Wed Oct 10 2018 02:41:59 for Pol by
1.8.11