Skip to content

RobloxStateMachine - V.1.1.7

Latest
Compare
Choose a tag to compare
@prooheckcp prooheckcp released this 12 May 15:55
2f7113a

RobloxStateMachine V.1.1.7 IS NOW OUT!

📝Description

Added multiple new features and QOL improvements. Also an upgrade to the documentation

🔧Changes

Version 1.1.7

-Added:

  • Added OnDestroy virtual Method on Transition

  • Added OnDestroy virtual method on State

  • State:Extend to extend the class

  • Transition:Extend to extend the class

  • Added State:CanChangeState method

  • Deprecated:

  • Transition:CanChangeState has been deprecated

  • QOL improvement:

  • Improved documentation

  • Can now Call class constructors without .new

--Example:
local StateMachine = require(ReplicatedStorage.RobloxStateMachine)
local GoToRed = require(script.Parent.Parent.Transitions.GoToRed)

local State = StateMachine.State

local ChangeColorState = State "ChangeColorState"
ChangeColorState.Transitions = {GoToRed}

👣Next steps

No further steps are necessary

📁 Install

StateMachine.zip