Last active
August 29, 2015 14:07
-
-
Save LaylBongers/d1fc86ecb46127041116 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using WarpEngine; | |
| namespace Warpcore | |
| { | |
| public sealed class Client : Game | |
| { | |
| private Loop _updateLoop; | |
| public Client() | |
| { | |
| _updateLoop = StartLoop(Update, TimeSpan.FromSeconds(1.0/100.0)); | |
| // In practice we'll render at the VSync FPS, but this sets a nice just in case minimum | |
| StartLoop(Render, TimeSpan.FromSeconds(1.0/1000.0)); | |
| } | |
| private void Update(TimeSpan delta) | |
| { | |
| _updateLoop.Stop(); | |
| } | |
| private void Render(TimeSpan delta) | |
| { | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment