Ejemplo n.º 1
0
        public override void Unserialize(BinaryReader br, UInt32 mapVersion)
        {
            DefaultMapPath   = br.ReadUInt32();
            ReverseDirection = br.ReadBoolean();
            PathName         = br.ReadStringOn(64);

            var pointCount = br.ReadUInt32();

            for (var i = 0U; i < pointCount; ++i)
            {
                MapPathPoints.Add(MapPathPoint.Read(br));
            }
        }
Ejemplo n.º 2
0
        public static MapPathPoint Read(BinaryReader br)
        {
            var mp = new MapPathPoint
            {
                Position       = new Vector3().Read(br),
                AcceptDistance = br.ReadSingle(),
                ReactionCOID   = br.ReadUInt64(),
                WaitTime       = br.ReadUInt32(),
            };

            br.ReadBytes(4);

            return(mp);
        }