Class IO
Save and load data.
Inheritance
System.Object
IO
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public class IO : object
Constructors
IO(Script, EIOContext, Scene)
Create a new IO context.
Declaration
public IO(Script env, EIOContext context, Scene target = null)
Parameters
Type | Name | Description |
---|---|---|
Script | env | !! provided automatically by Mannequin |
EIOContext | context | The context for writing, see EIOContext |
Scene | target |
Properties
Keys
The saved keys in this object's IO instance
Declaration
public List<string> Keys { get; }
Property Value
Type | Description |
---|---|
List<System.String> |
Methods
Get(String, Object)
Get a value.
Declaration
public object Get(string key, object def = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The object's key |
System.Object | def | What to return if the object is not found |
Returns
Type | Description |
---|---|
System.Object | The object, or |
Set(String, Object)
Set a key to an object.
Declaration
public void Set(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The object's key |
System.Object | value | The object's value |