private void SpawnEntity(int entityId, int roomId) { var entity = _entities.GetById(entityId); var room = _locations.GetRoomById(roomId); entity.Traits["room"] = room.Id.ToString(); _locations.AddEntityToRoom(entity, roomId); var action = new GameAction("spawnentity", entityId); room.HandleAction(action); // room.Region.HandleAction(action); }