ByChance.Levels3D.LevelGenerator3D.ConstructChunkFromTemplate C# (CSharp) Method

ConstructChunkFromTemplate() protected method

Factory method that returns a new chunk based on the given chunk template that the type of the chunk template and of the chunks in the level.
/// The type of the passed chunktemplate doesn't match the desired chunk type. ///
protected ConstructChunkFromTemplate ( ChunkTemplate chunkTemplate ) : Chunk
chunkTemplate ByChance.Core.ChunkTemplate Chunk template the returned chunk should be based on.
return ByChance.Core.Chunk
        protected override Chunk ConstructChunkFromTemplate(ChunkTemplate chunkTemplate)
        {
            return new Chunk3D(chunkTemplate);
        }