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.

Item.h 270B

12345678910111213141516171819
  1. #pragma once
  2. #include <memory>
  3. #include <string>
  4. #include <SFML/Graphics/Image.hpp>
  5. namespace Swan {
  6. struct Item {
  7. std::unique_ptr<sf::Image> image;
  8. std::string name = "";
  9. static Item INVALID_ITEM;
  10. static Item *createInvalid();
  11. static void initGlobal();
  12. };
  13. }