Пример #1
0
 public void Reset()
 {
     if (AvatarIds == null)
     {
         AvatarIds = new List <int>();
     }
     AvatarIds.Clear();
     if (WeaponAvatarIds == null)
     {
         WeaponAvatarIds = new List <int>();
     }
     WeaponAvatarIds.Clear();
     if (SprayLacquers == null)
     {
         SprayLacquers = new List <int>();
     }
     SprayLacquers.Clear();
 }
Пример #2
0
        public void CopyFrom(object rightComponent)
        {
            var right = (rightComponent as PlayerInfoComponent);

            if (right == null)
            {
                return;
            }
            PlayerId    = right.PlayerId;
            PlayerName  = right.PlayerName;
            RoleModelId = right.RoleModelId;
            TeamId      = right.TeamId;
            Num         = right.Num;
            Level       = right.Level;
            BackId      = right.BackId;
            TitleId     = right.TitleId;
            BadgeId     = right.BadgeId;

            if (AvatarIds == null)
            {
                AvatarIds = new List <int>();
            }
            AvatarIds.Clear();
            AvatarIds.AddRange(right.AvatarIds);
            if (WeaponAvatarIds == null)
            {
                WeaponAvatarIds = new List <int>();
            }
            WeaponAvatarIds.Clear();
            WeaponAvatarIds.AddRange(right.WeaponAvatarIds);

            if (SprayLacquers == null)
            {
                SprayLacquers = new List <int>();
            }
            SprayLacquers.Clear();
            SprayLacquers.AddRange(right.SprayLacquers);

            Camp         = right.Camp;
            JobAttribute = right.JobAttribute;
            Token        = right.Token;
            InitPosition = right.InitPosition;
        }
Пример #3
0
 public void Reset()
 {
     if (AvatarIds == null)
     {
         AvatarIds = new List <int>();
     }
     AvatarIds.Clear();
     if (WeaponAvatarIds == null)
     {
         WeaponAvatarIds = new List <int>();
     }
     WeaponAvatarIds.Clear();
     if (SprayLacquers == null)
     {
         SprayLacquers = new List <int>();
     }
     SprayLacquers.Clear();
     if (null != CampInfo)
     {
         CampInfo.Reset();
     }
     Camp = 0;
 }