ByChance.Core.Chunk.Chunk C# (CSharp) Method

Chunk() protected method

Constructs a new, empty chunk with a reference to the passed chunk template.
is null.
protected Chunk ( ChunkTemplate template ) : System
template ChunkTemplate Chunk template the new chunk will be based on.
return System
        protected Chunk(ChunkTemplate template)
        {
            if (template == null)
            {
                throw new ArgumentNullException("template");
            }

            this.ChunkContexts = new List<Context>();
            this.ChunkAnchors = new List<Anchor>();

            this.ChunkTemplate = template;
        }