Skip to content

Commit

Permalink
Improved a few comments and changed when mod scene change callback tr…
Browse files Browse the repository at this point in the history
…iggers (#3842)

* Improved a few comments and switched when mod scene change callback is triggered

* Updated common module
  • Loading branch information
hhyyrylainen committed Nov 1, 2022
1 parent 7d48312 commit 61fe92f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RevolutionaryGamesCommon
Submodule RevolutionaryGamesCommon updated 29 files
+8 −0 DevCenterCommunication/Models/ClientSideModelWithCreationTime.cs
+8 −0 DevCenterCommunication/Models/ClientSideTimedModel.cs
+24 −0 DevCenterCommunication/Models/DehydratedObjectDownloads.cs
+13 −0 DevCenterCommunication/Models/DevBuildDehydratedObjectDownloadRequest.cs
+21 −0 DevCenterCommunication/Models/DevBuildDownload.cs
+28 −0 DevCenterCommunication/Models/DevBuildFindByTypeForm.cs
+58 −0 DevCenterCommunication/Models/DevBuildLauncherDTO.cs
+27 −0 DevCenterCommunication/Models/DevBuildSearchForm.cs
+15 −0 DevCenterCommunication/Models/DevBuildSearchResults.cs
+7 −1 DevCenterCommunication/Models/DownloadableInfo.cs
+11 −0 DevCenterCommunication/Models/IIdentifiable.cs
+22 −0 DevCenterCommunication/Models/ITimestampedModel.cs
+41 −0 DevCenterCommunication/Models/LauncherConnectionStatus.cs
+15 −0 DevCenterCommunication/Models/LauncherLinkCodeCheckForm.cs
+20 −0 DevCenterCommunication/Models/LauncherLinkResult.cs
+10 −0 DevCenterCommunication/Models/LauncherThriveInformation.cs
+9 −0 DevCenterCommunication/Models/LauncherUnlinkResult.cs
+5 −0 DevCenterCommunication/Models/ThriveVersionLauncherInfo.cs
+13 −5 DevCenterCommunication/Utilities/SignedDataHandler.cs
+2 −0 RevolutionaryGamesCommon.sln.DotSettings
+15 −0 ScriptsBase/Utilities/ThriveProperties.cs
+1 −1 SharedBase.Tests/ModelVerifiers.Tests/EmailAttributeTests.cs
+33 −0 SharedBase.Tests/Utilities.Tests/HashTests.cs
+24 −0 SharedBase.Tests/Utilities.Tests/UriExtensionsTests.cs
+67 −0 SharedBase/Models/ObservableValue.cs
+36 −0 SharedBase/Utilities/LambdaBasedObserver.cs
+29 −9 SharedBase/Utilities/ProcessRunHelpers.cs
+28 −0 SharedBase/Utilities/UriExtensions.cs
+27 −0 SharedBase/Utilities/ValuePrintHelpers.cs
2 changes: 2 additions & 0 deletions Thrive.sln.DotSettings
Expand Up @@ -471,6 +471,7 @@
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=CO/@EntryIndexedValue">CO</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=CP/@EntryIndexedValue">CP</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=CPU/@EntryIndexedValue">CPU</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=DTO/@EntryIndexedValue">DTO</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=FPS/@EntryIndexedValue">FPS</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=GLES/@EntryIndexedValue">GLES</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=GUI/@EntryIndexedValue">GUI</s:String>
Expand Down Expand Up @@ -516,6 +517,7 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=bathypelagic/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Biome/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=biomes/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=botd/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=carbondioxide/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=cellulase/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Chemereception/@EntryIndexedValue">True</s:Boolean>
Expand Down
3 changes: 1 addition & 2 deletions src/engine/SceneManager.cs
Expand Up @@ -50,15 +50,14 @@ public void SwitchToScene(string scenePath)

internalRootNode.AddChild(newSceneRoot);
GetTree().CurrentScene = newSceneRoot;
ModLoader.ModInterface.TriggerOnSceneChanged(newSceneRoot);

if (!keepOldRoot)
{
oldRoot?.QueueFree();
return null;
}

ModLoader.ModInterface.TriggerOnSceneChanged(newSceneRoot);

return oldRoot;
}

Expand Down
3 changes: 3 additions & 0 deletions src/engine/UnhandledExceptionLogger.cs
Expand Up @@ -11,6 +11,9 @@ public static class UnhandledExceptionLogger
public static void OnUnhandledException(object sender, UnhandledExceptionArgs args)
{
var builder = new StringBuilder(500);

// Don't change this as the launcher depends on this, in fact it would be nice to move this to a shared
// constants file
builder.Append("------------ Begin of Unhandled Exception Log ------------\n");

if (modsEnabled)
Expand Down
5 changes: 4 additions & 1 deletion src/saving/serializers/ThriveJsonConverter.cs
Expand Up @@ -91,7 +91,10 @@ public string SerializeObject(object @object, Type? type = null)
}

/// <summary>
/// Deserializes a fully dynamic object from json (object type is defined only in the json)
/// Deserializes a fully dynamic object from json (object type is defined only in the json).
/// Note that this uses the deserializer type for <see cref="object"/> which means that no custom deserializer
/// logic works! That means this is only usable for basic types. Other types must have an interface or other
/// base type and be used through <see cref="DeserializeObject{T}"/>.
/// </summary>
/// <param name="json">JSON text to parse</param>
/// <returns>The created object</returns>
Expand Down

0 comments on commit 61fe92f

Please sign in to comment.