SPN C++ Bot Framework
Loading...
Searching...
No Matches
Public Attributes | List of all members
IpcSharedMemory Struct Reference

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.
 

Detailed Description

Shared memory structure.

This structure represents the contents of the memory the bot shares with the gameserver.

Member Data Documentation

◆ logData

char IpcSharedMemory::logData[IPC_LOG_MAX_BYTES]

Log data for the current frame.

May contain multiple lines.