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

Item.cc 270B

12345678910111213141516
  1. #include "Item.h"
  2. #include "Resource.h"
  3. #include "Game.h"
  4. #include "common.h"
  5. namespace Swan {
  6. std::unique_ptr<Item> Item::createInvalid(Context &ctx) {
  7. return std::make_unique<Item>(ctx.resources, Builder{
  8. .name = "@::invalid",
  9. .image = "@::invalid",
  10. });
  11. }
  12. }