Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef MainLoopExtensions = {
- onUpdate : World->Void;
- }
- typedef EntityExtensions = {
- somethingelse : ....;
- }
- typedef WorldExtensions = {>MainLoopExtensions, >EntityExtensions}
- class World {
- public function new(?extensions:WorldExtensions) { }
- }
- new World({onUpdate : something}) //rest are assumed null
Advertisement
Add Comment
Please, Sign In to add comment