예제 #1
0
        public ToolBot()
        {
            this.References        = new GameReferences();
            this.InfoBarController = new InfoBarController();
            this.State             = new StateSystem();

            this.OverwatchSystem = new OverwatchSystem();

            this.HackingSystem = new HackingSystem();
            this.HackingSystem.SetReferences(this.References);
            this.HackingSystem.Setup();
            this.HackingSystem.OnStateChange += this.State.SetState;

            this.MyComputerSystem = new MyComputerSystem();
            this.MyComputerSystem.SetReferences(this.References);
            this.MyComputerSystem.Setup();
            this.MyComputerSystem.OnPortAGetInfo += this.InfoBarController.SetMyComputerPortA;
            this.MyComputerSystem.OnPortBGetInfo += this.InfoBarController.SetMyComputerPortB;
            this.MyComputerSystem.OnPortCGetInfo += this.InfoBarController.SetMyComputerPortC;

            this.BlackMarketSystem = new BlackMarketSystem();
            this.BlackMarketSystem.SetReferences(this.References);
            this.BlackMarketSystem.Setup();

            this.DataMinerSystem = new DataMinerSystem();
            this.DataMinerSystem.SetReferences(this.References);
            this.DataMinerSystem.Setup();
            this.DataMinerSystem.OnBTCoinChange     += this.InfoBarController.SetBTCoin;
            this.DataMinerSystem.OnBTCoinChange     += this.MyComputerSystem.SetBTCoin;
            this.DataMinerSystem.OnBTCoinChange     += this.BlackMarketSystem.SetBTCoin;
            this.DataMinerSystem.OnBTCoinGainChange += this.InfoBarController.SetBTCoinGain;
            this.DataMinerSystem.OnBTCoinGainChange += this.MyComputerSystem.SetBTCoinGain;
            this.DataMinerSystem.OnBTCoinGainChange += this.BlackMarketSystem.SetBTCoinGain;
        }
    void Start()
    {
        hackingSys = GetComponent <HackingSystem>();

        //To avoid repetition when entering new commands
        for (int i = 0; i < voids.Length; i++)
        {
            voids[i] = "void" + " " + voids[i].ToString() + "()";

            Debug.Log(voids[i]);
        }
    }
예제 #3
0
 protected override void ClientInteractStart(ClientObjectData data)
 {
     HackingSystem.ClientTryStartAction();
 }
예제 #4
0
 protected override void ClientInteractFinish(ClientObjectData data)
 {
     HackingSystem.ClientTryAbortAction();
 }