Add WinEffect class and game win functionality; implement win and game over scenes
This commit is contained in:
13
Scripts/Core/Effects/WinEffect.cs
Normal file
13
Scripts/Core/Effects/WinEffect.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Godot;
|
||||
using ParasiticGod.Scripts.Singletons;
|
||||
|
||||
namespace ParasiticGod.Scripts.Core.Effects;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class WinEffect : Effect
|
||||
{
|
||||
public override void Execute(GameState gameState)
|
||||
{
|
||||
GameBus.Instance.NotifyGameIsWon();
|
||||
}
|
||||
}
|
1
Scripts/Core/Effects/WinEffect.cs.uid
Normal file
1
Scripts/Core/Effects/WinEffect.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://77fa2htfghwy
|
@@ -15,7 +15,8 @@ public static class MiracleLoader
|
||||
{ "ConvertResource", typeof(ConvertResourceEffect) },
|
||||
{ "ModifyStat", typeof(ModifyStatEffect) },
|
||||
{ "UnlockMiracle", typeof(UnlockMiracleEffect) },
|
||||
{ "DestroySelf", typeof(DestroySelfEffect) }
|
||||
{ "DestroySelf", typeof(DestroySelfEffect) },
|
||||
{ "Win", typeof(WinEffect)}
|
||||
};
|
||||
|
||||
public static System.Collections.Generic.Dictionary<string, MiracleDefinition> LoadAllMiracles()
|
||||
|
Reference in New Issue
Block a user