Ejemplo n.º 1
0
        public LinedefProperties(Linedef l)
        {
            if (l.Front != null)
            {
                front = new SidedefProperties(l.Front);
            }
            else
            {
                front = null;
            }

            if (l.Back != null)
            {
                back = new SidedefProperties(l.Back);
            }
            else
            {
                back = null;
            }

            flags    = l.GetFlags();
            action   = l.Action;
            activate = l.Activate;
            tag      = l.Tag;
            args     = (int[])(l.Args.Clone());
            fields   = new UniFields(l.Fields);
        }
Ejemplo n.º 2
0
 //mxd. These should be reset when changing maps
 private void ResetCopyProperties()
 {
     copiedvertexprops  = null;
     copiedthingprops   = null;
     copiedlinedefprops = null;
     copiedsidedefprops = null;
     copiedsectorprops  = null;
 }
Ejemplo n.º 3
0
        public LinedefProperties(Linedef l) : base(l.Fields, MapElementType.LINEDEF)
        {
            front = (l.Front != null ? new SidedefProperties(l.Front) : null);
            back  = (l.Back != null ? new SidedefProperties(l.Back) : null);

            flags    = l.GetFlags();
            action   = l.Action;
            activate = l.Activate;
            tags     = new List <int>(l.Tags);        //mxd
            args     = (int[])(l.Args.Clone());
        }