共有バインダーをParameterBinderへ改名

このコミットが含まれているのは:
routersys committed 2026-07-04 22:21:49 +09:00
1 親 004041b342
コミット c19ae507cf
4ファイル変更
+7 -7

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -57,7 +57,7 @@ namespace LuaScript
{
if (arguments.Count > 0)
{
Ymm4PropertyBinder.ApplyArguments(entry.Parameter, arguments);
ParameterBinder.ApplyArguments(entry.Parameter, arguments);
if (entry.AppliedKeys.Length != arguments.Count)
entry.AppliedKeys = new string[arguments.Count];
for (int i = 0; i < arguments.Count; i++)
+1 -1
ファイルの表示
@@ -9,7 +9,7 @@ using YukkuriMovieMaker.Commons;
namespace LuaScript
{
internal static class Ymm4PropertyBinder
internal static class ParameterBinder
{
public static readonly AviUtlParameterMapping Identity = new(string.Empty, string.Empty, 1d, 0d);
+4 -4
ファイルの表示
@@ -183,7 +183,7 @@ namespace LuaScript
map.TryAdd(Normalize(key), type);
}
private static string Normalize(string value) => Ymm4PropertyBinder.Normalize(value);
private static string Normalize(string value) => ParameterBinder.Normalize(value);
private static void ApplyParameters(IVideoEffect model, AviUtlEffectMapping? mapping, IReadOnlyList<KeyValuePair<string, object>> arguments)
{
@@ -192,11 +192,11 @@ namespace LuaScript
if (mapping is null)
{
Ymm4PropertyBinder.ApplyArguments(model, arguments);
ParameterBinder.ApplyArguments(model, arguments);
return;
}
var properties = Ymm4PropertyBinder.GetProperties(model.GetType());
var properties = ParameterBinder.GetProperties(model.GetType());
foreach (var (key, value) in arguments)
{
if (!mapping.TryGetParameter(key, out var parameter) ||
@@ -205,7 +205,7 @@ namespace LuaScript
try
{
Ymm4PropertyBinder.SetValue(model, property, value, parameter);
ParameterBinder.SetValue(model, property, value, parameter);
}
catch
{