Documentation ¶
Index ¶
- type World
- func (w *World) AddAmmos(am *objects.Ammo)
- func (w *World) AddElements(el *objects.Element)
- func (w *World) AddPCs(pc *objects.PC)
- func (w *World) AddWeapons(we *objects.Weapon)
- func (w *World) DebugInit()
- func (w *World) DeleteAmmos()
- func (w *World) DeleteElements()
- func (w *World) DeletePCs()
- func (w *World) DeleteWeapons()
- func (w *World) FromAPIMessage(m *server_external.World)
- func (w *World) GetAmmos() []*objects.Ammo
- func (w *World) GetCamera() *objects.Camera
- func (w *World) GetGameSettings() *gamesettings.GameSettings
- func (w *World) GetPC() *objects.PC
- func (w *World) GetPCs() []*objects.PC
- func (w *World) GetStatistics() *statistics.Statistics
- func (w *World) GetWeapons() []*objects.Weapon
- func (w *World) GetWorldMap() *objects.Map
- func (w *World) IsCollision(x, y float64) (bool, int)
- func (w *World) SetID(id uuid.UUID)
- func (w *World) String() string
- func (w *World) SwapPCsSpawns()
- func (w *World) ToAPIMessage() *server_external.World
- func (w *World) Update(m *server_external.FindWorldObjectsResponse)
- func (w *World) UpdateAmmos(m []*server_external.Ammo)
- func (w *World) UpdateElements(m []*server_external.Element)
- func (w *World) UpdatePCs(m []*server_external.PC)
- func (w *World) UpdateWeapons(m []*server_external.Weapon)
- func (w *World) UpdateWorld(m *server_external.World)
- func (w *World) UpdateWorldMap(m *server_external.Map)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type World ¶
func (*World) AddElements ¶
func (*World) AddWeapons ¶
func (*World) DeleteAmmos ¶
func (w *World) DeleteAmmos()
func (*World) DeleteElements ¶
func (w *World) DeleteElements()
func (*World) DeleteWeapons ¶
func (w *World) DeleteWeapons()
func (*World) FromAPIMessage ¶
func (w *World) FromAPIMessage(m *server_external.World)
func (*World) GetGameSettings ¶
func (w *World) GetGameSettings() *gamesettings.GameSettings
func (*World) GetStatistics ¶
func (w *World) GetStatistics() *statistics.Statistics
func (*World) GetWeapons ¶
func (*World) GetWorldMap ¶
func (*World) IsCollision ¶
Checks if x and y pos collide with objects in the world
func (*World) SwapPCsSpawns ¶
func (w *World) SwapPCsSpawns()
func (*World) ToAPIMessage ¶
func (w *World) ToAPIMessage() *server_external.World
func (*World) Update ¶
func (w *World) Update(m *server_external.FindWorldObjectsResponse)
func (*World) UpdateAmmos ¶
func (w *World) UpdateAmmos(m []*server_external.Ammo)
func (*World) UpdateElements ¶
func (w *World) UpdateElements(m []*server_external.Element)
func (*World) UpdatePCs ¶
func (w *World) UpdatePCs(m []*server_external.PC)
func (*World) UpdateWeapons ¶
func (w *World) UpdateWeapons(m []*server_external.Weapon)
func (*World) UpdateWorld ¶
func (w *World) UpdateWorld(m *server_external.World)
func (*World) UpdateWorldMap ¶
func (w *World) UpdateWorldMap(m *server_external.Map)
Click to show internal directories.
Click to hide internal directories.