public void Clear() { user = new User(); group = new Group(); isLogin = false; }
void OnNotifyJoin(string message, S2C.Message.NotifyJoin data) { if (!session.group.userList.ContainsKey(data.uid)) { User newUser = new User(); newUser.uid = data.uid; newUser.publicIp = data.publicIp; newUser.publicPort = data.publicPort; session.group.userList[data.uid] = newUser; } else { Console.WriteLine("[OnNotifyJoin] Already added user[{0}].", data.uid); } }