32 lines
1.6 KiB
C#
32 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
namespace asap.core { public sealed class UnusedNamespaceMarker {} }
|
|
namespace UnityEngine {
|
|
public class MonoBehaviour {}
|
|
public static class Application { public static string persistentDataPath => RouteTests.Root; }
|
|
public static class Debug { public static void LogError(object o) {} }
|
|
public static class PlayerPrefs {
|
|
public static int Calls;
|
|
public static string GetString(string key,string value="") { Calls++;return value; }
|
|
public static void SetString(string key,string value) { Calls++; }
|
|
public static void Save() { Calls++; }
|
|
}
|
|
}
|
|
public static class GameDebug { public static void LogError(string s,params object[] a) {} }
|
|
public static class ZZTimeHelper { public static DateTime UtcNow()=>DateTime.UtcNow; }
|
|
namespace LitJson { public static class JsonMapper { public static string ToJson(object o)=>Newtonsoft.Json.JsonConvert.SerializeObject(o); } }
|
|
namespace PlayFab.ClientModels {
|
|
public sealed class UserDataRecord { public DateTime LastUpdated; public string Value; }
|
|
public enum UserDataPermission { Public }
|
|
public sealed class UpdateUserDataRequest { public Dictionary<string,string> Data; public UserDataPermission Permission; }
|
|
public sealed class UpdateUserDataResult {}
|
|
}
|
|
namespace PlayFab {
|
|
public sealed class PlayFabError {}
|
|
public static class PlayFabClientAPI {
|
|
public static int Calls;
|
|
public static bool IsClientLoggedIn(){Calls++;return false;}
|
|
public static void UpdateUserData(ClientModels.UpdateUserDataRequest r,Action<ClientModels.UpdateUserDataResult> ok,Action<PlayFabError> error){Calls++;throw new InvalidOperationException("Unexpected PF call");}
|
|
}
|
|
}
|