Globals.h 979 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 "ItemType.h"
  12. #include "Menu.h"
  13. #include "World.h"
  14. #ifndef variable
  15. # define variable extern
  16. #endif
  17. variable Framework::HashMap<Framework::Text, Framework::RCPointer<Menu>>*
  18. menuRegister;
  19. variable UIInit uiFactory;
  20. variable Framework::HashMap<Framework::Text, Framework::RCPointer<Font>>*
  21. fontRegister;
  22. variable DLLRegister* dlls;
  23. variable Framework::NativeWindow* window;
  24. variable BlockType** blockTypes;
  25. variable int blockTypeCount;
  26. variable ItemType** itemTypes;
  27. variable int itemTypeCount;
  28. variable EntityType** entityTypes;
  29. variable int entityTypeCount;
  30. variable Framework::RenderTh* renderThread;
  31. void initVariables();
  32. void initMenus();
  33. void releaseVariables();
  34. const ItemType* zItemType(int id);