Versions in this module Expand all Collapse all v0 v0.2.5 Nov 7, 2024 v0.2.4 Nov 3, 2024 v0.2.3 Nov 3, 2024 v0.2.2 Nov 3, 2024 v0.2.1 Nov 3, 2024 v0.2.0 Nov 3, 2024 v0.1.2 Oct 31, 2024 v0.1.1 Oct 31, 2024 v0.1.0 Oct 31, 2024 Changes in this version + const ParticleTypeFire + const ParticleTypeFireball + const ParticleTypeFlame + const ParticleTypeFountain + const ParticleTypeLensFlare + const ParticleTypeLensFlareSparkle + const ParticleTypeLensFlareSparkleSun + const ParticleTypeLensFlareSun + const ParticleTypeLightning + const ParticleTypeMeter + const ParticleTypeMeterVS + const ParticleTypeSmoke + const ParticleTypeSnow + const ParticleTypeSteam + const ParticleTypeSteamVent + const ParticleTypeTape + const ParticleTypeWater + var ENTITY_TYPES = []EntityInfo + var ENTITY_TYPE_MAP = map[C.EntityType]EntityInfo + var Empty = fmt.Errorf("value was missing, check default") + var PARTICLE_TYPES = []ParticleInfo + var PARTICLE_TYPE_MAP = map[ParticleType]ParticleInfo + var PARTICLE_TYPE_STRINGS = map[ParticleType]string + type Attributes []int16 + func Encode(info EntityInfo) (*Attributes, error) + func (a *Attributes) Get() (int16, error) + func (a *Attributes) Put(value int16) + type Barrel struct + Angle int16 + Health int16 + Model int16 + Weight int16 + func (e *Barrel) Type() C.EntityType + type Base struct + Ammo int16 + Tag int16 + func (e *Base) Type() C.EntityType + type Basic struct + Color Color16 + Height float32 + Radius float32 + type Boost Powerup + func (e *Boost) Type() C.EntityType + type Box struct + Angle int16 + Model int16 + Weight int16 + func (e *Box) Type() C.EntityType + type Bullets Powerup + func (e *Bullets) Type() C.EntityType + type Carrot struct + Kind int16 + Tag int16 + func (e *Carrot) Type() C.EntityType + type Cartridges Powerup + func (e *Cartridges) Type() C.EntityType + type Color16 struct + B byte + G byte + R byte + func (c *Color16) Decode(a *Attributes) error + func (c *Color16) UnmarshalJSON(data []byte) error + func (c Color16) Encode(a *Attributes) error + func (c Color16) MarshalJSON() ([]byte, error) + type Decodable interface + Decode func(*Attributes) error + type Default struct + func NewDefault[T any](value T) Default[T] + func (d *Default[T]) Clear() + func (d *Default[T]) Get() T + func (d *Default[T]) IsEmpty() bool + func (d *Default[T]) Set(value T) + type Defaultable interface + Defaults func() Defaultable + type Direction byte + const DirectionNegX + const DirectionNegY + const DirectionNegZ + const DirectionX + const DirectionY + const DirectionZ + func (d *Direction) Decode(a *Attributes) error + func (d *Direction) Encode(a *Attributes) error + type Elevator struct + Angle int16 + Model int16 + Speed int16 + Tag int16 + func (e *Elevator) Type() C.EntityType + type Encodable interface + Encode func(*Attributes) error + type Entity struct + Info EntityInfo + Position Vector + func (e *Entity) MarshalJSON() ([]byte, error) + func (e *Entity) UnmarshalJSON(data []byte) error + type EntityInfo interface + Type func() C.EntityType + func Decode(entityType C.EntityType, a *Attributes) (EntityInfo, error) + type EnvMap struct + Blur int16 + Radius int16 + Size int16 + func (e *EnvMap) Type() C.EntityType + type Fire Basic + func (p *Fire) Type() ParticleType + func (p Fire) Defaults() Defaultable + type Fireball struct + Color Color16 + Size int16 + func (p *Fireball) Type() ParticleType + type Flag struct + Angle int16 + Team int16 + func (e *Flag) Type() C.EntityType + type Flame Basic + func (p *Flame) Type() ParticleType + type Fountain struct + Color Color16 + Direction Direction + func (p *Fountain) Type() ParticleType + type GreenArmour Powerup + func (e *GreenArmour) Type() C.EntityType + type Grenades Powerup + func (e *Grenades) Type() C.EntityType + type Health Powerup + func (e *Health) Type() C.EntityType + type JumpPad struct + PushX int16 + PushY int16 + PushZ int16 + Sound int16 + func (e *JumpPad) Type() C.EntityType + type LensFlare struct + Color utils.Color + func (p *LensFlare) Type() ParticleType + type LensFlareSparkle LensFlare + func (p *LensFlareSparkle) Type() ParticleType + type LensFlareSparkleSun LensFlare + func (p *LensFlareSparkleSun) Type() ParticleType + type LensFlareSun LensFlare + func (p *LensFlareSun) Type() ParticleType + type Light struct + Color utils.Color + Radius int16 + func (e *Light) Type() C.EntityType + type Lightning Shape + func (p *Lightning) Type() ParticleType + type MapModel struct + Angle int16 + Index int16 + func (m *MapModel) Type() C.EntityType + type Meter struct + ColorA Color16 + ColorB Color16 + Progress int16 + func (p *Meter) Type() ParticleType + type MeterVS Meter + func (p *MeterVS) Type() ParticleType + type Monster struct + Angle int16 + Kind int16 + func (e *Monster) Type() C.EntityType + type ParticleInfo interface + Type func() ParticleType + type ParticleType byte + func (e ParticleType) FromString(value string) + func (e ParticleType) String() string + type Particles struct + Info ParticleInfo + Particle ParticleType + func (p *Particles) Decode(a *Attributes) error + func (p *Particles) Encode(a *Attributes) error + func (p *Particles) MarshalJSON() ([]byte, error) + func (p *Particles) Type() C.EntityType + func (p *Particles) UnmarshalJSON(data []byte) error + type Platform struct + Angle int16 + Model int16 + Speed int16 + Tag int16 + func (e *Platform) Type() C.EntityType + type PlayerStart struct + Angle int16 + Tag int16 + func (e *PlayerStart) Type() C.EntityType + type Powerup struct + type Quad Powerup + func (e *Quad) Type() C.EntityType + type RespawnPoint struct + Angle int16 + Spin int16 + func (e *RespawnPoint) Type() C.EntityType + type Rockets Powerup + func (e *Rockets) Type() C.EntityType + type Rounds Powerup + func (e *Rounds) Type() C.EntityType + type Shape struct + Color Color16 + Direction int16 + Fade int16 + Radius int16 + type Shells Powerup + func (e *Shells) Type() C.EntityType + type SmokePlume Basic + func (p *SmokePlume) Type() ParticleType + type Snow Shape + func (p *Snow) Type() ParticleType + type Sound struct + Index int16 + func (e *Sound) Type() C.EntityType + type Spotlight struct + Color utils.Color + Radius int16 + func (e *Spotlight) Type() C.EntityType + type Steam Shape + func (p *Steam) Type() ParticleType + type SteamVent struct + Direction Direction + func (p *SteamVent) Type() ParticleType + type Tape Shape + func (p *Tape) Type() ParticleType + type Teledest struct + Angle int16 + Tag int16 + func (e *Teledest) Type() C.EntityType + type Teleport struct + Index int16 + Model int16 + Sound int16 + Tag int16 + func (e *Teleport) Type() C.EntityType + type Vector struct + X float32 + Y float32 + Z float32 + func (v *Vector) UnmarshalJSON(data []byte) error + func (v Vector) MarshalJSON() ([]byte, error) + type Water Shape + func (p *Water) Type() ParticleType + type YellowArmour Powerup + func (e *YellowArmour) Type() C.EntityType