Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheGetFromALLUser = func(connectionID string) *userCache {
if x, found := pCacheInstance.allUsers.Get(connectionID); found {
return x.(*userCache)
}
user := userCache{}
user.SaveUser(connectionID)
return &user
}
View Source
var CacheGetUser = func(connectionID string) *LoginUser { if x, found := pCacheInstance.inLoginProcessUser.Get(connectionID); found { return x.(*LoginUser) } newcache := LoginUser{ User: Player.User{}, Step: 0, connectionID: connectionID, } newcache.SaveUser() return &newcache }
View Source
var WorldUsersList = make(map[Creature.Geography][]*StructCollection.MudClient)
處理登入成功的User Cache
Functions ¶
func RemoveAllCacheByConnectionID ¶
func RemoveAllCacheByConnectionID(connectionID string)
新增一個Cache,也要加移除段落
Types ¶
Click to show internal directories.
Click to hide internal directories.