ludus::runtime::behavior¶
Ludus Wiki · API overview · Browse API
Namespace
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
Related declarations¶
- ludus::runtime::behavior::EntityRef
- ludus::runtime::behavior::Value
- ludus::runtime::behavior::Field
- ludus::runtime::behavior::Record
- ludus::runtime::behavior::FieldSpec
- ludus::runtime::behavior::Operation
- ludus::runtime::behavior::Contract
- ludus::runtime::behavior::Invocation
- ludus::runtime::behavior::Command
- ludus::runtime::behavior::CommandResult
- ludus::runtime::behavior::Outcome
- ludus::runtime::behavior::Services
- ludus::runtime::behavior::Diagnostic
- ludus::runtime::behavior::Transaction
- ludus::runtime::behavior::DebugFrame
- ludus::runtime::behavior::DebugLocal
- ludus::runtime::behavior::DebugSnapshot
- ludus::runtime::behavior::LuauProvider
Enumerations¶
Kind¶
enum class Kind : uint8
Related types: uint8
Uint32¶
Uint32 = 1
Boolean¶
Boolean = 2
Entity¶
Entity = 3
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
CommandStatus¶
enum class CommandStatus : uint8
Related types: uint8
Accepted¶
Accepted
InvalidValue¶
InvalidValue
InvalidEntity¶
InvalidEntity
InvalidPhase¶
InvalidPhase
MissingCapability¶
MissingCapability
CapacityExceeded¶
CapacityExceeded
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
Status¶
enum class Status : uint8
Related types: uint8
Completed¶
Completed
InvalidContract¶
InvalidContract
InvalidPackage¶
InvalidPackage
InvalidInput¶
InvalidInput
NotReady¶
NotReady
Reentrant¶
Reentrant
AllocationFailure¶
AllocationFailure
ScriptFault¶
ScriptFault
Interrupted¶
Interrupted
Paused¶
Paused
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
DebugMode¶
enum class DebugMode : uint8
Related types: uint8
Continue¶
Continue
Into¶
Into
Over¶
Over
Out¶
Out
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
Aliases¶
NativeHandler¶
using ludus::runtime::behavior::NativeHandler = Status (*)(Transaction&, void*) noexcept
Related types: Transaction · Status
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
Functions¶
ExecuteNative¶
Status ludus::runtime::behavior::ExecuteNative(const Contract &contract, const Invocation &input, Services services, NativeHandler handler, void *user, Outcome &output) noexcept
Note
Related types: NativeHandler · Status · Contract · Invocation · Outcome · Services
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
LuauProfile¶
std::string_view ludus::runtime::behavior::LuauProfile() noexcept
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
EncodeState¶
bool ludus::runtime::behavior::EncodeState(const Contract &contract, const Record &state, std::span< uint8 > output, usize &written) noexcept
Note
Related types: uint8 · usize · Contract · Record
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
DecodeState¶
bool ludus::runtime::behavior::DecodeState(const Contract &contract, std::span< const uint8 > bytes, Record &output) noexcept
Related types: uint8 · Contract · Record
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h
MigrateState¶
bool ludus::runtime::behavior::MigrateState(const Record &source, const Contract &target, Record &output) noexcept
Note
Related types: Contract · Record
Declared in modules/runtime/behavior/include/ludus/runtime/behavior/behavior.h