git » sdk » commit 7a2d7fe

FSM: Rename getState() to getCurrentState() for clarity

author Matthew Wild
2025-04-18 13:52:13 UTC
committer Stephen Paul Weber
2025-09-29 13:41:52 UTC
parent 8a7e052a345cfd5aaf5d96fb639d86801442bb47

FSM: Rename getState() to getCurrentState() for clarity

snikket/FSM.hx +1 -1

diff --git a/snikket/FSM.hx b/snikket/FSM.hx
index 63a60b1..2bb3cf7 100644
--- a/snikket/FSM.hx
+++ b/snikket/FSM.hx
@@ -93,7 +93,7 @@ class FSM extends EventEmitter {
 		return states.get(currentState).get(name) != null;
 	}
 
-	public function getState():String {
+	public function getCurrentState():String {
 		return currentState;
 	}