Documentation
¶
Index ¶
- type Character
- type Damage
- type DeClientInfo
- type DeGameInfo
- type DeTuneParams
- type Death
- type Explosion
- type Flag
- type GameData
- type GameDataFlag
- type GameDataRace
- type GameDataTeam
- type HammerHit
- type Laser
- type Pickup
- type PlayerInfo
- type PlayerInfoRace
- type PlayerInput
- type Projectile
- type SnapObject
- type SoundWorld
- type Spawn
- type SpectatorInfo
- type Unknown
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character struct { ItemId int Tick int X int Y int VelX int VelY int Angle int Direction int Jumped int HookedPlayer int HookState int HookTick int HookX int HookY int HookDx int HookDy int Health int Armor int AmmoCount int Weapon network7.Weapon Emote network7.EyeEmote AttackTick int TriggeredEvents int }
type Damage ¶
type Damage struct { ItemId int X int Y int // affected player receiving damage ClientId int Angle int HealthAmount int ArmorAmount int // true if the damage receiver the damage dealer Self bool }
damage indicicator displayed as yellow stars around the tee receiving damage
type DeClientInfo ¶
type DeClientInfo struct { ItemId int Local bool Team network7.GameTeam Name [4]int Clan [4]int Country int SkinPartNames [6][6]int UseCustomColors [6]int SkinPartColors [6]int }
only used for demos not sent over the network
func (*DeClientInfo) Id ¶
func (o *DeClientInfo) Id() int
func (*DeClientInfo) Pack ¶
func (o *DeClientInfo) Pack() []byte
func (*DeClientInfo) Size ¶
func (o *DeClientInfo) Size() int
func (*DeClientInfo) TypeId ¶
func (o *DeClientInfo) TypeId() int
type DeGameInfo ¶
type DeGameInfo struct { ItemId int GameFlags int ScoreLimit int TimeLimit int MatchNum int MatchCurrent int }
only used for demos never send over the network
func (*DeGameInfo) Id ¶
func (o *DeGameInfo) Id() int
func (*DeGameInfo) Pack ¶
func (o *DeGameInfo) Pack() []byte
func (*DeGameInfo) Size ¶
func (o *DeGameInfo) Size() int
func (*DeGameInfo) TypeId ¶
func (o *DeGameInfo) TypeId() int
type DeTuneParams ¶
only used for demos never send over the network
func (*DeTuneParams) Id ¶
func (o *DeTuneParams) Id() int
func (*DeTuneParams) Pack ¶
func (o *DeTuneParams) Pack() []byte
func (*DeTuneParams) Size ¶
func (o *DeTuneParams) Size() int
func (*DeTuneParams) TypeId ¶
func (o *DeTuneParams) TypeId() int
type GameData ¶
type GameDataFlag ¶
type GameDataFlag struct { ItemId int // It is either the client id of the carrier so 0-64 or one of those values // // -3 - FLAG_MISSING // -2 - FLAG_ATSTAND // -1 - FLAG_TAKEN FlagCarrierRed int // It is either the client id of the carrier so 0-64 or one of those values // // -3 - FLAG_MISSING // -2 - FLAG_ATSTAND // -1 - FLAG_TAKEN FlagCarrierBlue int FlagDropTickRed int FlagDropTickBlue int }
func (*GameDataFlag) Id ¶
func (o *GameDataFlag) Id() int
func (*GameDataFlag) Pack ¶
func (o *GameDataFlag) Pack() []byte
func (*GameDataFlag) Size ¶
func (o *GameDataFlag) Size() int
func (*GameDataFlag) TypeId ¶
func (o *GameDataFlag) TypeId() int
type GameDataRace ¶
this is a new snap item that was added after the 0.7 release so for backwards compability it includes a size field and older clients ignore it
this message is not used by official servers and is part of an effort to support community made race modifications
func (*GameDataRace) Id ¶
func (o *GameDataRace) Id() int
func (*GameDataRace) Pack ¶
func (o *GameDataRace) Pack() []byte
func (*GameDataRace) Size ¶
func (o *GameDataRace) Size() int
func (*GameDataRace) TypeId ¶
func (o *GameDataRace) TypeId() int
type GameDataTeam ¶
func (*GameDataTeam) Id ¶
func (o *GameDataTeam) Id() int
func (*GameDataTeam) Pack ¶
func (o *GameDataTeam) Pack() []byte
func (*GameDataTeam) Size ¶
func (o *GameDataTeam) Size() int
func (*GameDataTeam) TypeId ¶
func (o *GameDataTeam) TypeId() int
type PlayerInfo ¶
func (*PlayerInfo) Id ¶
func (o *PlayerInfo) Id() int
func (*PlayerInfo) Pack ¶
func (o *PlayerInfo) Pack() []byte
func (*PlayerInfo) Size ¶
func (o *PlayerInfo) Size() int
func (*PlayerInfo) TypeId ¶
func (o *PlayerInfo) TypeId() int
type PlayerInfoRace ¶
this is a new snap item that was added after the 0.7 release so for backwards compability it includes a size field and older clients ignore it
this message is not used by official servers and is part of an effort to support community made race modifications
func (*PlayerInfoRace) Id ¶
func (o *PlayerInfoRace) Id() int
func (*PlayerInfoRace) Pack ¶
func (o *PlayerInfoRace) Pack() []byte
func (*PlayerInfoRace) Size ¶
func (o *PlayerInfoRace) Size() int
func (*PlayerInfoRace) TypeId ¶
func (o *PlayerInfoRace) TypeId() int
type PlayerInput ¶
type PlayerInput struct { ItemId int Direction int TargetX int TargetY int Jump int Fire int Hook int PlayerFlags int WantedWeapon int NextWeapon int PrevWeapon int }
this object is never included in the snap the same order of ints is sent in the system message input
but technically this item is unused
func (*PlayerInput) Id ¶
func (o *PlayerInput) Id() int
func (*PlayerInput) Pack ¶
func (o *PlayerInput) Pack() []byte
func (*PlayerInput) Size ¶
func (o *PlayerInput) Size() int
func (*PlayerInput) TypeId ¶
func (o *PlayerInput) TypeId() int
type Projectile ¶
func (*Projectile) Id ¶
func (o *Projectile) Id() int
func (*Projectile) Pack ¶
func (o *Projectile) Pack() []byte
func (*Projectile) Size ¶
func (o *Projectile) Size() int
func (*Projectile) TypeId ¶
func (o *Projectile) TypeId() int
type SnapObject ¶
type SnapObject interface { // id separating this snap item from other items with same type // the ids are unique per type // for players it matches their ClientId Id() int // type of the snap item TypeId() int // number of packed integers // not the number of bytes // // only counting the payload // not the type id or item id // and also not the optional size field (game data race, player info race) Size() int Pack() []byte Unpack(u *packer.Unpacker) error }
type SoundWorld ¶
func (*SoundWorld) Id ¶
func (o *SoundWorld) Id() int
func (*SoundWorld) Pack ¶
func (o *SoundWorld) Pack() []byte
func (*SoundWorld) Size ¶
func (o *SoundWorld) Size() int
func (*SoundWorld) TypeId ¶
func (o *SoundWorld) TypeId() int
type SpectatorInfo ¶
func (*SpectatorInfo) Id ¶
func (o *SpectatorInfo) Id() int
func (*SpectatorInfo) Pack ¶
func (o *SpectatorInfo) Pack() []byte
func (*SpectatorInfo) Size ¶
func (o *SpectatorInfo) Size() int
func (*SpectatorInfo) TypeId ¶
func (o *SpectatorInfo) TypeId() int
Source Files
¶
- character.go
- damage.go
- de_client_info.go
- de_game_info.go
- de_tune_params.go
- death.go
- explosion.go
- flag.go
- game_data.go
- game_data_flag.go
- game_data_race.go
- game_data_team.go
- hammer_hit.go
- laser.go
- pickup.go
- player_info.go
- player_info_race.go
- player_input.go
- projectile.go
- snap_object.go
- sound_world.go
- spawn.go
- spectator_info.go
- unknown.go