port(m1): wave 6c — Unity + Steam/FB/Adjust static-class shims (696->572)
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>
This commit is contained in:
@@ -46,7 +46,7 @@ namespace UnityEngine
|
||||
public struct Plane { public Plane(Vector3 normal, Vector3 point) { } public bool Raycast(Ray r, out float enter) { enter = 0; return false; } }
|
||||
public struct Ray { public Ray(Vector3 origin, Vector3 dir) { this.origin = origin; this.direction = dir; } public Vector3 origin; public Vector3 direction; public Vector3 GetPoint(float d) => origin; }
|
||||
public struct RaycastHit { public Vector3 point; public Vector3 normal; public float distance; public Collider collider; public Transform transform; public GameObject gameObject; }
|
||||
public struct RaycastHit2D { public Vector3 point; public Vector3 normal; public float distance; public Collider2D collider; public Transform transform; }
|
||||
public struct RaycastHit2D { public Vector3 point; public Vector3 normal; public float distance; public Collider2D collider; public Transform transform; public static implicit operator bool(RaycastHit2D hit) => hit.collider != null; }
|
||||
public struct LayerMask { public int value; public static int NameToLayer(string n) => 0; public static implicit operator int(LayerMask m) => m.value; }
|
||||
|
||||
// ---- core object model ----
|
||||
|
||||
@@ -65,4 +65,5 @@ namespace UnityEngine.SocialPlatforms
|
||||
// Cute.IAchievementCallback; adding one here makes the unqualified name ambiguous.
|
||||
public interface IAchievement { }
|
||||
public interface IAchievementDescription { }
|
||||
public interface ILocalUser { void Authenticate(System.Action<bool> callback); }
|
||||
}
|
||||
|
||||
@@ -6,6 +6,54 @@ using System;
|
||||
|
||||
namespace UnityEngine
|
||||
{
|
||||
public enum CursorLockMode { None, Locked, Confined }
|
||||
|
||||
public static class Gizmos
|
||||
{
|
||||
public static Color color { get; set; }
|
||||
public static void DrawLine(Vector3 from, Vector3 to) { }
|
||||
}
|
||||
public static class Physics2D
|
||||
{
|
||||
public static RaycastHit2D GetRayIntersection(Ray ray, float distance = Mathf.Infinity) => default;
|
||||
public static RaycastHit2D GetRayIntersection(Ray ray, float distance, int layerMask) => default;
|
||||
public static Collider2D OverlapPoint(Vector2 point, int layerMask) => null;
|
||||
public static Collider2D[] OverlapPointAll(Vector2 point, int layerMask) => Array.Empty<Collider2D>();
|
||||
}
|
||||
public static class Caching
|
||||
{
|
||||
public static bool ready => true;
|
||||
public static bool ClearCache() => true;
|
||||
}
|
||||
public static class GUIUtility { public static string systemCopyBuffer { get; set; } }
|
||||
public static class Cursor
|
||||
{
|
||||
public static CursorLockMode lockState { get; set; }
|
||||
public static bool visible { get; set; }
|
||||
}
|
||||
public static class ColorUtility
|
||||
{
|
||||
public static bool TryParseHtmlString(string htmlString, out Color color) { color = default; return false; }
|
||||
}
|
||||
public static class ScreenCapture { public static void CaptureScreenshot(string filename) { } }
|
||||
public static class RenderSettings { public static bool fog { get; set; } }
|
||||
public static class JsonUtility
|
||||
{
|
||||
public static T FromJson<T>(string json) => default!;
|
||||
public static object FromJson(string json, Type type) => null;
|
||||
public static string ToJson(object obj) => "";
|
||||
public static string ToJson(object obj, bool prettyPrint) => "";
|
||||
public static void FromJsonOverwrite(string json, object objectToOverwrite) { }
|
||||
}
|
||||
public static class Social
|
||||
{
|
||||
public static UnityEngine.SocialPlatforms.ILocalUser localUser => null;
|
||||
public static void ReportProgress(string achievementID, double progress, Action<bool> callback) { }
|
||||
public static void LoadAchievements(Action<UnityEngine.SocialPlatforms.IAchievement[]> callback) { }
|
||||
public static void LoadAchievementDescriptions(Action<UnityEngine.SocialPlatforms.IAchievementDescription[]> callback) { }
|
||||
public static void ShowAchievementsUI() { }
|
||||
}
|
||||
|
||||
public static class PlayerPrefs
|
||||
{
|
||||
public static void DeleteAll() { }
|
||||
|
||||
Reference in New Issue
Block a user