protected override Entity makeEntity(EntitySchema schema, int chunkX, int chunkZ, WorldManager manager) { WorldPosition position = new WorldPosition( chunkX, chunkZ, schema.inChunkX, schema.inChunkY, schema.inChunkZ); switch (schema.TypeID) { case 0: return new ScootBlock(position, manager); case 1: return new SceneryEntity(position, manager); default: throw new NotImplementedException(); } }
protected abstract Entity makeEntity(EntitySchema schema, int chunkX, int chunkZ, WorldManager manager);
public static Entity MakeEntity(EntitySchema schema, int chunkX, int chunkZ, WorldManager manager) { return instance.makeEntity(schema, chunkX, chunkZ, manager); }
protected override Entity makeEntity(EntitySchema schema, int chunkX, int chunkZ, WorldManager manager) { throw new NotImplementedException(); }