internal

package
v0.0.0-...-2bc04f2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT, Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChanRPC = skeleton.ChanRPCServer
)

Functions

func CreatePlayer

func CreatePlayer(playerID uint) error

func CreatePlayerBaseInfo

func CreatePlayerBaseInfo(playerID uint) error

func InitGameTables

func InitGameTables()

func InitRooms

func InitRooms()

Types

type Module

type Module struct {
	*module.Skeleton
}

func (*Module) OnDestroy

func (m *Module) OnDestroy()

func (*Module) OnInit

func (m *Module) OnInit()

type Player

type Player struct {
	gate.Agent
	*g.LinearContext
	// contains filtered or unexported fields
}

type PlayerBaseInfo

type PlayerBaseInfo struct {
	PlayerID uint   `gorm:"primary_key"`
	Name     string `gorm:"not null"`
}

type Room

type Room struct {
	// contains filtered or unexported fields
}

func CreateRooms

func CreateRooms(roomID uint) *Room

func GetRoom

func GetRoom(roomID uint) *Room

Jump to

Keyboard shortcuts

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