From 87a8655e296c927ce500d0fed6059ba42db7bc78 Mon Sep 17 00:00:00 2001 From: CoderGamester Date: Sun, 3 Sep 2023 23:30:19 +0100 Subject: [PATCH] Replace bad struct objects to classes Add missing documentation --- Runtime/Internal/InnerStateData.cs | 5 ++++- Runtime/Internal/StateFactory.cs | 4 +++- package.json | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Runtime/Internal/InnerStateData.cs b/Runtime/Internal/InnerStateData.cs index 45cbc22..682e032 100644 --- a/Runtime/Internal/InnerStateData.cs +++ b/Runtime/Internal/InnerStateData.cs @@ -2,7 +2,10 @@ namespace GameLovers.StatechartMachine.Internal { - internal struct InnerStateData + /// + /// This data objects contains the basic information about the current states managed by the statechart + /// + internal class InnerStateData { public IStateInternal InitialState; public IStateInternal CurrenState; diff --git a/Runtime/Internal/StateFactory.cs b/Runtime/Internal/StateFactory.cs index 4e71aa3..fe39537 100644 --- a/Runtime/Internal/StateFactory.cs +++ b/Runtime/Internal/StateFactory.cs @@ -5,9 +5,11 @@ namespace GameLovers.StatechartMachine.Internal { + /// + /// References of the data to be use in the to manage the pattern of state creation + /// internal struct StateFactoryData { - // TODO: Check if Action fields inside structs is a problem public Action StateChartMoveNextCall; public IStatechart Statechart; } diff --git a/package.json b/package.json index 8e0b275..db590cc 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "com.gamelovers.statechart", "displayName": "Statechart", "author": "Miguel Tomas", - "version": "0.9.0", + "version": "0.9.1", "unity": "2021.4", "license": "MIT", "description": "This package allows the use of Statecharts (Hierarchichal State Machine) within an Unity project.\n\nThe primary feature of Statecharts is that states can be organized in a hierarchy.\nA Statecharts is a state machine where each state in the state machine may define its own subordinate state machines, called substates.\nThose states can again define substates.\n\nFor more information: https://statecharts.github.io/what-is-a-statechart.html",