コード例 #1
0
 public ModeLogic(IWeaponInitLogic weaponInitLogic, IWeaponSlotController weaponSlotController,
                  IBagSlotLogic bagSlotLogic, IPickupLogic pickupLogic, IReservedBulletLogic reservedBulletLogic,
                  IWeaponActionListener weaponActionListener)
 {
     _weaponInitLogic      = weaponInitLogic;
     _weaponSlotController = weaponSlotController;
     _bagSlotLogic         = bagSlotLogic;
     _pickupLogic          = pickupLogic;
     _reservedBulletLogic  = reservedBulletLogic;
     _weaponActionListener = weaponActionListener;
 }
コード例 #2
0
 public PlayerWeaponActionLogic(
     PlayerEntity player,
     WeaponBagLogic bagLogic,
     ISceneObjectEntityFactory sceneObjectEntityFactory,
     IReservedBulletLogic reservedBulletLogic,
     IGrenadeBagCacheAgent grenadeInventory,
     IWeaponSlotController weaponSlotController,
     IWeaponActionListener weaponActionListener)
 {
     _playerEntity         = player;
     _weaponBagLogic       = bagLogic;
     _weaponSlotController = weaponSlotController;
     _slotAuxiliary        = new WeaponSlotAuxiliary(player,
                                                     weaponSlotController,
                                                     this,
                                                     reservedBulletLogic,
                                                     grenadeInventory);
     _weaponActionListener = weaponActionListener;
 }