add qsb solanum controller

This commit is contained in:
Mister_Nebula 2021-10-28 14:29:27 +01:00
parent 9ad260c081
commit e2b5c167be
3 changed files with 14 additions and 0 deletions

View File

@ -11,6 +11,7 @@ namespace QSB.Animation.NPC
{
QSBWorldSync.Init<QSBCharacterAnimController, CharacterAnimController>();
QSBWorldSync.Init<QSBTravelerController, TravelerController>();
QSBWorldSync.Init<QSBSolanumController, NomaiConversationManager>();
//MOVE : this is the wrong place to put this... move it to Conversations?
QSBWorldSync.OldDialogueTrees.Clear();

View File

@ -0,0 +1,11 @@
namespace QSB.Animation.NPC.WorldObjects
{
internal class QSBSolanumController : NpcAnimController<NomaiConversationManager>
{
public override CharacterDialogueTree GetDialogueTree()
=> AttachedObject._characterDialogueTree;
public override bool InConversation()
=> AttachedObject._solanumAnimController._animator.GetBool("ListeningToPlayer");
}
}

View File

@ -44,6 +44,7 @@
<Compile Include="Animation\NPC\WorldObjects\INpcAnimController.cs" />
<Compile Include="Animation\NPC\WorldObjects\NpcAnimController.cs" />
<Compile Include="Animation\NPC\WorldObjects\QSBCharacterAnimController.cs" />
<Compile Include="Animation\NPC\WorldObjects\QSBSolanumController.cs" />
<Compile Include="Animation\NPC\WorldObjects\QSBTravelerController.cs" />
<Compile Include="Animation\Player\AnimationSync.cs" />
<Compile Include="Animation\Player\AnimationType.cs" />
@ -425,6 +426,7 @@
<Version>2.0.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>md "$(OwmlDir)\Mods\$(ProjectName)"