예제 #1
0
 internal void AddSlotWeapon(EWeaponSlotType slot, EntityKey key)
 {
     BagSetCache.SetSlotWeaponData(DefaultBagIndexParam, slot, key);
 }
예제 #2
0
 internal void SetHeldSlotType(EWeaponSlotType slot)
 {
     BagSetCache.SetHeldSlotIndex(DefaultBagIndexParam, (int)slot);
 }
예제 #3
0
        internal void RemoveSlotWeapon(EWeaponSlotType slot)
        {
            var slotData = BagSetCache.GetSlotData(slot);

            slotData.Remove();//player slot 数据移除
        }
예제 #4
0
 public bool IsWeaponSlotEmpty(EWeaponSlotType slot)
 {
     return(BagSetCache.GetSlotData(slot).IsEmpty);
 }
예제 #5
0
 internal void SetHeldSlotType(EWeaponSlotType slot)
 {
     BagSetCache.SetHeldSlotIndex(-1, (int)slot);
 }
예제 #6
0
 internal void AddBagWeapon(EWeaponSlotType slot, EntityKey key, int bagIndex)
 {
     BagSetCache.SetSlotWeaponData(bagIndex, slot, key);
 }
예제 #7
0
 internal void ClearBagPointer()
 {
     BagSetCache.ClearPointer();
 }