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:
46
SVSim.BattleEngine/Shim/External/LooseEnds.cs
vendored
46
SVSim.BattleEngine/Shim/External/LooseEnds.cs
vendored
@@ -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 } }
|
||||
|
||||
Reference in New Issue
Block a user