Exemplo n.º 1
0
        public object Clone()
        {
            var clone = new NodeMetaData((BranchDataWrapper)BranchDataWrapper?.Clone(), (PropertyAndTagHolder)_tagAndPropertyHolder.Clone());

            clone.OptionalNode       = OptionalNode;
            clone.OptionalEndpoint   = OptionalEndpoint;
            clone.ChildOptionalNodes = ChildOptionalNodes.ToList();
            return(clone);
        }
Exemplo n.º 2
0
        private NodeMetaData(BranchDataWrapper branchDataWrapper = null, PropertyAndTagHolder holder = null)
        {
            BranchDataWrapper = branchDataWrapper;

            if (holder != null)
            {
                holder.GetTags().ForEach(AddTag);
                holder.GetProperties().ForEach(tuple => AddProperty(tuple.Item1, tuple.Item2));
            }
        }
 public new AbstractDungeonStructureBuilderFinisher SetBranchData(BranchDataWrapper wrapper) => (AbstractDungeonStructureBuilderFinisher)base.SetBranchData(wrapper);
 public AbstractDungeonStructureBuilder SetBranchData(BranchDataWrapper wrapper) => this.Also(x => newInstance.BranchDataWrapper = wrapper);
Exemplo n.º 5
0
 public NodeMetaDataBuilder SetBranchData(BranchDataWrapper wrapper) => this.Also(x => _metaData.BranchDataWrapper = wrapper);