Documentation ¶
Index ¶
- Constants
- type Room
- func (r *Room) HasPlayer(id uint64) bool
- func (r *Room) ID() uint64
- func (r *Room) IsOver() bool
- func (r *Room) OnClose(conn *network.Conn)
- func (r *Room) OnConnect(conn *network.Conn) bool
- func (r *Room) OnGameOver(id uint64)
- func (r *Room) OnGameStart(id uint64)
- func (r *Room) OnJoinGame(id, pid uint64)
- func (r *Room) OnLeaveGame(id, pid uint64)
- func (r *Room) OnMessage(conn *network.Conn, msg network.Packet) bool
- func (r *Room) Run()
- func (r *Room) SecretKey() string
- func (r *Room) Stop()
- func (r *Room) TimeStamp() int64
- type RoomManager
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Room ¶
type Room struct {
// contains filtered or unexported fields
}
Room 战斗房间
func (*Room) OnGameOver ¶
func (*Room) OnGameStart ¶
func (*Room) OnJoinGame ¶
func (*Room) OnLeaveGame ¶
type RoomManager ¶
type RoomManager struct {
// contains filtered or unexported fields
}
RoomManager 房间管理器
func (*RoomManager) CreateRoom ¶
func (m *RoomManager) CreateRoom(id uint64, typeID int32, playerID []uint64, randomSeed int32, logicServer string) (*Room, error)
CreateRoom 创建房间
Click to show internal directories.
Click to hide internal directories.