port(m1): wave 6e — Unity ctors + Unity/ZXing/SFB type stubs (444->362)

CS1729 Unity ctors: Plane(3pt), Texture2D(w,h,fmt,mip), Keyframe(4),
  AnimationCurve(params Keyframe[]), WebCamTexture(name,w,h,fps), UnityWebRequest(url,method).
CS0246 Unity: AnimationState, GUIContent, TextEditor, WebCamDevice, Display,
  WaitForSecondsRealtime, AnimationBlendMode + WebCamTexture.devices.
CS0246 SDK: SFB ExtensionFilter/StandaloneFileBrowser; ZXing BarcodeFormat/Result/
  BarcodeWriter/BarcodeReader/QrCodeEncodingOptions/ErrorCorrectionLevel.
NullBattleCardView parameterless ctor (CS7036).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-06 00:06:03 -04:00
parent 629ae6bf98
commit 8c9fe7a1b9
4 changed files with 62 additions and 10 deletions

View File

@@ -100,7 +100,20 @@ namespace AOT
public MonoPInvokeCallbackAttribute(System.Type type) { }
}
}
namespace SFB { internal class _ShimAnchor { } }
namespace SFB
{
public struct ExtensionFilter
{
public string Name;
public string[] Extensions;
public ExtensionFilter(string name, params string[] extensions) { Name = name; Extensions = extensions; }
}
public static class StandaloneFileBrowser
{
public static string[] OpenFilePanel(string title, string directory, ExtensionFilter[] extensions, bool multiselect) => System.Array.Empty<string>();
public static string[] OpenFilePanel(string title, string directory, string extension, bool multiselect) => System.Array.Empty<string>();
}
}
// ---- third-party SDK namespace anchors (referenced via `using`) ----
namespace Facebook { internal class _ShimAnchor { } }
@@ -121,6 +134,31 @@ namespace Facebook.Unity
}
}
namespace RedShellSDK { internal class _ShimAnchor { } }
namespace ZXing { internal class _ShimAnchor { } }
namespace ZXing.QrCode { internal class _ShimAnchor { } }
namespace ZXing.QrCode.Internal { internal class _ShimAnchor { } }
namespace ZXing
{
public enum BarcodeFormat { QR_CODE, AZTEC, CODE_128, EAN_13 }
public sealed class Result { public string Text => ""; }
public class BarcodeWriter
{
public BarcodeFormat Format { get; set; }
public ZXing.QrCode.QrCodeEncodingOptions Options { get; set; }
public UnityEngine.Color32[] Write(string contents) => System.Array.Empty<UnityEngine.Color32>();
}
public class BarcodeReader
{
public bool AutoRotate { get; set; }
public bool TryHarder { get; set; }
public Result Decode(UnityEngine.Color32[] rawColor, int width, int height) => null;
}
}
namespace ZXing.QrCode
{
public class QrCodeEncodingOptions
{
public ZXing.QrCode.Internal.ErrorCorrectionLevel ErrorCorrection { get; set; }
public int Width { get; set; }
public int Height { get; set; }
public int Margin { get; set; }
}
}
namespace ZXing.QrCode.Internal { public enum ErrorCorrectionLevel { L, M, Q, H } }