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]++; }
public WaypointStructure(Point point, Rotator rotation) { this.point = point; this.rotation = rotation; }
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; }
public ResetElement(Path owner, float x, float y, float z, Rotator yaw) : base(owner) { this.yaw = yaw; this.point = new Point(x, y, z); }
public PointElement(Path owner, float x, float y, float z, Rotator yaw) : base(owner) { structure.point = new Point(x, y, z); structure.rotation = yaw; }