SHA256
Make Every Class Internal
This commit is contained in:
38 files changed
+50
-51
No files matched your search
@@ -4,7 +4,7 @@ using UnityEngine;
|
||||
namespace ADOFAIRenderer.Core
|
||||
{
|
||||
[DefaultExecutionOrder(int.MinValue)]
|
||||
public class FirstUpdateHook : MonoBehaviour
|
||||
internal class FirstUpdateHook : MonoBehaviour
|
||||
{
|
||||
private bool _checkedFFmpeg;
|
||||
private bool _checkedNvidiaDriver;
|
||||
|
||||
@@ -6,7 +6,7 @@ using UnityEngine;
|
||||
namespace ADOFAIRenderer.Core
|
||||
{
|
||||
[DefaultExecutionOrder(int.MaxValue)]
|
||||
public class PostRenderHook : MonoBehaviour
|
||||
internal class PostRenderHook : MonoBehaviour
|
||||
{
|
||||
private FieldInfo? _camQuadMeshField;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ using ThreadPriority = System.Threading.ThreadPriority;
|
||||
|
||||
namespace ADOFAIRenderer.Core
|
||||
{
|
||||
public class RenderManager : MonoBehaviour
|
||||
internal class RenderManager : MonoBehaviour
|
||||
{
|
||||
// Singleton Accessors
|
||||
public static RenderManager Instance { get; private set; } = null!;
|
||||
|
||||
+3
-3
@@ -4,7 +4,7 @@ namespace ADOFAIRenderer.Data
|
||||
/// Base class for double input validation limits.
|
||||
/// Multiple limits can be composed on a single input field — all are checked in order.
|
||||
/// </summary>
|
||||
public abstract class DoubleLimit
|
||||
internal abstract class DoubleLimit
|
||||
{
|
||||
/// <summary>
|
||||
/// Validates the given double value against this limit.
|
||||
@@ -21,7 +21,7 @@ namespace ADOFAIRenderer.Data
|
||||
/// <summary>
|
||||
/// Requires the double value to be strictly positive (> 0).
|
||||
/// </summary>
|
||||
public class PositiveOnlyDoubleLimit : DoubleLimit
|
||||
internal class PositiveOnlyDoubleLimit : DoubleLimit
|
||||
{
|
||||
public override bool Validate(double value, out string errorMessage)
|
||||
{
|
||||
@@ -40,7 +40,7 @@ namespace ADOFAIRenderer.Data
|
||||
/// Requires the double value to be within an inclusive [Min, Max] range.
|
||||
/// Either bound can be null to represent an unbounded side.
|
||||
/// </summary>
|
||||
public class RangeDoubleLimit : DoubleLimit
|
||||
internal class RangeDoubleLimit : DoubleLimit
|
||||
{
|
||||
public double? Min { get; }
|
||||
public double? Max { get; }
|
||||
|
||||
@@ -5,7 +5,7 @@ using UnityEngine.UIElements;
|
||||
|
||||
namespace ADOFAIRenderer.Data.Input
|
||||
{
|
||||
public class DoubleInputValidator
|
||||
internal class DoubleInputValidator
|
||||
{
|
||||
private struct FieldEntry
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace ADOFAIRenderer.Data.Input
|
||||
/// Populates choices from enum names and provides typed access to the selected value.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The enum type to bind.</typeparam>
|
||||
public class EnumDropdownBinder<T> where T : struct, Enum
|
||||
internal class EnumDropdownBinder<T> where T : struct, Enum
|
||||
{
|
||||
private readonly DropdownField? _dropdown;
|
||||
private readonly List<T> _values;
|
||||
|
||||
@@ -5,7 +5,7 @@ using UnityEngine.UIElements;
|
||||
|
||||
namespace ADOFAIRenderer.Data.Input
|
||||
{
|
||||
public class IntegerInputValidator
|
||||
internal class IntegerInputValidator
|
||||
{
|
||||
private struct FieldEntry
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace ADOFAIRenderer.Data
|
||||
/// Base class for integer input validation limits.
|
||||
/// Multiple limits can be composed on a single input field — all are checked in order.
|
||||
/// </summary>
|
||||
public abstract class IntegerLimit
|
||||
internal abstract class IntegerLimit
|
||||
{
|
||||
/// <summary>
|
||||
/// Validates the given integer value against this limit.
|
||||
@@ -21,7 +21,7 @@ namespace ADOFAIRenderer.Data
|
||||
/// <summary>
|
||||
/// Requires the integer value to be strictly positive (> 0).
|
||||
/// </summary>
|
||||
public class PositiveOnlyIntegerLimit : IntegerLimit
|
||||
internal class PositiveOnlyIntegerLimit : IntegerLimit
|
||||
{
|
||||
public override bool Validate(int value, out string errorMessage)
|
||||
{
|
||||
@@ -40,7 +40,7 @@ namespace ADOFAIRenderer.Data
|
||||
/// Requires the integer value to be within an inclusive [Min, Max] range.
|
||||
/// Either bound can be null to represent an unbounded side.
|
||||
/// </summary>
|
||||
public class RangeIntegerLimit : IntegerLimit
|
||||
internal class RangeIntegerLimit : IntegerLimit
|
||||
{
|
||||
public int? Min { get; }
|
||||
public int? Max { get; }
|
||||
|
||||
@@ -9,13 +9,13 @@ using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace ADOFAIRenderer.Data
|
||||
{
|
||||
public class RenderPreset
|
||||
internal class RenderPreset
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public RenderConfig Config { get; set; } = null!;
|
||||
}
|
||||
|
||||
public static class PresetManager
|
||||
internal static class PresetManager
|
||||
{
|
||||
private static string GetPresetsDirectory()
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using ADOFAIRenderer.Util.FFmpeg;
|
||||
|
||||
namespace ADOFAIRenderer.Data
|
||||
{
|
||||
public class RenderConfig
|
||||
internal class RenderConfig
|
||||
{
|
||||
public double RenderFPS { get; set; }
|
||||
public double VideoFPS { get; set; }
|
||||
@@ -18,14 +18,14 @@ namespace ADOFAIRenderer.Data
|
||||
public bool ShowJudgementText { get; set; }
|
||||
}
|
||||
|
||||
public class AdvancedConfig
|
||||
internal class AdvancedConfig
|
||||
{
|
||||
public int? RandomSeed { get; set; } = null;
|
||||
public bool ProcessAudio { get; set; } = true;
|
||||
public bool NonTile { get; set; } = false;
|
||||
}
|
||||
|
||||
public class VideoEncodingConfig
|
||||
internal class VideoEncodingConfig
|
||||
{
|
||||
public Codec Codec { get; set; } = Codec.H264;
|
||||
public RateControlMode RateControlMode { get; set; } = RateControlMode.CBR;
|
||||
@@ -38,7 +38,7 @@ namespace ADOFAIRenderer.Data
|
||||
public bool ForceSoftwareEncoder { get; set; } = false;
|
||||
}
|
||||
|
||||
public class AudioEncodingConfig
|
||||
internal class AudioEncodingConfig
|
||||
{
|
||||
private int _audioSampleRate = 44100;
|
||||
private int _audioChannels = 2;
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ using UnityEngine.EventSystems;
|
||||
|
||||
namespace ADOFAIRenderer
|
||||
{
|
||||
public class RenderMod : MelonMod
|
||||
internal class RenderMod : MelonMod
|
||||
{
|
||||
public static AssetBundle FontBundle = null!;
|
||||
// ReSharper disable once MemberCanBePrivate.Global
|
||||
|
||||
@@ -9,7 +9,7 @@ using Image = UnityEngine.UI.Image;
|
||||
|
||||
namespace ADOFAIRenderer.UI
|
||||
{
|
||||
public class DialogButton
|
||||
internal class DialogButton
|
||||
{
|
||||
public string Text;
|
||||
public Action OnClick;
|
||||
@@ -23,7 +23,7 @@ namespace ADOFAIRenderer.UI
|
||||
}
|
||||
}
|
||||
|
||||
public class CommonWarningDialogUI : MonoBehaviour
|
||||
internal class CommonWarningDialogUI : MonoBehaviour
|
||||
{
|
||||
public static CommonWarningDialogUI? Instance { get; private set; }
|
||||
private readonly List<VisualElement> _disabledElements = new();
|
||||
|
||||
@@ -8,7 +8,7 @@ using UnityEngine.UI;
|
||||
|
||||
namespace ADOFAIRenderer.UI
|
||||
{
|
||||
public class DebugMonitorUI : MonoBehaviour
|
||||
internal class DebugMonitorUI : MonoBehaviour
|
||||
{
|
||||
// --- Progress Bar UI Configuration Constants ---
|
||||
private const float BarWidth = 800f;
|
||||
|
||||
@@ -6,7 +6,7 @@ using UnityEngine.UI;
|
||||
|
||||
namespace ADOFAIRenderer.UI
|
||||
{
|
||||
public class EscapeHandlerUI : MonoBehaviour
|
||||
internal class EscapeHandlerUI : MonoBehaviour
|
||||
{
|
||||
private GameObject _containerObj = null!;
|
||||
private TextMeshProUGUI _textComponent = null!;
|
||||
|
||||
@@ -12,7 +12,7 @@ using MelonLoader.Utils;
|
||||
|
||||
namespace ADOFAIRenderer.UI
|
||||
{
|
||||
public class FFmpegDownloadUI : MonoBehaviour
|
||||
internal class FFmpegDownloadUI : MonoBehaviour
|
||||
{
|
||||
private GameObject _buttonContainerObj = null!;
|
||||
private GameObject _progressBarObj = null!;
|
||||
|
||||
@@ -9,7 +9,7 @@ using UnityEngine.UIElements;
|
||||
|
||||
namespace ADOFAIRenderer.UI
|
||||
{
|
||||
public class RenderConfigUIManager : MonoBehaviour
|
||||
internal class RenderConfigUIManager : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private UIDocument uiDocument = null!;
|
||||
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
|
||||
namespace ADOFAIRenderer.Util.Audio
|
||||
{
|
||||
public static class AudioResampler
|
||||
internal static class AudioResampler
|
||||
{
|
||||
public static float[] Resample(float[] inputSamples, int inputChannels, int inputFrequency, int targetChannels, int targetFrequency)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using UnityEngine;
|
||||
|
||||
namespace ADOFAIRenderer.Util.Audio
|
||||
{
|
||||
public static class AudioSpectrumGenerator
|
||||
internal static class AudioSpectrumGenerator
|
||||
{
|
||||
public static float[]? AudioClipData { get; private set; }
|
||||
public static int Channels { get; private set; }
|
||||
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
|
||||
namespace ADOFAIRenderer.Util.Audio
|
||||
{
|
||||
public class AudioSyncCalculator
|
||||
internal class AudioSyncCalculator
|
||||
{
|
||||
private readonly long _sampleRate;
|
||||
private readonly (long Numerator, long Denominator) _fpsRational;
|
||||
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
|
||||
namespace ADOFAIRenderer.Util.Audio.Filter
|
||||
{
|
||||
public class Gain : IAudioFilter
|
||||
internal class Gain : IAudioFilter
|
||||
{
|
||||
public float Level = 0f;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
|
||||
|
||||
namespace ADOFAIRenderer.Util.Audio.Filter
|
||||
{
|
||||
public class HardClip : IAudioFilter
|
||||
internal class HardClip : IAudioFilter
|
||||
{
|
||||
// ReSharper disable once MemberCanBePrivate.Global
|
||||
// ReSharper disable once FieldCanBeMadeReadOnly.Global
|
||||
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
|
||||
namespace ADOFAIRenderer.Util.Audio.Filter
|
||||
{
|
||||
public interface IAudioFilter
|
||||
internal interface IAudioFilter
|
||||
{
|
||||
void Initialize(int sampleRate, int channels);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
|
||||
namespace ADOFAIRenderer.Util.Audio.Filter
|
||||
{
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public class RMSCompressor : IAudioFilter
|
||||
internal class RMSCompressor : IAudioFilter
|
||||
{
|
||||
private float _thresholdDb = -20f;
|
||||
private float _ratio = 4f;
|
||||
|
||||
@@ -7,7 +7,7 @@ using UnityEngine;
|
||||
|
||||
namespace ADOFAIRenderer.Util.Audio
|
||||
{
|
||||
public class AudioClipCache
|
||||
internal class AudioClipCache
|
||||
{
|
||||
private readonly Dictionary<string, CachedClipData> _cache = new();
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace ADOFAIRenderer.Util.Audio
|
||||
}
|
||||
}
|
||||
|
||||
public class OfflineAudioMixer
|
||||
internal class OfflineAudioMixer
|
||||
{
|
||||
public class SoundEvent
|
||||
{
|
||||
|
||||
@@ -6,9 +6,9 @@ using UnityEngine;
|
||||
|
||||
namespace ADOFAIRenderer.Util
|
||||
{
|
||||
public static class BundleLoader
|
||||
internal static class BundleLoader
|
||||
{
|
||||
private static string BundlePlatform;
|
||||
private static readonly string BundlePlatform;
|
||||
private static readonly Assembly? ExecutingAssembly;
|
||||
|
||||
static BundleLoader()
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace ADOFAIRenderer.Util.FFmpeg
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum Codec
|
||||
internal enum Codec
|
||||
{
|
||||
H264, H265, VP9, AV1, VVC
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace ADOFAIRenderer.Util.FFmpeg
|
||||
/// FFmpeg의 C 네이티브 API를 사용하여 비디오 파일을 스트리밍 방식으로 디코딩하는 클래스입니다.
|
||||
/// 플레이어 형태가 아니며, 필요할 때 프레임을 순차적으로 읽거나 앞으로 탐색(Seek/Skip)할 수 있습니다.
|
||||
/// </summary>
|
||||
public sealed unsafe class FFmpegNativeDecoder : IDisposable
|
||||
internal sealed unsafe class FFmpegNativeDecoder : IDisposable
|
||||
{
|
||||
private AVFormatContext* _pFormatContext = null;
|
||||
private AVCodecContext* _pCodecContext = null;
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace ADOFAIRenderer.Util.FFmpeg
|
||||
/// • 하드웨어 가속 개요: https://ffmpeg.org/doxygen/trunk/group__lavu__hwcontext.html
|
||||
/// • HW 가속 위키: https://trac.ffmpeg.org/wiki/HWAccelIntro
|
||||
/// </summary>
|
||||
public sealed unsafe class FFmpegNativeEncoder : IDisposable
|
||||
internal sealed unsafe class FFmpegNativeEncoder : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// 인코더에 전달할 설정값을 담는 구조체입니다.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace ADOFAIRenderer.Util.FFmpeg
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum RateControlMode
|
||||
internal enum RateControlMode
|
||||
{
|
||||
CBR,
|
||||
VBR,
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace ADOFAIRenderer.Util.FFmpeg
|
||||
}
|
||||
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public sealed class VideoEncoder : IEquatable<VideoEncoder>
|
||||
internal sealed class VideoEncoder : IEquatable<VideoEncoder>
|
||||
{
|
||||
// ReSharper disable MemberCanBePrivate.Global
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ using FFmpeg.AutoGen;
|
||||
namespace ADOFAIRenderer.Util
|
||||
{
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public class FFmpegVideoBGPlayer : MonoBehaviour
|
||||
internal class FFmpegVideoBGPlayer : MonoBehaviour
|
||||
{
|
||||
private static readonly int YTex = Shader.PropertyToID("_YTex");
|
||||
private static readonly int UVTex = Shader.PropertyToID("_UVTex");
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ using UnityEngine.Rendering;
|
||||
|
||||
namespace ADOFAIRenderer.Util
|
||||
{
|
||||
public class FrameReader : IDisposable
|
||||
internal class FrameReader : IDisposable
|
||||
{
|
||||
private static readonly int Height = Shader.PropertyToID("Height");
|
||||
private static readonly int Width = Shader.PropertyToID("Width");
|
||||
|
||||
+2
-2
@@ -9,12 +9,12 @@ using UnityEngine;
|
||||
namespace ADOFAIRenderer.Util
|
||||
{
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public enum GPUVendor
|
||||
internal enum GPUVendor
|
||||
{
|
||||
Unknown, NVIDIA, AMD, Intel, Apple
|
||||
}
|
||||
|
||||
public static class GPUUtil
|
||||
internal static class GPUUtil
|
||||
{
|
||||
private const string NvidiaPattern =
|
||||
@"^NVIDIA GeForce [RG]TX [0-9]+(?> SUPER| Ti(?> SUPER)?)?(?> [0-9]+GB)?(?> Laptop GPU)?(?>/PCIe/SSE2)?$";
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace ADOFAIRenderer.Util
|
||||
/// - <b>Linux</b>: Uses <c>notify-send</c> (libnotify) with <c>xdg-open</c> for folder actions.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static class OSNotification
|
||||
internal static class OSNotification
|
||||
{
|
||||
/// <summary>
|
||||
/// Sends a native desktop notification.
|
||||
|
||||
@@ -4,7 +4,7 @@ using UnityEngine;
|
||||
|
||||
namespace ADOFAIRenderer.Util
|
||||
{
|
||||
public static class ParticleUtil
|
||||
internal static class ParticleUtil
|
||||
{
|
||||
private static readonly ConditionalWeakTable<ParticleSystem, ParticleSystemRenderer> Cache = new();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace ADOFAIRenderer.Util
|
||||
{
|
||||
public class RationalUtil
|
||||
internal static class RationalUtil
|
||||
{
|
||||
public static (int Numerator, int Denominator) Double2MaxPrecisionInt(double value,
|
||||
int maxDenominator = 100000000)
|
||||
@@ -11,7 +11,6 @@ namespace ADOFAIRenderer.Util
|
||||
if (value == 0.0) return (0, 1);
|
||||
|
||||
var isNegative = value < 0;
|
||||
var sign = isNegative ? -1.0 : 1.0;
|
||||
var target = Math.Abs(value);
|
||||
// 2. 스턴-브로코 / 연속분수 경계값 초기화
|
||||
// 아래 두 행의 분수 (0/1, 1/0) 사이에서 시작하여 타겟에 가까워집니다.
|
||||
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
|
||||
namespace ADOFAIRenderer.Util
|
||||
{
|
||||
public static class RegistryUtil
|
||||
internal static class RegistryUtil
|
||||
{
|
||||
private static readonly Type? RegistryKeyType;
|
||||
private static readonly Type? RegistryHiveType;
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ using MelonLoader;
|
||||
|
||||
namespace ADOFAIRenderer.Util
|
||||
{
|
||||
public static class StreamUtil
|
||||
internal static class StreamUtil
|
||||
{
|
||||
public static void WriteNativePtrToStream(IntPtr nativePtr, int length, Stream destinationStream)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user