handler

package
v0.0.0-...-e8be892 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2024 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlayerHandler

func PlayerHandler(db *gorm.DB, srv *server.Server) func(*player.Player)

Types

type BasePlayerHandler

type BasePlayerHandler struct {
	player.NopHandler
	// contains filtered or unexported fields
}

func (*BasePlayerHandler) HandleAttackEntity

func (m *BasePlayerHandler) HandleAttackEntity(ctx *event.Context, e world.Entity, force, height *float64, critical *bool)

func (*BasePlayerHandler) HandleChat

func (m *BasePlayerHandler) HandleChat(ctx *event.Context, message *string)

func (*BasePlayerHandler) HandleDeath

func (h *BasePlayerHandler) HandleDeath(src world.DamageSource, keepInv *bool)

func (*BasePlayerHandler) HandleFoodLoss

func (h *BasePlayerHandler) HandleFoodLoss(ctx *event.Context, from int, to *int)

func (*BasePlayerHandler) HandleHurt

func (h *BasePlayerHandler) HandleHurt(ctx *event.Context, damage *float64, attackImmunity *time.Duration, src world.DamageSource)

func (*BasePlayerHandler) HandleItemDrop

func (h *BasePlayerHandler) HandleItemDrop(ctx *event.Context, e world.Entity)

func (*BasePlayerHandler) HandleQuit

func (h *BasePlayerHandler) HandleQuit()

func (*BasePlayerHandler) HandleRespawn

func (m *BasePlayerHandler) HandleRespawn(pos *mgl64.Vec3, w **world.World)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL