-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AppHub is now a Unity singleton, so it is dependency injectable and n…
…othing needs to manually create/destroy it. Added TaskManager this allows objects to be registered for update, render, etc. Added tests for TaskManager.
- Loading branch information
Ashley Davis
committed
Mar 30, 2015
1 parent
285f92c
commit 4efa717
Showing
37 changed files
with
9,526 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace RSG | ||
{ | ||
/// <summary> | ||
/// Interface to an updatable object. | ||
/// </summary> | ||
public interface IUpdatable | ||
{ | ||
/// <summary> | ||
/// Update the object. | ||
/// </summary> | ||
void Update(float timeDelta); | ||
} | ||
|
||
/// <summary> | ||
/// Interface to a late updatable object. | ||
/// </summary> | ||
public interface ILateUpdatable | ||
{ | ||
/// <summary> | ||
/// Update the object. | ||
/// </summary> | ||
void LateUpdate(float timeDelta); | ||
} | ||
|
||
/// <summary> | ||
/// Inteface for an object that gets an update after the end of each frame | ||
/// </summary> | ||
public interface IEndOfFrameUpdatable | ||
{ | ||
/// <summary> | ||
/// End of frame is reached | ||
/// </summary> | ||
void EndOfFrame(); | ||
} | ||
|
||
/// <summary> | ||
/// Interface for an object that is renderable. | ||
/// </summary> | ||
public interface IRenderable | ||
{ | ||
/// <summary> | ||
/// Render the object. | ||
/// </summary> | ||
void Render(); | ||
} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.