Documentation
¶
Index ¶
- type Server
- func (s *Server) BroadcastCreatePlayer(p *player.Player)
- func (s *Server) BroadcastProgressBar(entityID, capturingTeam uint8, rate int8, progress float32)
- func (s *Server) BroadcastShortPlayerData(p *player.Player)
- func (s *Server) BroadcastTerritoryCapture(playerID, entityID, winning, state uint8)
- func (s *Server) CancelVote(p *player.Player) error
- func (s *Server) CastVote(p *player.Player, choice interface{}) error
- func (s *Server) DisconnectPlayerWithReason(p *player.Player, reason uint32)
- func (s *Server) FindTopBlock(x, y int) int
- func (s *Server) GetActiveVote() vote.Vote
- func (s *Server) GetConfigPassword(role string) string
- func (s *Server) GetCurrentMapName() string
- func (s *Server) GetMapBlock(x, y, z int) uint32
- func (s *Server) GetServerName() string
- func (s *Server) GetUptime() time.Duration
- func (s *Server) HasActiveVote() bool
- func (s *Server) IsMapSolid(x, y, z int) bool
- func (s *Server) KickPlayer(playerID uint8, reason string)
- func (s *Server) KillPlayer(victimID uint8, killerID uint8, killType protocol.KillType)
- func (s *Server) RegisterCallbacks(cb callbacks.Callbacks)
- func (s *Server) ReloadCommands() error
- func (s *Server) ReloadGamemode() error
- func (s *Server) RespawnPlayer(playerID uint8)
- func (s *Server) RestockPlayer(playerID uint8)
- func (s *Server) SaveMap(filename string) (string, error)
- func (s *Server) SendChatToAll(message string)
- func (s *Server) SendChatToPlayer(p *player.Player, message string)
- func (s *Server) SendChatWithType(message string, chatType protocol.ChatType)
- func (s *Server) SendIntelPositionPacketOnly(objectID uint8, team uint8, position protocol.Vector3f)
- func (s *Server) SendPlayerLeftPacket(playerID uint8)
- func (s *Server) SendPlayerPositionPacketTo(playerID uint8, pos, ori protocol.Vector3f, toPlayerID uint8)
- func (s *Server) SetMapBlock(x, y, z int, color uint32)
- func (s *Server) SetPlayerTeam(playerID uint8, team uint8)
- func (s *Server) Start() error
- func (s *Server) StartVotekick(instigator *player.Player, victimID uint8, reason string) error
- func (s *Server) StartVotemap(instigator *player.Player) error
- func (s *Server) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) BroadcastCreatePlayer ¶ added in v0.2.0
func (*Server) BroadcastProgressBar ¶
func (*Server) BroadcastShortPlayerData ¶
func (*Server) BroadcastTerritoryCapture ¶
func (*Server) DisconnectPlayerWithReason ¶
func (*Server) FindTopBlock ¶
func (*Server) GetActiveVote ¶
func (*Server) GetConfigPassword ¶
func (*Server) GetCurrentMapName ¶
func (*Server) GetMapBlock ¶
func (*Server) GetServerName ¶
func (*Server) HasActiveVote ¶
func (*Server) IsMapSolid ¶
func (*Server) KickPlayer ¶
func (*Server) KillPlayer ¶
func (*Server) RegisterCallbacks ¶
func (*Server) ReloadCommands ¶
func (*Server) ReloadGamemode ¶
func (*Server) RespawnPlayer ¶
func (*Server) RestockPlayer ¶
func (*Server) SendChatToAll ¶
func (*Server) SendChatToPlayer ¶
func (*Server) SendChatWithType ¶
func (*Server) SendIntelPositionPacketOnly ¶ added in v0.2.0
func (*Server) SendPlayerLeftPacket ¶
func (*Server) SendPlayerPositionPacketTo ¶ added in v0.2.0
func (s *Server) SendPlayerPositionPacketTo(playerID uint8, pos, ori protocol.Vector3f, toPlayerID uint8)
sends a position/orientation packet for a player without updating server state if player id is 255, broadcasts to all players
func (*Server) SetMapBlock ¶
func (*Server) SetPlayerTeam ¶
func (*Server) StartVotekick ¶
Click to show internal directories.
Click to hide internal directories.