Created
October 8, 2013 17:59
-
-
Save devboy/6888772 to your computer and use it in GitHub Desktop.
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
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