Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
 protected abstract Entity makeEntity(EntitySchema schema, int chunkX, int chunkZ, WorldManager manager);
Ejemplo n.º 3
0
 public static Entity MakeEntity(EntitySchema schema, int chunkX, int chunkZ, WorldManager manager)
 {
     return instance.makeEntity(schema, chunkX, chunkZ, manager);
 }
Ejemplo n.º 4
0
 protected override Entity makeEntity(EntitySchema schema, int chunkX, int chunkZ, WorldManager manager)
 {
     throw new NotImplementedException();
 }