Improvements to save and loading
Improvements to Chinthe animation logic Fix broken Godot Tool system and just use a more manual approach to setting map nodes Remove ItemDatabase from individual room scenes
This commit is contained in:
24
Zennysoft.Game.Ma/src/quest/QuestTest.cs
Normal file
24
Zennysoft.Game.Ma/src/quest/QuestTest.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.Introspection;
|
||||
using Godot;
|
||||
using Zennysoft.Game.Ma;
|
||||
|
||||
[Meta(typeof(IAutoNode))]
|
||||
public partial class QuestTest : Area3D
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
[Dependency] public IGame Game => this.DependOn<IGame>();
|
||||
|
||||
public void OnResolved()
|
||||
{
|
||||
AreaEntered += QuestTest_AreaEntered;
|
||||
if (Game.QuestData.QuestMarker1)
|
||||
QueueFree();
|
||||
}
|
||||
|
||||
private void QuestTest_AreaEntered(Area3D area)
|
||||
{
|
||||
Game.QuestData.QuestMarker1 = true;
|
||||
}
|
||||
}
|
||||
1
Zennysoft.Game.Ma/src/quest/QuestTest.cs.uid
Normal file
1
Zennysoft.Game.Ma/src/quest/QuestTest.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://b8bvom6o034gm
|
||||
Reference in New Issue
Block a user