private ReplaceDroppedUser ( ulong replacer, uint key ) : bool | ||
replacer | ulong | |
key | uint | |
return | bool |
internal bool ReplaceDroppedUser(ulong replacer, uint key)
{
if (null != m_LobbyUserData) {
m_LobbyUserData.Guid = replacer;
peer_.Guid = replacer;
}
return peer_.UpdateKey(key);
}
private bool ReplaceDroppedUser(ulong guid, ulong replacer, uint key) { foreach (Room rm in active_room_) { User us = rm.GetUserByGuid(guid); if (null != us && (int)UserControlState.UserDropped == us.UserControlState) { return(us.ReplaceDroppedUser(replacer, key)); } } return(false); }