Crossfire Server, Trunk
registered_command Struct Reference
+ Collaboration diagram for registered_command:

Data Fields

char * extra
 
command_function_extra func_extra
 
command_function func_std
 
command_registration registration
 
float time
 
uint8_t type
 

Detailed Description

Represents one command.

Definition at line 33 of file commands.cpp.

Field Documentation

◆ extra

char* registered_command::extra

Extra argument, if not NULL then func_extra is used, else func_std.

Definition at line 37 of file commands.cpp.

Referenced by command_execute(), and do_register().

◆ func_extra

command_function_extra registered_command::func_extra

Command function if extra argument.

Definition at line 36 of file commands.cpp.

Referenced by command_execute(), and do_register().

◆ func_std

command_function registered_command::func_std

Command function.

Definition at line 35 of file commands.cpp.

Referenced by command_execute(), and do_register().

◆ registration

command_registration registered_command::registration

Identifier for unregistration.

Definition at line 34 of file commands.cpp.

Referenced by do_register().

◆ time

float registered_command::time

How long it takes to execute this command.

Definition at line 38 of file commands.cpp.

Referenced by command_execute(), and do_register().

◆ type

uint8_t registered_command::type

Command type, one of COMMAND_TYPE_xxx.

Definition at line 39 of file commands.cpp.

Referenced by do_register().


The documentation for this struct was generated from the following file: