Skip to content

Instantly share code, notes, and snippets.

@devboy
Created October 8, 2013 17:59
Show Gist options
  • Save devboy/6888772 to your computer and use it in GitHub Desktop.
Save devboy/6888772 to your computer and use it in GitHub Desktop.
type GameObject
{
int a;
int b;
int c;
}
type GameObjectWithCheats > GameObject
{
int d;
}
if(cheats)
{
injector.map(GameObjectWithCheats, GameObject);
}
else
{
injector.map(GameObject, GameObject);
}
//Inside game
GameObject object = injector.getObject(GameObject);
object.a = 5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment