Exemple #1
0
        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);
        }
Exemple #2
0
        public void CopyFrom(player_requisite_info from)
        {
            if (from == this)
            {
                return;
            }

            Clear();
            MergeFrom(from);
        }
Exemple #3
0
        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());
        }
Exemple #4
0
 public void SetPlayerInfos(ulong key, player_requisite_info value)
 {
     playerInfos_[key] = value;
 }
Exemple #5
0
 public bool GetPlayerInfos(ulong key, out player_requisite_info value)
 {
     return(playerInfos_.TryGetValue(key, out value));
 }
Exemple #6
0
 public player_requisite_info(player_requisite_info from)
 {
     MergeFrom(from);
 }