Example #1
0
 /// <summary>
 /// Called by framework. Do not call directly.
 /// </summary>
 public static void Instanciate()
 {
     _instance             = new Screen();
     _instance._lastWidth  = Width;
     _instance._lastHeight = Height;
     GameFramework.RegisterForUpdate(_instance);
 }
Example #2
0
 /// <summary>
 /// Called by framework. Do not call directly.
 /// </summary>
 public static void Instantiate()
 {
     _instance = new Mouse();
     Global.gEnv.pHardwareMouse.AddListener(_instance);
     GameFramework.RegisterForUpdate(_instance);
     HitEntityId = 0;
     HitEntityUV = new Vec2();
 }
Example #3
0
        public Timer(float time, bool looping, Action onTimerExpired = null)
        {
            GameFramework.RegisterForUpdate(this);

            this._timeToLive     = time;
            this._onTimerExpired = onTimerExpired;
            this.Looping         = looping;

            _startTime = Engine.Timer.GetCurrTime();
        }
Example #4
0
 public DeferredMouseListener(Mouse mouse)
 {
     _mouse = mouse;
     GameFramework.RegisterForUpdate(this);
     Global.gEnv.pHardwareMouse.AddListener(this);
 }
Example #5
0
 /// <summary>
 /// Called by framework. Do not call directly.
 /// </summary>
 public static void Instantiate()
 {
     _instance = new SceneManager();
     GameFramework.RegisterForUpdate(_instance);
 }
Example #6
0
 void AddListener()
 {
     GameFramework.RegisterForUpdate(this);
     Global.gEnv.pHardwareMouse.AddListener(this);
 }