EntityRemovedUpdate.cpp 318 B

1234567891011121314
  1. #include "EntityRemovedUpdate.h"
  2. #include "Globals.h"
  3. EntityRemovedUpdateType::EntityRemovedUpdateType()
  4. : WorldUpdateType( ID )
  5. {}
  6. void EntityRemovedUpdateType::applyUpdate( Framework::StreamReader* zReader )
  7. {
  8. int id;
  9. zReader->lese( (char*)&id, 4 );
  10. currentGame->removeEntity( id );
  11. }