From 55c39d6e273c51a4034a051b9108cef46b15d6cb Mon Sep 17 00:00:00 2001 From: Bodo Junglas Date: Thu, 4 Apr 2024 20:18:57 +0200 Subject: [PATCH] Prepare release --- SpaceWarpMod/KontrolSystemMod.cs | 4 +- SpaceWarpMod/reference.json | 48 +++++++++++-------- SpaceWarpMod/swinfo.json | 2 +- .../server/src/reference/reference.json | 48 +++++++++++-------- docs/reference/ksp/game.md | 7 +-- docs/reference/ksp/math.md | 2 + docs/reference/ksp/vessel.md | 2 - 7 files changed, 65 insertions(+), 48 deletions(-) diff --git a/SpaceWarpMod/KontrolSystemMod.cs b/SpaceWarpMod/KontrolSystemMod.cs index 91d3254f..a94ed163 100644 --- a/SpaceWarpMod/KontrolSystemMod.cs +++ b/SpaceWarpMod/KontrolSystemMod.cs @@ -13,13 +13,13 @@ namespace KontrolSystem.SpaceWarpMod; -[BepInPlugin("com.github.untoldwind.KontrolSystem2", "KontrolSystem2", "0.5.7.8")] +[BepInPlugin("com.github.untoldwind.KontrolSystem2", "KontrolSystem2", "0.5.7.9")] [BepInDependency(SpaceWarpPlugin.ModGuid, SpaceWarpPlugin.ModVer)] [BepInDependency(KSPAddonsModule.FlightPlanAdapter.ModGuid, BepInDependency.DependencyFlags.SoftDependency)] public class KontrolSystemMod : BaseSpaceWarpPlugin { public const string ModGuid = "com.github.untoldwind.KontrolSystem2"; public const string ModName = "KontrolSystem2"; - public const string ModVersion = "0.5.7.8"; + public const string ModVersion = "0.5.7.9"; private ModuleManagerWindow? moduleManagerWindow; private UIWindows? uiWindows; diff --git a/SpaceWarpMod/reference.json b/SpaceWarpMod/reference.json index d5a1a0ea..3048903c 100644 --- a/SpaceWarpMod/reference.json +++ b/SpaceWarpMod/reference.json @@ -8024,6 +8024,15 @@ "name": "Mainframe", "description": "", "fields": { + "version": { + "name": "version", + "description": "Version number of the KontrolSystem\n", + "readOnly": true, + "type": { + "kind": "Builtin", + "name": "string" + } + }, "available_processes": { "name": "available_processes", "readOnly": true, @@ -9325,6 +9334,25 @@ "name": "float" } }, + "axis": { + "name": "axis", + "description": "The rotation axis", + "readOnly": true, + "type": { + "kind": "Standard", + "module": "ksp::math", + "name": "Vec3" + } + }, + "angle": { + "name": "angle", + "description": "The rotation angle around the axis in degrees", + "readOnly": true, + "type": { + "kind": "Builtin", + "name": "float" + } + }, "inverse": { "name": "inverse", "description": "Inverse direction", @@ -52779,16 +52807,6 @@ "name": "float" } }, - "global_angular_momentum": { - "name": "global_angular_momentum", - "description": "Get the coordinate system independent angular momentum of the vessel.\n", - "readOnly": true, - "type": { - "kind": "Standard", - "module": "ksp::math", - "name": "GlobalAngularVelocity" - } - }, "global_angular_velocity": { "name": "global_angular_velocity", "description": "Get the coordinate system independent angular velocity of the vessel.\n", @@ -52819,16 +52837,6 @@ "name": "Vec3" } }, - "angular_momentum": { - "name": "angular_momentum", - "description": "Get the angular momentum of the vessel in the celestial frame of its main body.\n", - "readOnly": true, - "type": { - "kind": "Standard", - "module": "ksp::math", - "name": "Vec3" - } - }, "angular_velocity": { "name": "angular_velocity", "description": "Get the coordinate angular velocity in the celestial frame of its main body.\n", diff --git a/SpaceWarpMod/swinfo.json b/SpaceWarpMod/swinfo.json index 47fc6958..8490af7e 100644 --- a/SpaceWarpMod/swinfo.json +++ b/SpaceWarpMod/swinfo.json @@ -4,7 +4,7 @@ "name": "Kontrol System", "description": "Autopilot scripting framework", "source": "https://github.com/untoldwind/KontrolSystem2", - "version": "0.5.7.8", + "version": "0.5.7.9", "dependencies": [], "ksp2_version": { "min": "0", diff --git a/Tools/vscode/to2-syntax/server/src/reference/reference.json b/Tools/vscode/to2-syntax/server/src/reference/reference.json index d5a1a0ea..3048903c 100644 --- a/Tools/vscode/to2-syntax/server/src/reference/reference.json +++ b/Tools/vscode/to2-syntax/server/src/reference/reference.json @@ -8024,6 +8024,15 @@ "name": "Mainframe", "description": "", "fields": { + "version": { + "name": "version", + "description": "Version number of the KontrolSystem\n", + "readOnly": true, + "type": { + "kind": "Builtin", + "name": "string" + } + }, "available_processes": { "name": "available_processes", "readOnly": true, @@ -9325,6 +9334,25 @@ "name": "float" } }, + "axis": { + "name": "axis", + "description": "The rotation axis", + "readOnly": true, + "type": { + "kind": "Standard", + "module": "ksp::math", + "name": "Vec3" + } + }, + "angle": { + "name": "angle", + "description": "The rotation angle around the axis in degrees", + "readOnly": true, + "type": { + "kind": "Builtin", + "name": "float" + } + }, "inverse": { "name": "inverse", "description": "Inverse direction", @@ -52779,16 +52807,6 @@ "name": "float" } }, - "global_angular_momentum": { - "name": "global_angular_momentum", - "description": "Get the coordinate system independent angular momentum of the vessel.\n", - "readOnly": true, - "type": { - "kind": "Standard", - "module": "ksp::math", - "name": "GlobalAngularVelocity" - } - }, "global_angular_velocity": { "name": "global_angular_velocity", "description": "Get the coordinate system independent angular velocity of the vessel.\n", @@ -52819,16 +52837,6 @@ "name": "Vec3" } }, - "angular_momentum": { - "name": "angular_momentum", - "description": "Get the angular momentum of the vessel in the celestial frame of its main body.\n", - "readOnly": true, - "type": { - "kind": "Standard", - "module": "ksp::math", - "name": "Vec3" - } - }, "angular_velocity": { "name": "angular_velocity", "description": "Get the coordinate angular velocity in the celestial frame of its main body.\n", diff --git a/docs/reference/ksp/game.md b/docs/reference/ksp/game.md index 1d05e9ee..f94d2001 100644 --- a/docs/reference/ksp/game.md +++ b/docs/reference/ksp/game.md @@ -12,9 +12,10 @@ Collection to game and runtime related functions. #### Fields -| Name | Type | Read-only | Description | -| ------------------- | ------------------------------------------------------ | --------- | ----------- | -| available_processes | [ksp::game::Process](/reference/ksp/game.md#process)[] | R/O | | +| Name | Type | Read-only | Description | +| ------------------- | ------------------------------------------------------ | --------- | ------------------------------------ | +| available_processes | [ksp::game::Process](/reference/ksp/game.md#process)[] | R/O | | +| version | string | R/O | Version number of the KontrolSystem | #### Methods diff --git a/docs/reference/ksp/math.md b/docs/reference/ksp/math.md index 9800c09c..2a1a7aa7 100644 --- a/docs/reference/ksp/math.md +++ b/docs/reference/ksp/math.md @@ -13,6 +13,8 @@ Represents the rotation from an initial coordinate system when looking down the | Name | Type | Read-only | Description | | ------------ | -------------------------------------------------------- | --------- | ---------------------------------------------------------- | +| angle | float | R/O | The rotation angle around the axis in degrees | +| axis | [ksp::math::Vec3](/reference/ksp/math.md#vec3) | R/O | The rotation axis | | euler | [ksp::math::Vec3](/reference/ksp/math.md#vec3) | R/W | Euler angles in degree of the rotation | | inverse | [ksp::math::Direction](/reference/ksp/math.md#direction) | R/O | Inverse direction | | pitch | float | R/O | Pitch in degree | diff --git a/docs/reference/ksp/vessel.md b/docs/reference/ksp/vessel.md index ddaadcb6..ac569b90 100644 --- a/docs/reference/ksp/vessel.md +++ b/docs/reference/ksp/vessel.md @@ -1746,7 +1746,6 @@ Represents an in-game vessel, which might be a rocket, plane, rover ... or actua | altitude_scenery | float | R/O | | | altitude_sealevel | float | R/O | Altitude from sea level. | | altitude_terrain | float | R/O | Altitude from terrain. | -| angular_momentum | [ksp::math::Vec3](/reference/ksp/math.md#vec3) | R/O | Get the angular momentum of the vessel in the celestial frame of its main body. | | angular_velocity | [ksp::math::Vec3](/reference/ksp/math.md#vec3) | R/O | Get the coordinate angular velocity in the celestial frame of its main body. | | atmosphere_density | float | R/O | | | autopilot | [ksp::vessel::Autopilot](/reference/ksp/vessel.md#autopilot) | R/O | Collection of methods to interact with the SAS system of the vessel. | @@ -1766,7 +1765,6 @@ Represents an in-game vessel, which might be a rocket, plane, rover ... or actua | engines | [ksp::vessel::ModuleEngine](/reference/ksp/vessel.md#moduleengine)[] | R/O | Get a list of all engine parts of the vessel. | | facing | [ksp::math::Direction](/reference/ksp/math.md#direction) | R/O | Get the current facing direction of the vessel in the celestial frame of its main body. | | geo_coordinates | [ksp::orbit::GeoCoordinates](/reference/ksp/orbit.md#geocoordinates) | R/O | Get the current geo-coordinate of the vessel. | -| global_angular_momentum | [ksp::math::GlobalAngularVelocity](/reference/ksp/math.md#globalangularvelocity) | R/O | Get the coordinate system independent angular momentum of the vessel. | | global_angular_velocity | [ksp::math::GlobalAngularVelocity](/reference/ksp/math.md#globalangularvelocity) | R/O | Get the coordinate system independent angular velocity of the vessel. | | global_center_of_mass | [ksp::math::GlobalPosition](/reference/ksp/math.md#globalposition) | R/O | Coordinate independent position of the center of mass. | | global_east | [ksp::math::GlobalVector](/reference/ksp/math.md#globalvector) | R/O | Get the coordinate system independent horizon north vector. |