Class LuaValueSerializers
Core serializers that convert a MarinerSettings-derived value
into the Lua string literal expected by
PortrayalSetContextParameter. These are pure value coercions with no
product knowledge — the mapping policy (which mariner setting feeds
which declared parameter, and any inversion) lives in each product's
LuaContextParameterBinding list.
public static class LuaValueSerializers
- Inheritance
-
LuaValueSerializers
- Inherited Members
Methods
Bool(object?)
Serializes a bool as the Lua literal true/false.
public static string Bool(object? value)
Parameters
valueobject
Returns
Number(object?)
Serializes a numeric value using the invariant culture, matching the Lua side's numeric parsing of context-parameter strings.
public static string Number(object? value)
Parameters
valueobject
Returns
Str(object?)
Serializes a string value as-is (empty string when null).
public static string Str(object? value)
Parameters
valueobject