Globals.h 992 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #include <Array.h>
  3. #include <DLLRegister.h>
  4. #include <Font.h>
  5. #include <HashMap.h>
  6. #include <RCPointer.h>
  7. #include <RenderThread.h>
  8. #include <Screen.h>
  9. #include <UIInitialization.h>
  10. #include <Window.h>
  11. #include "Menu.h"
  12. #ifndef variable
  13. # define variable extern
  14. #endif
  15. class BlockType;
  16. class EntityType;
  17. class ItemType;
  18. variable Framework::HashMap<Framework::Text, Framework::RCPointer<Menu>>*
  19. menuRegister;
  20. variable UIInit uiFactory;
  21. variable Framework::HashMap<Framework::Text, Framework::RCPointer<Font>>*
  22. fontRegister;
  23. variable DLLRegister* dlls;
  24. variable Framework::NativeWindow* window;
  25. variable BlockType** blockTypes;
  26. variable int blockTypeCount;
  27. variable ItemType** itemTypes;
  28. variable int itemTypeCount;
  29. variable EntityType** entityTypes;
  30. variable int entityTypeCount;
  31. variable Framework::RenderTh* renderThread;
  32. void initVariables();
  33. void initMenus();
  34. void releaseVariables();
  35. const ItemType* zItemType(int id);