SPN C++ Bot Framework
|
Shared memory structure. More...
#include <ipc_format.h>
Public Attributes | |
struct IpcServerConfig | serverConfig |
Information about the world and server configuration. | |
struct IpcSelfInfo | selfInfo |
Information about your snake (updated every frame). | |
uint32_t | foodCount |
Number of items used in foodInfo. | |
struct IpcFoodInfo | foodInfo [IPC_FOOD_MAX_COUNT] |
List of food items seen by the snake. | |
uint32_t | botCount |
Number of items used in botInfo. | |
struct IpcBotInfo | botInfo [IPC_BOT_MAX_COUNT] |
List of bots related to segments in segmentInfo. | |
uint32_t | segmentCount |
Number of items used in segmentInfo. | |
struct IpcSegmentInfo | segmentInfo [IPC_SEGMENT_MAX_COUNT] |
List of segments seen by the snake. | |
uint32_t | colorCount |
Number of items used in colors. | |
struct IpcColor | colors [IPC_COLOR_MAX_COUNT] |
Colors to set for this snake. | |
char | logData [IPC_LOG_MAX_BYTES] |
Log data for the current frame. More... | |
uint32_t | faceID |
Select a face for your snake (not used yet). | |
uint32_t | dogTagID |
Select a dog tag for your snake (not used yet). | |
uint8_t | persistentData [IPC_PERSISTENT_MAX_BYTES] |
Persistent data: will be saved after your snake dies and restored when it respawns. | |
Shared memory structure.
This structure represents the contents of the memory the bot shares with the gameserver.
char IpcSharedMemory::logData[IPC_LOG_MAX_BYTES] |
Log data for the current frame.
May contain multiple lines.