remove QSBCharacterAnimController cuz dumb

This commit is contained in:
JohnCorby 2022-08-02 17:10:28 -07:00
parent 88871d4a0c
commit 340e9b8a97
3 changed files with 1 additions and 40 deletions

View File

@ -9,9 +9,6 @@ internal class CharacterAnimManager : WorldObjectManager
{
public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both;
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
{
QSBWorldSync.Init<QSBCharacterAnimController, CharacterAnimController>();
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct) =>
QSBWorldSync.Init<QSBSolanumAnimController, SolanumAnimController>();
}
}

View File

@ -115,23 +115,4 @@ public class CharacterAnimationPatches : QSBPatch
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(KidRockController), nameof(KidRockController.Update))]
public static bool UpdateReplacement(KidRockController __instance)
{
if (!QSBWorldSync.AllObjectsReady)
{
return true;
}
var qsbObj = QSBWorldSync.GetWorldObjects<QSBCharacterAnimController>().First(x => x.GetDialogueTree() == __instance._dialogueTree);
if (!__instance._throwingRock && !qsbObj.InConversation() && Time.time > __instance._nextThrowTime)
{
__instance.StartRockThrow();
}
return false;
}
}

View File

@ -1,17 +0,0 @@
using QSB.WorldSync;
namespace QSB.Animation.NPC.WorldObjects;
internal class QSBCharacterAnimController : WorldObject<CharacterAnimController>
{
public override void SendInitialState(uint to)
{
// todo SendInitialState
}
public CharacterDialogueTree GetDialogueTree()
=> AttachedObject._dialogueTree;
public bool InConversation()
=> AttachedObject._inConversation;
}