コード例 #1
0
ファイル: RandomDemo.cs プロジェクト: DanDyDunder/AbathurBot
        // Remember to clean after ourself...
        public void OnRestart()
        {
            switch (GameConstants.ParticipantRace)
            {
            case NydusNetwork.API.Protocol.Race.NoRace:
                break;

            case NydusNetwork.API.Protocol.Race.Terran:
                _abathur.RemoveFromGameloop(_terranModule);
                _added = true;
                break;

            case NydusNetwork.API.Protocol.Race.Zerg:
                _abathur.RemoveFromGameloop(_zergModule);
                _added = true;
                break;

            case NydusNetwork.API.Protocol.Race.Protoss:
                _abathur.RemoveFromGameloop(_protossModule);
                _added = true;
                break;

            case NydusNetwork.API.Protocol.Race.Random:
                break;
            }
        }
コード例 #2
0
 /// <summary>
 /// Abathur will not automaticly remove modules added at run-time.
 /// We need to manually remove the modules we added.
 /// </summary>
 public void OnRestart()
 {
     _abathur.RemoveFromGameloop(_terranModule);
     _abathur.RemoveFromGameloop(_zergModule);
     _abathur.RemoveFromGameloop(_protossModule);
 }
コード例 #3
0
 private void RemoveTactic(IReplaceableModule tactic)
 {
     activeTactics.Remove(tactic);
     abathur.RemoveFromGameloop(tactic);
 }