world_mgr

package
v0.0.0-...-d098e83 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WORLD_ID_SLICE

type WORLD_ID_SLICE []*World

func (WORLD_ID_SLICE) Len

func (s WORLD_ID_SLICE) Len() int

func (WORLD_ID_SLICE) Less

func (s WORLD_ID_SLICE) Less(i, j int) bool

func (WORLD_ID_SLICE) Swap

func (s WORLD_ID_SLICE) Swap(i, j int)

type WORLD_MAP

type WORLD_MAP map[*tcp.Remote]*World

type World

type World struct {
	Remote *tcp.Remote
	IP     string
	Port   uint16
	Id     uint32
}

type WorldMgr

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

func (*WorldMgr) Add

func (p *WorldMgr) Add(remote *tcp.Remote) (world *World)

func (*WorldMgr) AddById

func (p *WorldMgr) AddById(id uint32, world *World)

func (*WorldMgr) Del

func (p *WorldMgr) Del(remote *tcp.Remote)

func (*WorldMgr) DelById

func (p *WorldMgr) DelById(id uint32)

func (*WorldMgr) Find

func (p *WorldMgr) Find(remote *tcp.Remote) (world *World)

func (*WorldMgr) GetWorldService

func (p *WorldMgr) GetWorldService(platform uint32, account string) (world *World)

func (*WorldMgr) Init

func (p *WorldMgr) Init()

Jump to

Keyboard shortcuts

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