Exemplo n.º 1
0
 public static void BindCustomizeWeaponKey(this WeaponBagContainer bagContainer, EntityKey entityKey)
 {
     for (EWeaponSlotType i = EWeaponSlotType.None; i < EWeaponSlotType.Length; i++)
     {
         bagContainer[i].Remove(entityKey);
     }
 }
Exemplo n.º 2
0
 public WeaponBagContainer Read(BinaryReader reader, WeaponBagContainer data)
 {
     if (data == null)
     {
         data = new WeaponBagContainer();
     }
     data.Read(reader);
     return(data);
 }
        public void Initialize()
        {
            if (isInitialized)
            {
                return;
            }
            if (WeaponBag != null)
            {
                isInitialized = true;
                return;
            }

            WeaponBag     = new WeaponBagContainer();
            isInitialized = true;
        }
Exemplo n.º 4
0
 public static WeaponBagContainer Deserialize(WeaponBagContainer typeTag, BinaryReader reader)
 {
     return(_weaponBagSerializer.Read(reader, typeTag));
 }
Exemplo n.º 5
0
 public static void Serialize(WeaponBagContainer data, Core.Utils.MyBinaryWriter writer, WeaponBagContainer last = null,
                              bool weiteAll = false)
 {
     _weaponBagSerializer.Write(data, writer);
 }
Exemplo n.º 6
0
 public static WeaponBagContainer Merge(WeaponBagContainer basevalue, WeaponBagContainer patchvalue)
 {
     basevalue.MergeFromPatch(patchvalue);
     return(basevalue);
 }
Exemplo n.º 7
0
 public void Write(WeaponBagContainer data, MyBinaryWriter writer)
 {
     data.Write(writer);
 }