Upload from upload_mods.ps1

This commit is contained in:
Nathaniel Cosford
2025-06-04 16:16:46 +09:30
commit 78abcd79dd
20 changed files with 1000 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System.Collections.Generic;
public static class ActionSetUserDataExtension
{
public static void AddUniConflict(this PlayerActionsBase self, PlayerActionsBase other)
{
List<PlayerActionsBase> list = new List<PlayerActionsBase>((self.UserData as PlayerActionData.ActionSetUserData).bindingsConflictWithSet);
if(!list.Contains(other))
{
list.Add(other);
self.UserData = new PlayerActionData.ActionSetUserData(list.ToArray());
}
}
public static void AddBiConflict(this PlayerActionsBase self, PlayerActionsBase other)
{
self.AddUniConflict(other);
other.AddUniConflict(self);
}
}