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

Entity.cc 205B

123456789101112
  1. #include "Entity.h"
  2. #include "WorldPlane.h"
  3. namespace Swan {
  4. void Entity::despawn(const Swan::Context &ctx) {
  5. onDespawn(ctx);
  6. ctx.plane.getCollectionOf(typeid(*this)).erase(index_, generation_);
  7. }
  8. }