diff --git a/UndertaleModLib/Models/UndertaleEmbeddedAudio.cs b/UndertaleModLib/Models/UndertaleEmbeddedAudio.cs
index 94c30d47f..991c5ca59 100644
--- a/UndertaleModLib/Models/UndertaleEmbeddedAudio.cs
+++ b/UndertaleModLib/Models/UndertaleEmbeddedAudio.cs
@@ -12,7 +12,7 @@ public class UndertaleEmbeddedAudio : UndertaleNamedResource, PaddedObject, IDis
///
/// The name of the embedded audio entry.
///
- /// This is an UTMT only attribute. GameMaker does not store names for them.
+ /// This is a UTMT only attribute. GameMaker does not store names for them.
public UndertaleString Name { get; set; }
///
@@ -56,13 +56,13 @@ public override string ToString()
try
{
// TODO: Does only the GUI set this?
- return Name.Content + " (" + GetType().Name + ")";
+ return $"{Name.Content} ({GetType().Name})";
}
catch
{
Name = new UndertaleString("EmbeddedSound Unknown Index");
}
- return Name.Content + " (" + GetType().Name + ")";
+ return $"{Name.Content} ({GetType().Name})";
}
///
diff --git a/UndertaleModLib/Models/UndertaleEmbeddedTexture.cs b/UndertaleModLib/Models/UndertaleEmbeddedTexture.cs
index d5949e566..2ef6fca1c 100644
--- a/UndertaleModLib/Models/UndertaleEmbeddedTexture.cs
+++ b/UndertaleModLib/Models/UndertaleEmbeddedTexture.cs
@@ -20,6 +20,9 @@ public class UndertaleEmbeddedTexture : UndertaleNamedResource, IDisposable
///
/// The name of the embedded texture entry.
///
+ ///
+ /// This is UTMT specific. The data file does not contain names for embedded textures.
+ ///
public UndertaleString Name { get; set; }
///
@@ -59,13 +62,13 @@ public TexData TextureData
///
/// Helper variable for whether or not this texture is to be stored externally or not.
///
- public bool TextureExternal { get; set; } = false;
+ public bool TextureExternal { get; set; }
///
/// Helper variable for whether or not a texture was loaded yet.
///
- public bool TextureLoaded { get; set; } = false;
+ public bool TextureLoaded { get; set; }
///
/// Width of the texture. 2022.9+ only.
diff --git a/UndertaleModLib/Models/UndertaleGlobalInit.cs b/UndertaleModLib/Models/UndertaleGlobalInit.cs
index 8f36c3884..3c833ab88 100644
--- a/UndertaleModLib/Models/UndertaleGlobalInit.cs
+++ b/UndertaleModLib/Models/UndertaleGlobalInit.cs
@@ -6,7 +6,8 @@ namespace UndertaleModLib.Models;
///
/// A global initialization entry in a data file.
///
-/// Never seen in GMS1.4 so uncertain if the structure was the same.
+///
+// TODO: Never seen in GMS1.4 so uncertain if the structure was the same.
public class UndertaleGlobalInit : UndertaleObject, INotifyPropertyChanged, IDisposable
{
private UndertaleResourceById _code = new();
@@ -14,6 +15,7 @@ public class UndertaleGlobalInit : UndertaleObject, INotifyPropertyChanged, IDis
///
/// The object which contains the code.
///
+ /// This code is executed at a global scope, before the first room of the game executes.
public UndertaleCode Code { get => _code.Resource; set { _code.Resource = value; PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Code))); } }
///
@@ -29,7 +31,7 @@ public void Serialize(UndertaleWriter writer)
public void Unserialize(UndertaleReader reader)
{
_code = new UndertaleResourceById();
- _code.Unserialize(reader); // TODO: reader.ReadUndertaleObject if one object starts with another one
+ _code.Unserialize(reader); // Cannot use ReadUndertaleObject, as that messes things up.
}
///
@@ -39,4 +41,4 @@ public void Dispose()
_code.Dispose();
}
-}
\ No newline at end of file
+}