You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Babushka/scripts/CSharp/Common/Quest/QuestLog.cs

28 lines
692 B

#nullable enable
using Godot;
using System;
using Babushka.scripts.CSharp.Common.Quest;
public partial class QuestLog : Control
{
[Signal]
public delegate void DetailQuestChangedEventHandler(QuestLog questLog);
public QuestResource? currentDetailQuest
{
get => QuestManager.Instance!.GetFollowQuest();
set
{
QuestManager.Instance!.SetFollowQuest(value); // TODO: fix setup
EmitSignalDetailQuestChanged(this);
}
}
public override void _EnterTree()
{
QuestManager.Instance!.QuestsChanged += () => EmitSignalDetailQuestChanged(this);
}
//private QuestResource? _currentDetailQuestBacking;
}