コード例 #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);
 }
コード例 #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();
 }
コード例 #3
0
ファイル: Timer.cs プロジェクト: blockspacer/CRYENGINE-LFS
        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();
        }
コード例 #4
0
 public DeferredMouseListener(Mouse mouse)
 {
     _mouse = mouse;
     GameFramework.RegisterForUpdate(this);
     Global.gEnv.pHardwareMouse.AddListener(this);
 }
コード例 #5
0
 /// <summary>
 /// Called by framework. Do not call directly.
 /// </summary>
 public static void Instantiate()
 {
     _instance = new SceneManager();
     GameFramework.RegisterForUpdate(_instance);
 }
コード例 #6
0
ファイル: Mouse.cs プロジェクト: 54BarrosCreations/CRYENGINE
 void AddListener()
 {
     GameFramework.RegisterForUpdate(this);
     Global.gEnv.pHardwareMouse.AddListener(this);
 }