public void AddWaypoint(Point x, Rotator yaw)
 {
     int offset = this.data.Length;
     Array.Resize<byte>(ref this.data, offset + 16);
     FloatToArray(x.x, this.data, offset);
     FloatToArray(x.y, this.data, offset + 4);
     FloatToArray(x.z, this.data, offset + 8);
     Array.Copy(BitConverter.GetBytes(yaw.rotation), 0, this.data, offset + 12, 2);
     Array.Copy(BitConverter.GetBytes(yaw.unknown), 0, this.data, offset + 14, 2);
     this.data[7]++;
 }
Esempio n. 2
0
 public WaypointStructure(Point point, Rotator rotation)
 {
     this.point = point;
     this.rotation = rotation;
 }
Esempio n. 3
0
            public ShipYard(Path owner, Point a, Rotator yaw, Point destination, byte destinationmap, uint Traveltime, uint docktime)
                : base(owner)
            {
                this.box = new BoundingBox
                (
                    4000,   //Width of the boat
                    2000,   //Length of the boat
                    410,    //Height of the boat
                    a - new Point(0, 0, 300),
                    yaw.rotation    //Yaw of the boat
                );

                DepartureWarpPosition = destination;
                DestinationMapId = destinationmap;
                this.docktime = docktime;
            }
Esempio n. 4
0
 public ResetElement(Path owner, float x, float y, float z, Rotator yaw)
     : base(owner)
 {
     this.yaw = yaw;
     this.point = new Point(x, y, z);
 }
Esempio n. 5
0
 public PointElement(Path owner, float x, float y, float z, Rotator yaw)
     : base(owner)
 {
     structure.point = new Point(x, y, z);
     structure.rotation = yaw;
 }
Esempio n. 6
0
 public WaypointStructure(Point point, Rotator rotation)
 {
     this.point    = point;
     this.rotation = rotation;
 }