Jazz2::Multiplayer::GameModes::GameModeObject struct

Object in the level owned by a game mode.

The server keeps the list, the game mode changes it and asks the host to synchronize it, see IGameModeContext::SyncGameModeObjects(). Both sides show each object with a local actor driven by this state, it's never remoted as an actor.

Public static variables

static std::uint8_t NeutralTeam constexpr
Value of Team that means no team.

Public variables

std::uint32_t Id
Identifier unique within the round, so an object keeps its actor while the list changes.
GameModeObjectType Type
Type.
std::uint8_t Team
Owning team, or NeutralTeam.
std::uint8_t CapturingTeam
Team currently capturing the object, or NeutralTeam.
std::uint8_t Progress
Capture progress from 0 to 255.
std::int8_t Direction
Facing direction, 1 for right, -1 for left.
Vector2f Pos
Position.
std::uint32_t CarrierPlayerIndex
Player index of the carrier (GameModeObjectType::Flag), or UINT32_MAX.
String Name
Name, e.g. of a control point.