Add EventManager and event handling system; implement event triggering and popup display

This commit is contained in:
2025-08-23 23:38:45 +02:00
parent c0d18507e3
commit cdd944b9b5
16 changed files with 379 additions and 26 deletions

View File

@@ -0,0 +1,22 @@
using System.Collections.Generic;
using Godot.Collections;
using ParasiticGod.Scripts.Core.Effects;
namespace ParasiticGod.Scripts.Core;
public class EventDefinition
{
public string Id { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public int MeanTimeToHappen { get; set; }
public EventTriggerDto Trigger { get; set; }
public List<EventOptionDefinition> Options { get; set; } = [];
}
public class EventOptionDefinition
{
public string Text { get; set; }
public string Tooltip { get; set; }
public Array<Effect> Effects { get; set; }
}