示例#1
0
 public static UserState GetUserState(this NetUser user)
 {
     return(user.GetLocal <UserState>("userstate"));
 }
示例#2
0
 public static UserId GetUserId(this NetUser user)
 {
     return(user.GetLocal <UserId>("userid"));
 }
示例#3
0
 public static void SetUserState(this NetUser user, UserState id)
 {
     user.SetLocal <UserState>("userstate", id);
 }
示例#4
0
 public static void SetUserId(this NetUser user, UserId id)
 {
     user.SetLocal <UserId>("userid", id);
 }