Off-battle-path static surfaces (CS0103 cluster): - UnityStatics: Gizmos, Physics2D, Caching, GUIUtility, Cursor, ColorUtility, ScreenCapture, RenderSettings, JsonUtility, Social + CursorLockMode enum. - RaycastHit2D implicit-bool operator; ILocalUser in SocialPlatforms. - Steamworks: Callback<T>.Create, AppId_t/CSteamID/HAuthTicket/SteamNetworkingIdentity, MicroTxn/GetAuthSessionTicket response structs, SteamAPI/User/Utils/Client statics. Removed empty dup GetAuthSessionTicketResponse_t from ThirdParty.cs. - Facebook.Unity: FB + ILoginResult + FacebookDelegate<T>; com.adjust.sdk.Adjust; global TimeNativePlugin/Packsize native-plugin stubs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
127 lines
5.1 KiB
C#
127 lines
5.1 KiB
C#
// AUTHORED SHIM (not copied). Final loose ends for the M1 compile: (1) namespace
|
|
// "anchors" -- empty `using` targets in tangentially-copied files reference these
|
|
// namespaces, which must merely exist; a single internal anchor type declares them.
|
|
// (2) a few concrete tangential types referenced directly. (3) minimal third-party
|
|
// serialization/SDK surface. None is on the battle-resolution path.
|
|
|
|
namespace Wizard.AutoTest { internal class _ShimAnchor { } }
|
|
namespace Wizard.Title { internal class _ShimAnchor { } }
|
|
namespace Wizard.ErrorDialog { internal class _ShimAnchor { } }
|
|
namespace Wizard.Bingo { internal class _ShimAnchor { } }
|
|
namespace Wizard.Scripts.Network.Data.TaskData.BuildDeckPurchase { internal class _ShimAnchor { } }
|
|
namespace Wizard.Scripts.Network.Data.TaskData.ItemPurchase { internal class _ShimAnchor { } }
|
|
namespace Wizard.Scripts.Network.Data.TaskData.SkinPurchase { internal class _ShimAnchor { } }
|
|
namespace Wizard.Scripts.Network.Data.TaskData.SpotCardExchange { internal class _ShimAnchor { } }
|
|
|
|
// These are NAMESPACES (used as `using` targets in copied files), not types.
|
|
namespace Wizard.DeckSelect.FirstDisplayPageIndexGetter { internal class _ShimAnchor { } }
|
|
namespace Wizary.StorySelectionWorld { internal class _ShimAnchor { } }
|
|
namespace Wizard.Scripts.Network.Data.TableData.Arena.TwoPick { internal class _ShimAnchor { } }
|
|
|
|
// IManager: a Cute manager interface implemented by NetworkManager/ResourcesManager.
|
|
namespace Cute { public interface IManager { } }
|
|
|
|
// ---- third-party serialization / SDK (minimal surface) ----
|
|
namespace MessagePack
|
|
{
|
|
public static class MessagePackSerializer
|
|
{
|
|
public static byte[] Serialize<T>(T obj) => new byte[0];
|
|
public static T Deserialize<T>(byte[] bytes) => default;
|
|
public static string ToJson(byte[] bytes) => "";
|
|
public static byte[] FromJson(string json) => new byte[0];
|
|
}
|
|
}
|
|
|
|
namespace MiniJSON
|
|
{
|
|
public static class Json
|
|
{
|
|
public static object Deserialize(string json) => null;
|
|
public static string Serialize(object obj) => "";
|
|
}
|
|
}
|
|
|
|
namespace Steamworks
|
|
{
|
|
// Steam callback wrapper. Engine constructs via Callback<T>.Create(handler).
|
|
public sealed class Callback<T>
|
|
{
|
|
public delegate void DispatchDelegate(T param);
|
|
public static Callback<T> Create(DispatchDelegate func) => new Callback<T>();
|
|
}
|
|
public enum EResult { k_EResultOK = 1 }
|
|
public struct AppId_t
|
|
{
|
|
public uint m_AppId;
|
|
public AppId_t(uint v) { m_AppId = v; }
|
|
public static explicit operator AppId_t(uint v) => new AppId_t(v);
|
|
public override string ToString() => m_AppId.ToString();
|
|
}
|
|
public struct CSteamID { public ulong m_SteamID; }
|
|
public struct HAuthTicket { }
|
|
public struct SteamNetworkingIdentity { }
|
|
// Microtransaction auth response struct (callback payload).
|
|
public struct MicroTxnAuthorizationResponse_t
|
|
{
|
|
public AppId_t m_unAppID;
|
|
public ulong m_ulOrderID;
|
|
public byte m_bAuthorized;
|
|
}
|
|
public struct GetAuthSessionTicketResponse_t
|
|
{
|
|
public HAuthTicket m_hAuthTicket;
|
|
public EResult m_eResult;
|
|
}
|
|
// Steam warning-message hook delegate.
|
|
public delegate void SteamAPIWarningMessageHook_t(int severity, System.Text.StringBuilder debugText);
|
|
|
|
public static class SteamAPI
|
|
{
|
|
public static bool Init() => false;
|
|
public static bool RestartAppIfNecessary(AppId_t appId) => false;
|
|
public static void RunCallbacks() { }
|
|
public static void Shutdown() { }
|
|
}
|
|
public static class SteamUser
|
|
{
|
|
public static HAuthTicket GetAuthSessionTicket(byte[] pTicket, int cbMaxTicket, out uint pcbTicket, ref SteamNetworkingIdentity identity) { pcbTicket = 0; return default; }
|
|
public static CSteamID GetSteamID() => default;
|
|
}
|
|
public static class SteamUtils { public static AppId_t GetAppID() => default; }
|
|
public static class SteamClient { public static void SetWarningMessageHook(SteamAPIWarningMessageHook_t hook) { } }
|
|
}
|
|
|
|
// AOT P/Invoke callback attribute (IL2CPP) + StandaloneFileBrowser anchor.
|
|
namespace AOT
|
|
{
|
|
public sealed class MonoPInvokeCallbackAttribute : System.Attribute
|
|
{
|
|
public MonoPInvokeCallbackAttribute(System.Type type) { }
|
|
}
|
|
}
|
|
namespace SFB { internal class _ShimAnchor { } }
|
|
|
|
// ---- third-party SDK namespace anchors (referenced via `using`) ----
|
|
namespace Facebook { internal class _ShimAnchor { } }
|
|
namespace Facebook.Unity
|
|
{
|
|
public interface ILoginResult
|
|
{
|
|
string Error { get; }
|
|
bool Cancelled { get; }
|
|
string RawResult { get; }
|
|
}
|
|
public delegate void FacebookDelegate<T>(T result);
|
|
public static class FB
|
|
{
|
|
public static bool IsLoggedIn => false;
|
|
public static void LogInWithReadPermissions(System.Collections.Generic.List<string> permissions, FacebookDelegate<ILoginResult> callback) { }
|
|
public static void LogOut() { }
|
|
}
|
|
}
|
|
namespace RedShellSDK { internal class _ShimAnchor { } }
|
|
namespace ZXing { internal class _ShimAnchor { } }
|
|
namespace ZXing.QrCode { internal class _ShimAnchor { } }
|
|
namespace ZXing.QrCode.Internal { internal class _ShimAnchor { } }
|