A 2D tile-based sandbox game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

common.h 590B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. // We want every file to be able to easily add Tracy zones
  3. #include <Tracy.hpp>
  4. #include <swan-common/Vector2.h>
  5. #include <swan-common/constants.h>
  6. // Forward declare the Cygnet::Renderer, because lots of functions will need
  7. // to take a reference to it. It's nicer to not have to include Cygnet::Renderer
  8. // in every header.
  9. namespace Cygnet {
  10. class Renderer;
  11. }
  12. namespace Swan {
  13. using namespace SwanCommon;
  14. using TilePos = Vec2i;
  15. using ChunkPos = Vec2i;
  16. class Game;
  17. class World;
  18. class WorldPlane;
  19. struct Context {
  20. Game &game;
  21. World &world;
  22. WorldPlane &plane;
  23. };
  24. }