Documentation ¶
Index ¶
- Constants
- type PlayerHandler
- func (h *PlayerHandler) HandleBlockBreak(ctx *event.Context, _ cube.Pos, _ *[]item.Stack)
- func (h *PlayerHandler) HandleBlockPlace(ctx *event.Context, _ cube.Pos, _ world.Block)
- func (h *PlayerHandler) HandleFoodLoss(ctx *event.Context, _ int, _ int)
- func (h *PlayerHandler) HandleHurt(ctx *event.Context, _ *float64, _ *time.Duration, src world.DamageSource)
- func (h *PlayerHandler) HandleMove(_ *event.Context, _ mgl64.Vec3, _ float64, _ float64)
- func (h *PlayerHandler) HandleQuit()
- type TNTRun
- type TNTRunTask
Constants ¶
View Source
const ( StateIdle = 0 StateStarting = 1 StateRunning = 2 StateRestarting = 3 )
View Source
const ( MaxPlayers = 10 NeededPlayers = 3 StartTimer = 30 RestartTimer = 10 )
View Source
const ( TypeMessage = 0 TypePopup = 1 TypeTitle = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlayerHandler ¶
type PlayerHandler struct { player.NopHandler // contains filtered or unexported fields }
PlayerHandler ...
func NewPlayerHandler ¶
func NewPlayerHandler(game *TNTRun, player *player.Player) *PlayerHandler
NewPlayerHandler ...
func (*PlayerHandler) HandleBlockBreak ¶
HandleBlockBreak ...
func (*PlayerHandler) HandleBlockPlace ¶
HandleBlockPlace ...
func (*PlayerHandler) HandleFoodLoss ¶
func (h *PlayerHandler) HandleFoodLoss(ctx *event.Context, _ int, _ int)
HandleFoodLoss ...
func (*PlayerHandler) HandleHurt ¶
func (h *PlayerHandler) HandleHurt(ctx *event.Context, _ *float64, _ *time.Duration, src world.DamageSource)
HandleHurt ...
func (*PlayerHandler) HandleMove ¶
HandleMove ...
type TNTRun ¶
type TNTRun struct {
// contains filtered or unexported fields
}
TNTRun ...
func (*TNTRun) BroadcastMessage ¶
BroadcastMessage ...
type TNTRunTask ¶
type TNTRunTask struct {
// contains filtered or unexported fields
}
TNTRunTask ...
Click to show internal directories.
Click to hide internal directories.