Placeholder for game elements in 2D levels that can be filled after the level generation process.
Inheritance: ByChance.Core.Anchor
Example #1
0
 /// <summary>
 /// Constructs a new anchor with the same index and relative position
 /// as the passed one and attaches it to the specified chunk.
 /// </summary>
 /// <param name="template">Anchor whose attributes to copy.</param>
 /// <param name="source">Chunk to attach the new anchor to.</param>
 internal Anchor2D(Anchor2D template, Chunk source)
     : base(template.Tag)
 {
     this.Index = template.Index;
     this.Source = source;
     this.RelativePosition = template.RelativePosition;
 }