Inherits INpcTaskInstance.
Public Member Functions | |
CNpcTaskInstance (CNpcTask& task) | |
uint | get_WaitTime () |
void | set_WaitTime (uint value) |
void | SetData (string& name, array< uint8 >& data) |
bool | GetData (string& name, array< uint8 >& outData) |
void | ClearData (string& name) |
void | Start () |
void | Finish () |
void | Run (Critter& npc) |
void | Save (Buffer& buffer) |
void | Load (Buffer& buffer) |
Public Attributes | |
CNpcTask@ | prototype |
uint | idx |
NpcTaskState | state |
uint | lastRun |
uint | nextRun |
uint | waitTime |
array< CNpcTaskAction@> | actionsQueue |
array< bool > | ifs |
array< CNpcTaskInstanceData@> | data |
CNpcTaskInstance | ( | CNpcTask& | task | ) |
uint get_WaitTime | ( | ) |
void set_WaitTime | ( | uint | value | ) |
void SetData | ( | string& | name, | |
array< uint8 >& | data | |||
) |
bool GetData | ( | string& | name, | |
array< uint8 >& | outData | |||
) |
Implements INpcTaskInstance.
void ClearData | ( | string& | name | ) |
Implements INpcTaskInstance.
void Start | ( | ) |
void Finish | ( | ) |
void Run | ( | Critter& | npc | ) |
void Save | ( | Buffer& | buffer | ) |
void Load | ( | Buffer& | buffer | ) |
uint idx |
NpcTaskState state |
uint lastRun |
uint nextRun |
uint waitTime |
array<CNpcTaskAction@> actionsQueue |
array<bool> ifs |
array<CNpcTaskInstanceData@> data |