forked from zombieb/undead-universal-patch-il2cpp
asdf
This commit is contained in:
@@ -38,6 +38,7 @@ namespace undead_universal_patch_il2cpp.Core.Config
|
|||||||
public static ConfigEntry<bool> CustomPhoton;
|
public static ConfigEntry<bool> CustomPhoton;
|
||||||
public static ConfigEntry<bool> CustomMarquee;
|
public static ConfigEntry<bool> CustomMarquee;
|
||||||
public static ConfigEntry<bool> CustomKnownDlls;
|
public static ConfigEntry<bool> CustomKnownDlls;
|
||||||
|
public static ConfigEntry<bool> CustomGameConfigurations;
|
||||||
}
|
}
|
||||||
public static class ServerPatchesConfigDefaults
|
public static class ServerPatchesConfigDefaults
|
||||||
{
|
{
|
||||||
@@ -45,6 +46,7 @@ namespace undead_universal_patch_il2cpp.Core.Config
|
|||||||
public static bool CustomPhoton = false;
|
public static bool CustomPhoton = false;
|
||||||
public static bool CustomMarquee = false;
|
public static bool CustomMarquee = false;
|
||||||
public static bool CustomKnownDlls = false;
|
public static bool CustomKnownDlls = false;
|
||||||
|
public static bool CustomGameConfigurations = false;
|
||||||
}
|
}
|
||||||
public static class GameManagerConfig
|
public static class GameManagerConfig
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ public class CustomGameManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
public void Start()
|
public void Start()
|
||||||
{
|
{
|
||||||
RecNetInteractions.postAuthenticationActions.Add(DownlaodGameConfigAssets);
|
RecNetInteractions.postAuthenticationActions.Add(DownloadGameConfigAssets);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnFailed([Optional] HTTPResponse res)
|
public void OnFailed([Optional] HTTPResponse res)
|
||||||
@@ -24,7 +24,7 @@ public class CustomGameManager : MonoBehaviour
|
|||||||
GameConfiguratorPatch.gameConfig = configs;
|
GameConfiguratorPatch.gameConfig = configs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DownlaodGameConfigAssets()
|
public void DownloadGameConfigAssets()
|
||||||
{
|
{
|
||||||
RecNetInteractions.SendRequest<Dictionary<string, GameConfigurationAssetDTO>>(HTTPMethods.Get, RecNet.Service.API, "/api/undead/v1/gameconfigassets", Finished, OnFailed);
|
RecNetInteractions.SendRequest<Dictionary<string, GameConfigurationAssetDTO>>(HTTPMethods.Get, RecNet.Service.API, "/api/undead/v1/gameconfigassets", Finished, OnFailed);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ using Mapster;
|
|||||||
using undead_universal_patch_il2cpp.Core.Config;
|
using undead_universal_patch_il2cpp.Core.Config;
|
||||||
using undead_universal_patch_il2cpp.Core.Content.CustomRecNet.CheatManager;
|
using undead_universal_patch_il2cpp.Core.Content.CustomRecNet.CheatManager;
|
||||||
using undead_universal_patch_il2cpp.Core.Content.CustomRecNet.CustomEmotes;
|
using undead_universal_patch_il2cpp.Core.Content.CustomRecNet.CustomEmotes;
|
||||||
|
using undead_universal_patch_il2cpp.Core.Content.CustomRecNet.CustomGameManager;
|
||||||
using undead_universal_patch_il2cpp.Core.Content.CustomRecNet.CustomPhoton;
|
using undead_universal_patch_il2cpp.Core.Content.CustomRecNet.CustomPhoton;
|
||||||
using undead_universal_patch_il2cpp.Core.Content.UndeadGameManager;
|
using undead_universal_patch_il2cpp.Core.Content.UndeadGameManager;
|
||||||
using undead_universal_patch_il2cpp.Patches.Video;
|
using undead_universal_patch_il2cpp.Patches.Video;
|
||||||
@@ -64,6 +65,7 @@ public class Initialization
|
|||||||
if (ServerPatchesConfig.CustomEmotes.Value) UniversalPatchPlugin.Instance.AddComponent<CustomEmotes>();
|
if (ServerPatchesConfig.CustomEmotes.Value) UniversalPatchPlugin.Instance.AddComponent<CustomEmotes>();
|
||||||
UniversalPatchPlugin.Instance.AddComponent<CustomPhoton>();
|
UniversalPatchPlugin.Instance.AddComponent<CustomPhoton>();
|
||||||
if (ServerPatchesConfig.CustomKnownDlls.Value) UniversalPatchPlugin.Instance.AddComponent<CustomCheatManager>();
|
if (ServerPatchesConfig.CustomKnownDlls.Value) UniversalPatchPlugin.Instance.AddComponent<CustomCheatManager>();
|
||||||
|
if (ServerPatchesConfig.CustomGameConfigurations.Value) UniversalPatchPlugin.Instance.AddComponent<CustomGameManager>();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void FetchConfigurations()
|
private static void FetchConfigurations()
|
||||||
@@ -99,6 +101,8 @@ public class Initialization
|
|||||||
"Set custom text on the ^reccenter theater marquee.");
|
"Set custom text on the ^reccenter theater marquee.");
|
||||||
ServerPatchesConfig.CustomKnownDlls = UniversalPatchPlugin.Instance.Config.Bind("ServerPatches", "CustomKnownDlls", ServerPatchesConfigDefaults.CustomKnownDlls,
|
ServerPatchesConfig.CustomKnownDlls = UniversalPatchPlugin.Instance.Config.Bind("ServerPatches", "CustomKnownDlls", ServerPatchesConfigDefaults.CustomKnownDlls,
|
||||||
"Add items to the list of known DLLs.");
|
"Add items to the list of known DLLs.");
|
||||||
|
ServerPatchesConfig.CustomGameConfigurations = UniversalPatchPlugin.Instance.Config.Bind("ServerPatches", "CustomGameConfigurations", ServerPatchesConfigDefaults.CustomGameConfigurations,
|
||||||
|
"Custom GameAssetConfigurations.");
|
||||||
|
|
||||||
GameManagerConfig.AnyGameFreeSpawn = UniversalPatchPlugin.Instance.Config.Bind("GameManagerConfig", "AnyGameFreeSpawn", GameManagerConfigDefaults.AnyGameFreeSpawn,
|
GameManagerConfig.AnyGameFreeSpawn = UniversalPatchPlugin.Instance.Config.Bind("GameManagerConfig", "AnyGameFreeSpawn", GameManagerConfigDefaults.AnyGameFreeSpawn,
|
||||||
$"Spawn in any valid player spawnpoint in specified games. See README.md");
|
$"Spawn in any valid player spawnpoint in specified games. See README.md");
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace undead_universal_patch_il2cpp.Patches.Internals
|
namespace undead_universal_patch_il2cpp.Patches.Internals
|
||||||
{
|
{
|
||||||
[HarmonyPatch]
|
/*[HarmonyPatch]
|
||||||
public class LockerroomOOBEFlow
|
public class LockerroomOOBEFlow
|
||||||
{
|
{
|
||||||
static PatchTypesResult patchResult = Util.PreparePatchTypes(
|
static PatchTypesResult patchResult = Util.PreparePatchTypes(
|
||||||
@@ -26,5 +26,5 @@ namespace undead_universal_patch_il2cpp.Patches.Internals
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user