You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
260 B
Go
24 lines
260 B
Go
|
2 years ago
|
package user
|
||
|
|
|
||
|
|
import (
|
||
|
2 years ago
|
"network"
|
||
|
2 years ago
|
)
|
||
|
|
|
||
|
|
func NewUser() *User {
|
||
|
|
return &User{}
|
||
|
|
}
|
||
|
|
|
||
|
|
type User struct {
|
||
|
|
network.BaseNetHandler
|
||
|
|
}
|
||
|
|
|
||
|
|
func (s *User) OnSessionCreated() {
|
||
|
|
}
|
||
|
|
|
||
|
|
func (s *User) OnSessionClosed() {
|
||
|
|
}
|
||
|
|
|
||
|
|
func (s *User) OnRecv(msgId int32, data interface{}) {
|
||
|
|
|
||
|
|
}
|