Example #1
0
        public void AddSegmentEndFlags(UIPanel parent)
        {
            AssertNotNull(parent, "parent");
            NetUtil.AssertSegmentValid(segmentID_);

            var mask = ARTool.GetUsedFlagsSegmentEnd(segmentID: segmentID_, nodeID: nodeID_);

            foreach (var flag in mask.ExtractPow2Flags())
            {
                SegmentEndFlagToggle.Add(parent, segmentID: segmentID_, nodeID: nodeID_, flag: flag);
            }
        }
Example #2
0
        public void AddSegmentEndFlags(UIPanel container)
        {
            AssertNotNull(container, "container");
            NetUtil.AssertSegmentValid(segmentID_);
            Assertion.Assert(NetUtil.IsNodeValid(nodeID_), $"IsNodeValid({nodeID_})");

            var mask = ARTool.GetUsedFlagsSegmentEnd(segmentID: segmentID_, nodeID: nodeID_);

            foreach (var flag in mask.ExtractPow2Flags())
            {
                SegmentEndFlagToggle.Add(container, segmentID: segmentID_, nodeID: nodeID_, flag: flag);
            }
        }