示例#1
0
文件: scene.go 项目: RoyDong/low_go
func (s *Scene) RemoveUser(u app.User) {
	delete(s.users, u.Id())
}
示例#2
0
文件: session.go 项目: RoyDong/low_go
func (s *Session) SetUser(u app.User) {
	s.user = u
	u.SetSession(s)
}
示例#3
0
文件: scene.go 项目: RoyDong/low_go
func (s *Scene) AddUser(u app.User) {
	s.users[u.Id()] = u
}