mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
moving to new domain
This commit is contained in:
1 parent
a4ef5ba840
commit
378323ae6c
7 files changed
+11
-11
No files matched your search
@@ -141,7 +141,7 @@ public static class Achievements
|
||||
|
||||
private static readonly string SaveFilePath = $"{Main.DataPath}/EHR_DATA/Achievements.json";
|
||||
|
||||
private const string ApiBaseUrl = "https://gurge44.pythonanywhere.com/achievements";
|
||||
private const string ApiBaseUrl = "https://app.gurge44.eu/achievements";
|
||||
private const string ApiSaveEndpoint = $"{ApiBaseUrl}/save";
|
||||
private const string ApiLoadEndpoint = $"{ApiBaseUrl}/load";
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ public static class DevManager
|
||||
yield break;
|
||||
}
|
||||
|
||||
UnityWebRequest request = UnityWebRequest.Get("https://gurge44.pythonanywhere.com/get_all_tags");
|
||||
UnityWebRequest request = UnityWebRequest.Get("https://app.gurge44.eu/get_all_tags");
|
||||
yield return request.SendWebRequest();
|
||||
|
||||
if (request.result != UnityWebRequest.Result.Success)
|
||||
|
||||
@@ -48,7 +48,7 @@ public static class LobbySharingAPI
|
||||
var jsonData = $"{{\"roomCode\":\"{roomCode}\",\"serverName\":\"{serverName}\",\"language\":\"{language}\",\"version\":\"{version}\",\"gameId\":\"{gameId}\",\"hostName\":\"{hostName}\",\"map\":\"{map}\",\"gameMode\":\"{gameMode}\",\"hostHashedPuid\":\"{hostHashedPuid}\"}}";
|
||||
byte[] jsonToSend = new UTF8Encoding().GetBytes(jsonData);
|
||||
|
||||
var request = new UnityWebRequest("https://gurge44.pythonanywhere.com/lobby_created", "POST")
|
||||
var request = new UnityWebRequest("https://app.gurge44.eu/lobby_created", "POST")
|
||||
{
|
||||
uploadHandler = new UploadHandlerRaw(jsonToSend),
|
||||
downloadHandler = new DownloadHandlerBuffer()
|
||||
@@ -119,7 +119,7 @@ public static class LobbySharingAPI
|
||||
var jsonData = $"{{\"roomCode\":\"{roomCode}\",\"token\":\"{Token}\",\"newStatus\":\"{newStatus}\",\"players\":\"{players}\",\"map\":\"{map}\",\"gameMode\":\"{gameMode}\"}}";
|
||||
byte[] jsonToSend = new UTF8Encoding().GetBytes(jsonData);
|
||||
|
||||
var request = new UnityWebRequest("https://gurge44.pythonanywhere.com/update_status", "POST")
|
||||
var request = new UnityWebRequest("https://app.gurge44.eu/update_status", "POST")
|
||||
{
|
||||
uploadHandler = new UploadHandlerRaw(jsonToSend),
|
||||
downloadHandler = new DownloadHandlerBuffer()
|
||||
|
||||
@@ -189,7 +189,7 @@ public static class OnlinePresetsManager
|
||||
|
||||
byte[] bodyRaw = Encoding.UTF8.GetBytes(json);
|
||||
|
||||
UnityWebRequest request = new UnityWebRequest("https://gurge44.pythonanywhere.com/presets/draft", "POST")
|
||||
UnityWebRequest request = new UnityWebRequest("https://app.gurge44.eu/presets/draft", "POST")
|
||||
{
|
||||
uploadHandler = new UploadHandlerRaw(bodyRaw),
|
||||
downloadHandler = new DownloadHandlerBuffer()
|
||||
@@ -234,7 +234,7 @@ public static class OnlinePresetsManager
|
||||
|
||||
static void OpenPublishPage(string draftId)
|
||||
{
|
||||
string url = $"https://gurge44.pythonanywhere.com/publish?preset={draftId}";
|
||||
string url = $"https://app.gurge44.eu/publish?preset={draftId}";
|
||||
|
||||
try
|
||||
{
|
||||
@@ -248,7 +248,7 @@ public static class OnlinePresetsManager
|
||||
|
||||
private static IEnumerator DownloadPreset(string presetId, Action<Dictionary<int,int>> onSuccess)
|
||||
{
|
||||
UnityWebRequest request = UnityWebRequest.Get($"https://gurge44.pythonanywhere.com/presets/{presetId}");
|
||||
UnityWebRequest request = UnityWebRequest.Get($"https://app.gurge44.eu/presets/{presetId}");
|
||||
|
||||
request.timeout = 5;
|
||||
|
||||
@@ -289,7 +289,7 @@ public static class OnlinePresetsManager
|
||||
|
||||
public static IEnumerator FetchPresetList(Action<List<PresetMeta>> onSuccess)
|
||||
{
|
||||
UnityWebRequest request = UnityWebRequest.Get("https://gurge44.pythonanywhere.com/presets/list");
|
||||
UnityWebRequest request = UnityWebRequest.Get("https://app.gurge44.eu/presets/list");
|
||||
|
||||
yield return request.SendWebRequest();
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ public class ModNews
|
||||
|
||||
public static class ModNewsFetcher
|
||||
{
|
||||
private const string NewsUrl = "https://gurge44.pythonanywhere.com/modnews";
|
||||
private const string NewsUrl = "https://app.gurge44.eu/modnews";
|
||||
|
||||
public static IEnumerator FetchNews()
|
||||
{
|
||||
|
||||
@@ -688,7 +688,7 @@ internal static class ChatCommands
|
||||
var json = $"{{\"uuid\":\"{uuid}\",\"friend_code\":\"{friendCode}\",\"puid\":\"{puid}\",\"game_id\":\"{gameId}\"}}";
|
||||
byte[] bodyRaw = Encoding.UTF8.GetBytes(json);
|
||||
|
||||
var uwr = new UnityWebRequest("https://gurge44.pythonanywhere.com/api/verify_ingame", "POST")
|
||||
var uwr = new UnityWebRequest("https://app.gurge44.eu/api/verify_ingame", "POST")
|
||||
{
|
||||
uploadHandler = new UploadHandlerRaw(bodyRaw),
|
||||
downloadHandler = new DownloadHandlerBuffer()
|
||||
|
||||
@@ -163,7 +163,7 @@ public static class MainMenuManagerPatch
|
||||
new(1.3f, -1.3f, 1f),
|
||||
new(251, 81, 44, byte.MaxValue),
|
||||
new(211, 77, 48, byte.MaxValue),
|
||||
() => Application.OpenURL("https://gurge44.pythonanywhere.com"),
|
||||
() => Application.OpenURL("https://app.gurge44.eu"),
|
||||
Translator.GetString("Website")); //"Website"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user