test_game

package
v0.0.12-entry Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGroup

func CreateGroup(base *entry.GroupBase) entry.Group

func CreatePlayer

func CreatePlayer(base *entry.PlayerBase) entry.Player

func CreateRoom

func CreateRoom(base *entry.RoomBase) entry.Room

func CreateTeam

func CreateTeam(base *entry.TeamBase) entry.Team

func RegisterFactory

func RegisterFactory()

Types

type Group

type Group struct {
	*entry.GroupBase
}

func (*Group) Decode

func (g *Group) Decode(data []byte) error

func (*Group) Encode

func (g *Group) Encode() ([]byte, error)

func (*Group) Json

func (g *Group) Json() string

type Player

type Player struct {
	*entry.PlayerBase
}

func (*Player) Decode

func (p *Player) Decode(data []byte) error

func (*Player) Encode

func (p *Player) Encode() ([]byte, error)

type Room

type Room struct {
	*entry.RoomBase
}

func (*Room) Decode

func (r *Room) Decode(data []byte) error

func (*Room) Encode

func (r *Room) Encode() ([]byte, error)

type Team

type Team struct {
	*entry.TeamBase
}

func (*Team) Decode

func (t *Team) Decode(data []byte) error

func (*Team) Encode

func (t *Team) Encode() ([]byte, error)

Jump to

Keyboard shortcuts

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