Documentation ¶
Index ¶
- type User
- func (u *User) EnterService(service string)
- func (u *User) GetHP() int
- func (u *User) Kick(reason string)
- func (u *User) LeaveAllService()
- func (u *User) LeaveService(service string)
- func (u *User) Login()
- func (u *User) Logout(reason string)
- func (u *User) Name() string
- func (u *User) Send(msg []byte)
- func (u *User) SessionId() int
- func (u *User) SetHP(hp int)
- func (u *User) Tick()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { RecvMsg <-chan string SendMsg chan<- string // contains filtered or unexported fields }
func (*User) EnterService ¶
func (*User) LeaveAllService ¶
func (u *User) LeaveAllService()
func (*User) LeaveService ¶
Click to show internal directories.
Click to hide internal directories.