public void Display(Game game, GameFlowView flowView, CorpView corpView, BoardParts parts) { var presentBox = flowView.TimeCross.PresentBox; RigGrid rigGrid = new RigGrid(GameObject.Find("Rig"), game, flowView.PaidChoice, parts); HeapPile heapPile = new HeapPile(GameObject.Find("Heap"), game, parts); GripFan gripFan = new GripFan(GameObject.Find("Grip"), game, presentBox.RunnerActionPhase.AddComponent <DropZone>(), rigGrid.DropZone, heapPile.DropZone, parts); StackPile stackPile = new StackPile(GameObject.Find("Stack"), game, gripFan.DropZone, parts); new ZoneBox(GameObject.Find("Runner/Left hand/Score"), parts).Represent(game.runner.zones.score.zone); parts.Print(GameObject.Find("Runner/Right hand/Core/Identity")).Print(game.runner.identity); new RunInitiation( gameObject: GameObject.Find("Run"), serverRow: corpView.serverRow, game: game ); var credits = GameObject.Find("Runner/Credits"); presentBox .BankCredit .AddComponent <Droppable>() .Represent( new InteractiveAbility(game.runner.actionCard.credit, credits.AddComponent <DropZone>(), game) ); game.runner.credits.Observe(credits.AddComponent <CreditSpiral>()); game.runner.credits.Observe(credits.AddComponent <PileCount>()); }
public void Display(Game game, CorpView corpView) { GripFan grip = Object.FindObjectOfType <GripFan>(); StackPile stackPile = Object.FindObjectOfType <StackPile>(); RigGrid rig = Object.FindObjectOfType <RigGrid>(); var playZone = GameObject.Find("Trigger").AddComponent <DropZone>(); var rigZone = GameObject.Find("Rig").AddComponent <DropZone>(); var heapZone = GameObject.Find("Heap").AddComponent <DropZone>(); var gripZone = GameObject.Find("Grip").AddComponent <DropZone>(); new ZoneBox(GameObject.Find("Runner/Left hand/Score")).Represent(game.runner.zones.score.zone); grip.Construct(game, playZone, rigZone, heapZone); stackPile.Construct(game, gripZone); rig.Construct(game, playZone); GameObject.Find("Runner/Right hand/Core/Identity").AddComponent <CardPrinter>().Print(game.runner.identity); new RunInitiation( gameObject: GameObject.Find("Runner/Activation/Run"), serverRow: corpView.serverRow, game: game ); GameObject.Find("Bank/Credit") .AddComponent <DroppableAbility>() .Represent( game.runner.actionCard.credit, game, GameObject.Find("Runner/Right hand/Credits").AddComponent <DropZone>() ); game.runner.credits.Observe(GameObject.Find("Runner/Right hand/Credits/Credits text").AddComponent <CreditPoolText>()); var zones = game.runner.zones; zones.stack.zone.ObserveCount(stackPile.gameObject.AddComponent <PileCount>()); zones.stack.zone.ObserveCount(stackPile); zones.grip.zone.ObserveAdditions(grip); zones.grip.zone.ObserveRemovals(grip); zones.heap.zone.ObserveAdditions(Object.FindObjectOfType <HeapPile>()); }