logic

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoomManager

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

RoomManager is used to manage game rooms

func NewRoomManager

func NewRoomManager() *RoomManager

NewRoomManager creates a new room manager

func (*RoomManager) CreateRoom

func (rm *RoomManager) CreateRoom(
	rid uint64, typeID int32, pid []uint64, randomSeed int32, logicServer string,
) (*room.Room, error)

CreateRoom creates a game room

func (*RoomManager) GetRoom

func (rm *RoomManager) GetRoom(id uint64) *room.Room

GetRoom gets the specific room

func (*RoomManager) RoomNum

func (rm *RoomManager) RoomNum() int

RoomNum gets the count of the room

func (*RoomManager) Stop

func (rm *RoomManager) Stop()

Stop stops the room

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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