コード例 #1
0
 public static Dictionary <DamageTypeEnum, float> GetBaseSlotDefences(InventorySpecialSlotEnum slot)
 {
     if (SlotMultipliers.Count == 0)
     {
         ReadData();
     }
     return(SlotMultipliers[slot]);
 }
コード例 #2
0
 public InventoryItem this [InventorySpecialSlotEnum item]
 {
     get { return(this[(byte)item]); }
     set
     {
         this[(byte)item] = value;
     }
 }
コード例 #3
0
        /***/
        public static void SetReloadingStatus(this Entity entity, InventorySpecialSlotEnum weapon, bool value)
        {
            switch (weapon)
            {
            case InventorySpecialSlotEnum.PrimaryWeapon:
                entity.SetReloadingPrimary(value);
                break;

            case InventorySpecialSlotEnum.SecondaryWeapon:
                entity.SetReloadingSecondary(value);
                break;
            }
        }
コード例 #4
0
ファイル: UpdateVisibleItems.cs プロジェクト: UKMonkey/Gobos
 public UpdateVisibleItems(InventorySpecialSlotEnum targetFrom, GameEntityPropertyEnum targetTo)
 {
     _slotId         = targetFrom;
     _entityProperty = targetTo;
 }
コード例 #5
0
 public MaterialModification(InventorySpecialSlotEnum slot)
 {
     _slot = slot;
 }