19 #ifndef __NPCMESSAGES_H__ 20 #define __NPCMESSAGES_H__ 24 #include <csutil/csstring.h> 25 #include <csutil/databuf.h> 26 #include <csgeom/vector3.h> 57 const char *password);
182 void AddRace(csString& name,
float walkSpeed,
float runSpeed,
const csVector3& size,
float scale,
bool last);
298 #define ALLENTITYPOS_SIZE_PER_ENTITY (4 * sizeof(float) + sizeof(bool) + sizeof(uint32_t) + 100*sizeof(char)) 299 #define ALLENTITYPOS_MAX_AMOUNT (MAX_MESSAGE_SIZE-2)/ALLENTITYPOS_SIZE_PER_ENTITY 329 void SetLength(
int size,
int client);
332 void Add(EID
id, csVector3 & pos, iSector* & sector,
InstanceID instance, csStringSet* msgstrings,
bool forced =
false);
335 EID Get(csVector3 & pos, iSector* & sector,
InstanceID & instance,
bool &forced, csStringSet* msgstrings,
336 csStringHashReversible* msgstringshash, iEngine* engine);
436 static const char *petCommandString[];
443 psPETCommandMessage(uint32_t clientToken,
int cmd,
const char * target,
const char * options);
The 3rd message sent from server to superclient after successful login.
csString flags
String with flags.
bool enable
Enable or disable flags.
The message sent from server to superclient after successful NPC Creation.
Class to hold information regarding aliases for waypoints.
Command to superclient used to change the brain of a npc.
The message sent from superclient to server after receiving all entities.
virtual csString ToString(NetBase::AccessPointers *accessPointers)
Converts the message into human readable string.
Struct used by MessageCracker and ToString to distribute a number of access pointers.
uint32_t aliasID
The id of aliases.
The message sent from server to superclient every 2.5 seconds.
csString string
The string for add alias/flag set.
csArray< NPCRaceInfo_t > raceInfo
psAllEntityPosMessage()
Create psMessageBytes struct for outbound use.
float scale
The scale override of this race.
The structure of 1 queue entry (pointer to a message)
The message sent from client to server on login.
A waypoint is a specified circle on the map with a name, location, and a list of waypoints it is conn...
iSector * sector
The sector for new or adjusted elements.
uint32_t prevID
ID of previous point in a region.
bool enable
Enable or disable flags.
The message sent from superclient to server on login.
The message sent from server to superclient after successful login.
This stores a vector of positions listing a set of points defining a common type of location...
The message sent from client to server to control the players pet.
Command the superclient to change the debug level of a tribe.
csVector3 position
The position for new or adjusted elements.
int count
Hold the number of entity positions after the message is cracked.
Handle PathNetwork changes from server to superclient.
csVector3 position
The position for new or adjusted elements.
All net messages inherit from this class.
psNPCAuthenticationMessage(uint32_t clientnum, const char *userid, const char *password)
This function creates a PS Message struct given a userid and password to send out.
iSector * sector
The sector for new or adjusted elements.
Handle Location changes from server to superclient.
csString flags
String with flags.
Server command message is for using npcclient as a remote command and debugging console for psserver...
PSF_DECLARE_MSG_FACTORY()
The message sent from server to superclient upon a successful work done.
uint32_t id
ID of the location/location type.
float rotationAngle
The rotation angle for this element.
The message sent from server to superclient when a NPC is deleted from the server.
Command the superclient to change the debug level of a npc.
uint32_t id
ID of waypoint/point/segment.
csString name
On average the name should not exceed 100 characters.
csString typeName
Type name.
A Location is a named place on the map, located dynamically by NPCs as scripted.
float rotationAngle
The rotation angle for aliases.
Represents a point on a path between two waypoints.
The 2nd message sent from server to superclient after successful login.
The message sent from server to superclient after successful login.