Documentation ¶
Index ¶
- Constants
- type PlayerRoomMap
- type World
- func (w *World) AddPlayer(players ...player.Player)
- func (w *World) DoMobileActivity()
- func (w *World) DoZoneActivity()
- func (w *World) HandleIncomingMessage(msg *gameserver.HandlerParameter)
- func (w *World) RemovePlayer(players ...player.Player)
- func (w *World) SendToAllPlayers(message interface{})
- func (w *World) SendToAllPlayersExcept(exception player.Player, message interface{})
Constants ¶
View Source
const VERBOSE_LOGGING = false
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlayerRoomMap ¶
func NewPlayerRoomMap ¶
func NewPlayerRoomMap() *PlayerRoomMap
func (*PlayerRoomMap) GetPlayers ¶
func (m *PlayerRoomMap) GetPlayers(r *spaces.Room) []player.Player
func (*PlayerRoomMap) Remove ¶
func (m *PlayerRoomMap) Remove(p player.Player)
type World ¶
type World struct {
// contains filtered or unexported fields
}
noinspection GoNameStartsWithPackageName
func (*World) AddPlayer ¶
Add Player(s) to the world putting them in the start room, Don't send room notifications.
func (*World) DoMobileActivity ¶
func (w *World) DoMobileActivity()
Walk through all the mob instances that are in this world right now and tell them all to do something, if they have anything they want to do.
func (*World) DoZoneActivity ¶
func (w *World) DoZoneActivity()
func (*World) HandleIncomingMessage ¶
func (w *World) HandleIncomingMessage(msg *gameserver.HandlerParameter)
func (*World) RemovePlayer ¶
func (*World) SendToAllPlayers ¶
func (w *World) SendToAllPlayers(message interface{})
Send a message to all players in the world.
func (*World) SendToAllPlayersExcept ¶
Send a message to all players in the world except for one.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.