Crate airmash_protocol[−][src]
Modules
client | |
error |
All error types for this crate. |
server |
Structs
AirmashUnits |
The struct for this unit system |
Flag | |
Level |
Type-safe Level identifier |
Mob |
A mob (missile, upgrade, or powerup) ID |
Player |
A player ID |
Score |
Type-safe score identifier |
ServerKeyState |
All possible "keys" that a player can have activated. |
Team |
Type-safe team identifier |
Upgrades |
Upgrade info that a client needs to know about to calculate movement. This also includes the shielded state of the player. |
Vector2 |
Enums
ClientPacket |
All possible client packets. |
CommandReplyType |
TODO: Reverse engineer |
ErrorType |
All error codes that can be sent to the client. |
FirewallStatus |
TODO: Reverse engineer |
FirewallUpdateType |
TODO: Reverse engineer |
FlagCode |
All player flags currently available within the game. |
FlagUpdateType |
Flag update type |
GameType |
Game Type. |
KeyCode |
The key that's had it's state changed. This is only used for client -> server communication. |
LeaveHorizonType |
Indicates the type of entity that just went outside of the player's horizon. |
MobType |
Types of all mobs present in the game. |
PlaneType |
Used to indicate the type of plane that the packet refers to. |
PlayerLevelType |
Indicate whether a player levelled up, or has just logged in and their level is being communicated to the client. |
PlayerStatus |
Flag for indicating whether a player is alive or dead. |
PowerupType |
TODO: Reverse engineer |
ServerCustomType |
Specific identifiers for server custom messages. |
ServerMessageType |
Type specifier for server banner messages. |
ServerPacket |
All possible server packets. |
UpgradeType |
TODO: Reverse engineer |
Traits
Protocol |
Interface to implement for all protocols. |
ProtocolSerializationExt |
Helper trait to make working with protocols easier. |
Type Definitions
Accel | |
AccelScalar | |
BaseType | |
Distance | |
Energy | |
EnergyRegen | |
Health | |
HealthRegen | |
Position | |
Rotation | |
RotationRate | |
Speed | |
Time | |
Velocity |