mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-28 16:37:23 +00:00
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
|
#pragma once
|
||
|
|
||
|
#ifndef __CONTROLBEHAVIORS__H__
|
||
|
#define __CONTROLBEHAVIORS__H__
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
#include "RakNetTypes.h"
|
||
|
|
||
|
class Entity;
|
||
|
class AMFArrayValue;
|
||
|
|
||
|
namespace ControlBehaviors {
|
||
|
/**
|
||
|
* @brief Main driver for processing Property Behavior commands
|
||
|
*
|
||
|
* @param modelEntity The model that sent this command
|
||
|
* @param sysAddr The SystemAddress to respond to
|
||
|
* @param arguments The arguments formatted as an AMFArrayValue
|
||
|
* @param command The command to perform
|
||
|
* @param modelOwner The owner of the model which sent this command
|
||
|
*/
|
||
|
void ProcessCommand(Entity* modelEntity, const SystemAddress& sysAddr, AMFArrayValue* arguments, std::string command, Entity* modelOwner);
|
||
|
|
||
|
/**
|
||
|
* @brief Helper function to send the behavior list to the client
|
||
|
*
|
||
|
* @param modelEntity The model that sent this command
|
||
|
* @param sysAddr The SystemAddress to respond to
|
||
|
* @param modelOwner The owner of the model which sent this command
|
||
|
*/
|
||
|
void SendBehaviorListToClient(Entity* modelEntity, const SystemAddress& sysAddr, Entity* modelOwner);
|
||
|
};
|
||
|
|
||
|
#endif //!__CONTROLBEHAVIORS__H__
|