Esempio n. 1
0
 public RouteInfo(OIRouteInfo.Orient orient, bool loop, List <Point> pts, bool active)
 {
     this.orient = orient;
     this.loop   = loop;
     this.pts    = pts;
     this.active = active;
 }
Esempio n. 2
0
        public override void Load(BinaryReader _reader, Version _version, bool _import, bool _tree = true)
        {
            base.Load(_reader, _version, _import, true);
            this.name = _reader.ReadString();
            ObjectInfoAssist.LoadChild(_reader, _version, this.child, _import);
            int num = _reader.ReadInt32();

            for (int index = 0; index < num; ++index)
            {
                OIRoutePointInfo oiRoutePointInfo = new OIRoutePointInfo(-1);
                oiRoutePointInfo.Load(_reader, _version, false, true);
                this.route.Add(oiRoutePointInfo);
            }
            this.active      = _reader.ReadBoolean();
            this.loop        = _reader.ReadBoolean();
            this.visibleLine = _reader.ReadBoolean();
            this.orient      = (OIRouteInfo.Orient)_reader.ReadInt32();
            this.color       = (Color)JsonUtility.FromJson <Color>(_reader.ReadString());
        }