예제 #1
0
파일: Levels.cs 프로젝트: jiowchern/Regulus
        public Levels(MapPrototype map_prototype, Squad squad)
        {
            _Position = 0.0f;
            _Id = Guid.NewGuid();
            this._MapPrototype = map_prototype;
            _Stations = new Queue<Station>(_MapPrototype.Stations);
            _StageMachine = new Regulus.Utility.StageMachine();

            _Platoon = new Platoon(squad);
            _Platoon.EmptyEvent += () => { ReleaseEvent(); };

            _Platoons = new Utility.Updater(); ;
        }
예제 #2
0
 public Platoon(Squad squad)
 {
     this._Squad = squad;
 }
예제 #3
0
 internal void Leave(Squad squad)
 {
     if (squad == _Squad)
     {
         EmptyEvent();
         _Squad = null;
     }
 }
예제 #4
0
파일: Levels.cs 프로젝트: jiowchern/Regulus
 void ILevels.Leave(Squad squad)
 {
     _Platoon.Leave(squad);
 }