Drag[en]gine Script Module DragonScript  1.23
Dragengine.StateMachineSystem.SMBlockCondition Class Reference

State machine condition using block. More...

Inheritance diagram for Dragengine.StateMachineSystem.SMBlockCondition:
Dragengine.StateMachineSystem.SMCondition

Public Member Functions

SMBlockCondition new (Block ablock)
 Create condition. More...
 
- Public Member Functions inherited from Dragengine.StateMachineSystem.SMCondition
bool evaluateCondition (SMContext context, Dictionary parameters)
 Evaluate condition. More...
 

Detailed Description

State machine condition using block.

Provides support to add tiny conditions often just calling a SMContext method without needing to implement a full class. The used block has to take one parameter of type SMContext context and Dictionary and parameters. Do not change the content of the dictionary as it is shared.

new SMBlockCondition( block SMContext context, Dictionary parameters
// verify condition then return true or false
return true
end )

Member Function Documentation

◆ new()

SMBlockCondition Dragengine.StateMachineSystem.SMBlockCondition.new ( Block  ablock)

Create condition.


The documentation for this class was generated from the following file: