ByChance.Levels2D.Context2D.Context2D C# (CSharp) Method

Context2D() private method

Constructs a new context with the same index and relative position as the passed one and attaches it to the specified chunk.
private Context2D ( Context2D template, Chunk source ) : System
template Context2D Context whose attributes to copy.
source ByChance.Core.Chunk Chunk to attach the new context to.
return System
        internal Context2D(Context2D template, Chunk source)
            : base(template.Tag)
        {
            this.Index = template.Index;
            this.Source = source;
            this.RelativePosition = template.RelativePosition;
        }

Same methods

Context2D::Context2D ( Vector2F relativePosition ) : System
Context2D::Context2D ( Vector2F relativePosition, string tag ) : System