Skip to content

Commit 2f807ca

Browse files
committed
Merge branch 'develop'
2 parents 5e572ed + 9e1450f commit 2f807ca

File tree

23 files changed

+57
-59
lines changed

23 files changed

+57
-59
lines changed

Resources/GameData/kOS/kOS.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"VERSION": {
1212
"MAJOR": 1,
1313
"MINOR": 3,
14-
"PATCH": 0,
14+
"PATCH": 1,
1515
"BUILD": 0
1616
},
1717
"KSP_VERSION": {

doc/source/commands/prediction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ These return predicted information about the future position and velocity of an
3939
:param orbitable: A :struct:`Vessel`, :struct:`Body` or other :struct:`Orbitable` object
4040
:type orbitable: :struct:`Orbitable`
4141
:param time: Time of prediction
42-
:type time: :struct:`TimeSpan`
42+
:type time: :struct:`TimeStamp` or :struct:`Scalar` universal seconds
4343
:return: A position :struct:`Vector` expressed as the coordinates in the :ref:`ship-center-raw-rotation <ship-raw>` frame
4444

4545
Returns a prediction of where the :struct:`Orbitable` will be at some :ref:`universal Time <universal_time>`. If the :struct:`Orbitable` is a :struct:`Vessel`, and the :struct:`Vessel` has planned :ref:`maneuver nodes <maneuver node>`, the prediction assumes they will be executed exactly as planned.
@@ -59,7 +59,7 @@ These return predicted information about the future position and velocity of an
5959
:param orbitable: A :struct:`Vessel`, :struct:`Body` or other :struct:`Orbitable` object
6060
:type orbitable: :struct:`Orbitable`
6161
:param time: Time of prediction
62-
:type time: :struct:`TimeSpan`
62+
:type time: :struct:`TimeStamp` or :struct:`Scalar` universal seconds
6363
:return: An :ref:`ObitalVelocity <orbitablevelocity>` structure.
6464

6565
Returns a prediction of what the :ref:`Orbitable's <orbitable>` velocity will be at some :ref:`universal Time <universal_time>`. If the :struct:`Orbitable` is a :struct:`Vessel`, and the :struct:`Vessel` has planned :struct:`maneuver nodes <Node>`, the prediction assumes they will be executed exactly as planned.
@@ -98,7 +98,7 @@ These return predicted information about the future position and velocity of an
9898
:param orbitable: A :Ref:`Vessel <vessel>`, :struct:`Body` or other :struct:`Orbitable` object
9999
:type orbitable: :struct:`Orbitable`
100100
:param time: Time of prediction
101-
:type time: :struct:`TimeSpan`
101+
:type time: :struct:`TimeStamp` or :struct:`Scalar` universal seconds
102102
:return: An :struct:`Orbit` structure.
103103

104104
Returns the :ref:`Orbit patch <orbit>` where the :struct:`Orbitable` object is predicted to be at some :ref:`universal Time <universal_time>`. If the :struct:`Orbitable` is a :struct:`Vessel`, and the :struct:`Vessel` has planned :ref:`maneuver nodes <maneuver node>`, the prediction assumes they will be executed exactly as planned.

doc/source/structures/communication/message.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ Structure
3535
- Description
3636

3737
* - :attr:`SENTAT`
38-
- :struct:`TimeSpan`
38+
- :struct:`TimeStamp`
3939
- date this message was sent at
4040
* - :attr:`RECEIVEDAT`
41-
- :struct:`TimeSpan`
41+
- :struct:`TimeStamp`
4242
- date this message was received at
4343
* - :attr:`SENDER`
4444
- :struct:`Vessel` or :struct:`Boolean`
@@ -56,13 +56,13 @@ Structure
5656

5757
.. attribute:: Message:SENTAT
5858

59-
:type: :struct:`TimeSpan`
59+
:type: :struct:`TimeStamp`
6060

6161
Date this message was sent at.
6262

6363
.. attribute:: Message:RECEIVEDAT
6464

65-
:type: :struct:`TimeSpan`
65+
:type: :struct:`TimeStamp`
6666

6767
Date this message was received at.
6868

doc/source/structures/misc/kuniverse.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,9 @@ KUniverse 4th wall methods
323323
have passed (25 x 60 x 60). It doesn't care how that translates into
324324
minutes, hours, days, and years until showing it on screen to the player.)
325325

326-
This setting also affects how values from :struct:Timespan calculate
327-
the ``:hours``, ``:days``, and ``:years`` suffixes.
326+
This setting also affects how values from :struct:`TimeSpan` and
327+
:struct:`TimeStamp` calculate the ``:hours``, ``:days``, and ``:years``
328+
suffixes.
328329

329330
Note that this setting is not settable. This decision was made because
330331
the main stock KSP game only ever changes the setting on the main

src/kOS.Safe.Test/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyFileVersion("1.3.0.0")]
36-
[assembly: AssemblyVersion("1.3.0.0")]
35+
[assembly: AssemblyFileVersion("1.3.1.0")]
36+
[assembly: AssemblyVersion("1.3.1.0")]

src/kOS.Safe/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyFileVersion("1.3.0.0")]
35-
[assembly: AssemblyVersion("1.3.0.0")]
34+
[assembly: AssemblyFileVersion("1.3.1.0")]
35+
[assembly: AssemblyVersion("1.3.1.0")]

