Skip to content

ludus::runtime::behavior::Transaction

Ludus Wiki · API overview · Browse API

Class

Shared native/Luau staged transaction; construction is reserved to the provider functions.

Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h

#include <ludus/runtime/behavior/behavior.h>
class ludus::runtime::behavior::Transaction final

Methods

State

Record & ludus::runtime::behavior::Transaction::State() noexcept
Mutable candidate state; validation runs before publication.

Related types: Record

Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h

Input

const Invocation & ludus::runtime::behavior::Transaction::Input() const noexcept
Read-only invocation inputs; valid only during the handler call.

Related types: Invocation

Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h

Request

CommandResult ludus::runtime::behavior::Transaction::Request(uint32 operation, std::span< const Value > arguments) noexcept
Stages a checked command; performs no world mutation, allocation or VM entry.

Related types: uint32 · CommandResult · Value

Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h