mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-31 06:32:55 +00:00
remove QSBCharacterAnimController cuz dumb
This commit is contained in:
parent
88871d4a0c
commit
340e9b8a97
@ -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>();
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user