예제 #1
0
 private void CreateTestEnemyAt(Vector2 position)
 {
     RequestsService.CreateRequestEntity()
     .AddGenerateCharacterRequest(
         position,
         Faction.Enemy,
         CharacterType.knight
         );
 }
예제 #2
0
 private void CreateTestPlayerAt(Vector2 position)
 {
     RequestsService.CreateRequestEntity()
     .AddGenerateCharacterRequest(
         position,
         Faction.Player,
         CharacterType.goblin
         );
 }
예제 #3
0
 protected override void Execute(List <InputEntity> entities)
 {
     foreach (InputEntity entity in entities)
     {
         RequestsService.CreateRequestEntity()
         .AddEnergyRequireingRequest(
             () => CreateBeacon(entity),
             null,
             gameContext.gameStateEntity.beaconCost.Value
             );
     }
 }
    private void SetDefaultsToGameSettings()
    {
        BeaconAction currentBeaconAction = gameContext.settingsEntity.globalSettings.Value.DefaultBeaconAction;

        RequestsService.CreateRequestEntity().AddSwitchBeaconActionRequest(currentBeaconAction);
    }
예제 #5
0
 public void Execute()
 {
     RequestsService.CreateRequestEntity().AddSwitchBeaconActionRequest(Action);
 }