A 2D tile-based sandbox game.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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. }