Example #1
0
    // ReSharper disable once UnusedMember.Local
    private void OnEnable()
    {
        if (!Application.isPlaying)
        {
            return;
        }

        _repository = new PlaygroundRepository();
        InitializeView();
        _controller = new PlaygroundController(this, _repository, this);
    }
Example #2
0
        static void Main(string[] args)
        {
            var app = new PlaygroundController();

            var vasia = new HumanPlayer {
                Name = "Pidor ", PlayerGuid = Guid.NewGuid()
            };
            var petya = new HumanPlayer {
                Name = "Hui ", PlayerGuid = Guid.NewGuid()
            };

            var table = new DefaultTable {
                TableGuid = Guid.NewGuid(), TableName = "Table nahui "
            };

            app.AddTable(table);
            app.AddPlayerToTable(table.TableGuid, vasia);
            app.AddPlayerToTable(table.TableGuid, petya);
            app.StartTableGame(table.TableGuid);

            Console.ReadKey();
        }
 public StageControllerRoundResult(IExecutor executor, PlaygroundController controller) : base(executor, controller)
 {
 }
Example #4
0
	public StageControllerCounterChange(IExecutor executor, PlaygroundController controller) : base(executor, controller) { }
 public StageControllerWaitForRound(IExecutor executor, PlaygroundController controller) : base(executor, controller)
 {
 }
Example #6
0
 protected StageControllerBase(IExecutor executor, PlaygroundController controller)
 {
     _executor = executor;
     Controller = controller;
 }
 public StageControllerFoeSelect(IExecutor executor, PlaygroundController controller) : base(executor, controller)
 {
 }