コード例 #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);
        }
コード例 #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));
            }
        }
コード例 #3
0
 public new AbstractDungeonStructureBuilderFinisher SetBranchData(BranchDataWrapper wrapper) => (AbstractDungeonStructureBuilderFinisher)base.SetBranchData(wrapper);
コード例 #4
0
 public AbstractDungeonStructureBuilder SetBranchData(BranchDataWrapper wrapper) => this.Also(x => newInstance.BranchDataWrapper = wrapper);
コード例 #5
0
 public NodeMetaDataBuilder SetBranchData(BranchDataWrapper wrapper) => this.Also(x => _metaData.BranchDataWrapper = wrapper);