So how would you translate this to C# ?:
- Code: Select all
_lastTimeUpdated = getTimer();
gameTimer=new Timer(1000 / _timerSpeed);
gameTimer.start();
gameTimer.addEventListener(TimerEvent.TIMER, gameloop, false, 0, true);
- This is obviously the main Gameloop timer. If there is a more preferred way to do this, perhaps with consideration for the fact that it is running on the server, also let me know!