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();
            }
        }
示例#2
0
 protected abstract Entity makeEntity(EntitySchema schema, int chunkX, int chunkZ, WorldManager manager);
示例#3
0
 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();
 }