src/kOS.Safe/kOS.Safe.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
<Compile Include="Exceptions\KOSNumberParseException.cs" />
8080
<Compile Include="Exceptions\KOSObsoletionException.cs" />
8181
<Compile Include="Exceptions\KOSPatchesObsoletionException.cs" />
82-
<Compile Include="Exceptions\KOSTimeStampTimeSpanException.cs" />
8382
<Compile Include="Exceptions\KOSVolumeOutOfRangeException.cs" />
8483
<Compile Include="Exceptions\KOSYouShouldNeverSeeThisException.cs" />
8584
<Compile Include="Compilation\KS\BreakInfo.cs" />

src/kOS.sln

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ Global
1515
Release|Any CPU = Release|Any CPU
1616
EndGlobalSection
1717
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18-
{465EC87D-723D-4A6C-B116-9777AC641DE3}.Debug|Any CPU.ActiveCfg = Release|Any CPU
19-
{465EC87D-723D-4A6C-B116-9777AC641DE3}.Debug|Any CPU.Build.0 = Release|Any CPU
18+
{465EC87D-723D-4A6C-B116-9777AC641DE3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{465EC87D-723D-4A6C-B116-9777AC641DE3}.Debug|Any CPU.Build.0 = Debug|Any CPU
2020
{465EC87D-723D-4A6C-B116-9777AC641DE3}.Release|Any CPU.ActiveCfg = Release|Any CPU
2121
{465EC87D-723D-4A6C-B116-9777AC641DE3}.Release|Any CPU.Build.0 = Release|Any CPU
22-
{590FFDA8-7B44-4BC3-A12A-5FFE2BB7D8FD}.Debug|Any CPU.ActiveCfg = Release|Any CPU
23-
{590FFDA8-7B44-4BC3-A12A-5FFE2BB7D8FD}.Debug|Any CPU.Build.0 = Release|Any CPU
22+
{590FFDA8-7B44-4BC3-A12A-5FFE2BB7D8FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{590FFDA8-7B44-4BC3-A12A-5FFE2BB7D8FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
2424
{590FFDA8-7B44-4BC3-A12A-5FFE2BB7D8FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
2525
{590FFDA8-7B44-4BC3-A12A-5FFE2BB7D8FD}.Release|Any CPU.Build.0 = Release|Any CPU
26-
{C9A42A44-DDC8-4D6C-8A16-D7F30F494B46}.Debug|Any CPU.ActiveCfg = Release|Any CPU
27-
{C9A42A44-DDC8-4D6C-8A16-D7F30F494B46}.Debug|Any CPU.Build.0 = Release|Any CPU
26+
{C9A42A44-DDC8-4D6C-8A16-D7F30F494B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{C9A42A44-DDC8-4D6C-8A16-D7F30F494B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
2828
{C9A42A44-DDC8-4D6C-8A16-D7F30F494B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
2929
{C9A42A44-DDC8-4D6C-8A16-D7F30F494B46}.Release|Any CPU.Build.0 = Release|Any CPU
3030
EndGlobalSection

src/kOS/Binding/FlightStats.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public override void AddTo(SharedObjects shared)
2828
// While it would be cleaner to make it JUST a built -in function,
2929
// the bound variable had to be retained for backward compatibility with scripts
3030
// that call TIME without parentheses:
31-
shared.BindingMgr.AddGetter("TIME", () => new TimeSpan(Planetarium.GetUniversalTime()));
31+
shared.BindingMgr.AddGetter("TIME", () => new TimeStamp(Planetarium.GetUniversalTime()));
3232
shared.BindingMgr.AddGetter("ACTIVESHIP", () => VesselTarget.CreateOrGetExisting(FlightGlobals.ActiveVessel, shared));
3333
shared.BindingMgr.AddGetter("STATUS", () => shared.Vessel.situation.ToString());
3434
shared.BindingMgr.AddGetter("STAGE", () => shared.VesselTarget.StageValues);

src/kOS/Communication/MessageStructure.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public static MessageStructure CreateFromDump(SafeSharedObjects shared, Dump d)
5151

5252
private void InitializeSuffixes()
5353
{
54-
AddSuffix("SENTAT", new Suffix<kOS.Suffixed.TimeSpan>(() => new kOS.Suffixed.TimeSpan(Message.SentAt)));
55-
AddSuffix("RECEIVEDAT", new Suffix<kOS.Suffixed.TimeSpan>(() => new kOS.Suffixed.TimeSpan(Message.ReceivedAt)));
54+
AddSuffix("SENTAT", new Suffix<kOS.Suffixed.TimeStamp>(() => new kOS.Suffixed.TimeStamp(Message.SentAt)));
55+
AddSuffix("RECEIVEDAT", new Suffix<kOS.Suffixed.TimeStamp>(() => new kOS.Suffixed.TimeStamp(Message.ReceivedAt)));
5656
AddSuffix("SENDER", new Suffix<Structure>(GetVesselTarget));
5757
AddSuffix("HASSENDER", new Suffix<BooleanValue>(GetVesselExists));
5858
AddSuffix("CONTENT", new Suffix<Structure>(DeserializeContent));

0 commit comments

Comments
 (0)