Skip to content

Comments

Add EzStateMachine structs#121

Draft
vswarte wants to merge 2 commits intomainfrom
feat/ezstate
Draft

Add EzStateMachine structs#121
vswarte wants to merge 2 commits intomainfrom
feat/ezstate

Conversation

@vswarte
Copy link
Owner

@vswarte vswarte commented Nov 13, 2025

No description provided.

#[repr(C)]
#[derive(PartialEq)]
pub struct EzStateMachineEventCommand {
pub bank: i32,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was looking into this recently. this is called "event type", and allows conditionally skipping events without putting them in a separate state

source of name is the default case in FUN_1420890e0

default:
  DLPanic("..\\..\\Source\\Interface\\EzStateEventImpl.cpp",0xc2,"logic error: invalid event type");

type 1 events always execute, type 5 execute if the first argument is non-zero. 2/3/4/6/7 never execute but run some extra code, so might be a debug thing

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esdlang decomps type 5 events as event name + "If" so this must be a known thing already, but the bank name isn't right

@vswarte vswarte changed the title Add EzStateMachine structs [ER] Add EzStateMachine structs Jan 10, 2026
@vswarte vswarte changed the title [ER] Add EzStateMachine structs Add EzStateMachine structs Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants