deltaluca

Untitled

Mar 28th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. typedef MainLoopExtensions = {
  2. onUpdate : World->Void;
  3. }
  4.  
  5. typedef EntityExtensions = {
  6. somethingelse : ....;
  7. }
  8.  
  9. typedef WorldExtensions = {>MainLoopExtensions, >EntityExtensions}
  10.  
  11. class World {
  12. public function new(?extensions:WorldExtensions) { }
  13. }
  14.  
  15. new World({onUpdate : something}) //rest are assumed null
Advertisement
Add Comment
Please, Sign In to add comment