Compare commits
2 Commits
4e885847a8
...
6bee591484
| Author | SHA1 | Date | |
|---|---|---|---|
| 6bee591484 | |||
|
c3c14cec23
|
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
[0.4.4]
|
||||||
|
|
||||||
|
- Added Stationpedia docs back after removing all harmony patches from the mod
|
||||||
|
|
||||||
[0.4.3]
|
[0.4.3]
|
||||||
|
|
||||||
- Removed references to the `Mod` class from SLP. This was the root of the multiplayer
|
- Removed references to the `Mod` class from SLP. This was the root of the multiplayer
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<ModMetadata xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
<ModMetadata xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
<Name>Slang</Name>
|
<Name>Slang</Name>
|
||||||
<Author>JoeDiertay</Author>
|
<Author>JoeDiertay</Author>
|
||||||
<Version>0.4.3</Version>
|
<Version>0.4.4</Version>
|
||||||
<Description>
|
<Description>
|
||||||
[h1]Slang: High-Level Programming for Stationeers[/h1]
|
[h1]Slang: High-Level Programming for Stationeers[/h1]
|
||||||
|
|
||||||
|
|||||||
18
csharp_mod/Patches.cs
Normal file
18
csharp_mod/Patches.cs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
namespace Slang;
|
||||||
|
|
||||||
|
using Assets.Scripts.UI;
|
||||||
|
using HarmonyLib;
|
||||||
|
|
||||||
|
[HarmonyPatch]
|
||||||
|
public static class SlangPatches
|
||||||
|
{
|
||||||
|
[HarmonyPatch(typeof(Stationpedia), nameof(Stationpedia.Regenerate))]
|
||||||
|
[HarmonyPostfix]
|
||||||
|
public static void Stationpedia_Regenerate()
|
||||||
|
{
|
||||||
|
foreach (var page in Marshal.GetSlangDocs())
|
||||||
|
{
|
||||||
|
Stationpedia.Register(page);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -40,7 +40,7 @@ namespace Slang
|
|||||||
{
|
{
|
||||||
public const string PluginGuid = "com.biddydev.slang";
|
public const string PluginGuid = "com.biddydev.slang";
|
||||||
public const string PluginName = "Slang";
|
public const string PluginName = "Slang";
|
||||||
public const string PluginVersion = "0.4.3";
|
public const string PluginVersion = "0.4.4";
|
||||||
|
|
||||||
private Harmony? _harmony;
|
private Harmony? _harmony;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user