public bool Deserialize(Stream stream) { BinaryReader input = new BinaryReader(stream); // playerInfos uint playerInfosLength = 0; if (Yippee.Net.Internal.Deserialize(input, out playerInfosLength) == false) { return(false); } for (uint i = 0; i < playerInfosLength; ++i) { ulong key; if (Yippee.Net.Internal.Deserialize(input, out key) == false) { return(false); } player_requisite_info value = new player_requisite_info(); if (Yippee.Net.Internal.Deserialize(input, value) == false) { return(false); } SetPlayerInfos(key, value); } return(true); }
public void CopyFrom(player_requisite_info from) { if (from == this) { return; } Clear(); MergeFrom(from); }
public void MergeFrom(player_requisite_info from) { if (from == this) { return; } // isAi SetIsAi(from.GetIsAi()); // profile SetProfile(from.GetProfile()); // selectedCar SetSelectedCar(from.GetSelectedCar()); // equippedAbility SetEquippedAbility(from.GetEquippedAbility()); // abilities SetAbilities(from.GetAbilities()); // matchItems SetMatchItems(from.GetMatchItems()); }
public void SetPlayerInfos(ulong key, player_requisite_info value) { playerInfos_[key] = value; }
public bool GetPlayerInfos(ulong key, out player_requisite_info value) { return(playerInfos_.TryGetValue(key, out value)); }
public player_requisite_info(player_requisite_info from) { MergeFrom(from); }