forked from zombieb/undead-universal-patch-il2cpp
Internals rewritten. PHoton config can now be fetched from the server, and if it fails, fallback to the local configuration.
This commit is contained in:
@@ -35,10 +35,12 @@ namespace undead_universal_patch_il2cpp.Core.Config
|
||||
public static class ServerPatchesConfig
|
||||
{
|
||||
public static ConfigEntry<bool> CustomEmotes;
|
||||
public static ConfigEntry<bool> CustomPhoton;
|
||||
}
|
||||
public static class ServerPatchesConfigDefaults
|
||||
{
|
||||
public static bool CustomEmotes = false;
|
||||
public static bool CustomPhoton = false;
|
||||
}
|
||||
public static class GameManagerConfig
|
||||
{
|
||||
@@ -69,6 +71,7 @@ namespace undead_universal_patch_il2cpp.Core.Config
|
||||
public static ConfigEntry<bool> SelfHosted;
|
||||
public static ConfigEntry<string> ServerAddress;
|
||||
public static ConfigEntry<int> ServerPort;
|
||||
public static ConfigEntry<byte> ConnectionProtocol;
|
||||
}
|
||||
public static class PhotonConfigDefaults
|
||||
{
|
||||
@@ -79,5 +82,6 @@ namespace undead_universal_patch_il2cpp.Core.Config
|
||||
public static bool SelfHosted = false;
|
||||
public static string ServerAddress = "127.0.0.1";
|
||||
public static int ServerPort = 5055;
|
||||
public static byte ConnectionProtocol = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user