CORE dashboard + a lot of changes

This commit is contained in:
2026-06-22 20:09:15 +02:00
parent 19d6bd934a
commit 89fa0b23b2
101 changed files with 1525 additions and 177 deletions
@@ -11,13 +11,19 @@ using UnityEngine;
namespace RPGCore.ObjectModules.ActionObjectModule
{
[Serializable]
[ObjectModule(
name: "[Core] Actions",
description: "[Built-in module] Module that can be attached to <b>UnitObject</b>. " +
"Can execute any implementations of <b>BaseAction</b> with queue and/or instant execution.",
required: true
)]
public class ActionModule : ObjectModule<UnitObject>
{
private List<BaseActionParallel> _actionParallels = new();
private List<BaseAction> _actionParallels = new();
private readonly List<BaseAction> _actionQueue = new();
private BaseAction _actionCurrent;
public List<BaseActionParallel> actionParallels => _actionParallels.ToList();
public List<BaseAction> actionParallels => _actionParallels.ToList();
public List<BaseAction> actionQueue => _actionQueue.ToList();
public BaseAction actionCurrent => _actionCurrent;
@@ -30,7 +36,7 @@ namespace RPGCore.ObjectModules.ActionObjectModule
/// 1. Checks if the action can be executed outside the queue.<br/>
/// 2. If allowed, executes the action and handles potential errors.
/// </summary>
public void Execute(BaseActionParallel action)
public void Execute(BaseAction action)
{
try
{