|
| DataObject () |
| Initializes a new instance of a GamingIsLove.Makinom.DataObject. More...
|
|
| DataObject (byte[] byteData, bool decrypt, DataFile file) |
| Initializes a new instance of a GamingIsLove.Makinom.DataObject, loading byte array data from a GamingIsLove.Makinom.DataFile. More...
|
|
bool | Contains< T > (string key) |
| Determines if the data object contains the specified key for a data type. More...
|
|
bool | ContainsArray< T > (string key) |
| Determines if the data object contains the specified key for an array of a a data type. More...
|
|
object | Get (string key) |
|
bool | Remove< T > (string key) |
| Removes content of a specified key for a data type. More...
|
|
bool | RemoveArray< T > (string key) |
| Removes content of a specified key for an array of a a data type. More...
|
|
void | Set< T > (string key, T value) |
| Assign a value to a key. Enum types are converted to integers. More...
|
|
void | Set (string key, int value) |
|
void | Set (string key, float value) |
|
void | Set (string key, bool value) |
|
void | Set (string key, string value) |
|
void | Set (string key, DataObject value) |
|
void | SetAsset (string key, UnityEngine.Object value) |
|
void | SetEnum< T > (string key, T value) |
|
void | Set (string key, Vector2 value) |
|
void | Set (string key, Vector3 value) |
|
void | Set (string key, Vector4 value) |
|
void | Set (string key, Rect value) |
|
void | Set (string key, Color value) |
|
void | Set (string key, AnimationCurve value) |
|
bool | Get< T > (string key, ref T value) |
| Get the value assigned to a key. More...
|
|
bool | Get (string key, ref int value) |
|
void | LoadInt (FieldInfo field, object instance) |
|
bool | Get (string key, ref float value) |
|
void | LoadFloat (FieldInfo field, object instance) |
|
bool | Get (string key, ref bool value) |
|
void | LoadBool (FieldInfo field, object instance) |
|
bool | Get (string key, ref string value) |
|
void | LoadString (FieldInfo field, object instance) |
|
bool | Get (string key, ref DataObject value) |
|
bool | GetAsset (string key, ref UnityEngine.Object value) |
|
void | LoadAsset (FieldInfo field, object instance) |
|
bool | GetEnum< T > (string key, ref T value) |
|
bool | Get (string key, ref Vector2 value) |
|
void | LoadVector2 (FieldInfo field, object instance) |
|
bool | Get (string key, ref Vector3 value) |
|
void | LoadVector3 (FieldInfo field, object instance) |
|
bool | Get (string key, ref Vector4 value) |
|
void | LoadVector4 (FieldInfo field, object instance) |
|
bool | Get (string key, ref Rect value) |
|
void | LoadRect (FieldInfo field, object instance) |
|
bool | Get (string key, ref Color value) |
|
void | LoadColor (FieldInfo field, object instance) |
|
bool | Get (string key, ref AnimationCurve value) |
|
void | LoadAnimationCurve (FieldInfo field, object instance) |
|
Dictionary< string, T > | GetData< T > (System.Type type) |
| Gets a list containing keys and values of a type. More...
|
|
void | SetData< T > (Dictionary< string, T > data, System.Type type) |
| Sets a list containing keys and values of a type. More...
|
|
void | Set< T > (string key, T[] value) |
| Assign an array to a key. Enum arrays are used as integer arrays. More...
|
|
void | Set (string key, int[] value) |
|
void | Set (string key, float[] value) |
|
void | Set (string key, bool[] value) |
|
void | Set (string key, string[] value) |
|
void | Set (string key, DataObject[] value) |
|
void | Set (string key, Vector2[] value) |
|
void | Set (string key, Vector3[] value) |
|
void | Set (string key, Vector4[] value) |
|
void | Set (string key, Rect[] value) |
|
void | Set (string key, Color[] value) |
|
bool | Get< T > (string key, out T[] value) |
| Get the array assigned to a key. More...
|
|
bool | Get (string key, out int[] value) |
|
void | LoadIntArray (FieldInfo field, object instance) |
|
void | LoadEnumArray (FieldInfo field, object instance) |
|
bool | Get (string key, out float[] value) |
|
void | LoadFloatArray (FieldInfo field, object instance) |
|
bool | Get (string key, out bool[] value) |
|
void | LoadBoolArray (FieldInfo field, object instance) |
|
bool | Get (string key, out string[] value) |
|
void | LoadStringArray (FieldInfo field, object instance) |
|
bool | Get (string key, out DataObject[] value) |
|
bool | Get (string key, out Vector2[] value) |
|
void | LoadVector2Array (FieldInfo field, object instance) |
|
bool | Get (string key, out Vector3[] value) |
|
void | LoadVector3Array (FieldInfo field, object instance) |
|
bool | Get (string key, out Vector4[] value) |
|
void | LoadVector4Array (FieldInfo field, object instance) |
|
bool | Get (string key, out Rect[] value) |
|
void | LoadRectArray (FieldInfo field, object instance) |
|
bool | Get (string key, out Color[] value) |
|
void | LoadColorArray (FieldInfo field, object instance) |
|
Dictionary< string, T[]> | GetArrayData< T > (System.Type type) |
| Gets a list containing keys and values of an array type. More...
|
|
void | SetArrayData< T > (Dictionary< string, T[]> data, System.Type type) |
| Sets a list containing keys and values of an array type. More...
|
|
DataObject | GetFile (string key) |
| Gets the GamingIsLove.Makinom.DataObject assigned to a key. More...
|
|
DataObject [] | GetFileArray (string key) |
| Gets the GamingIsLove.Makinom.DataObject array assigned to a key. More...
|
|
string | ToXML (string name) |
|
string | ToXML (string name, DataFile file) |
|
DataFile | GetDataFile (string name, bool encrypt, DataFile.SaveFormatType format) |
| Converts the data into a GamingIsLove.Makinom.DataFile, writing the data as a byte array. More...
|
|
ComponentDataFile | GetComponentDataFile (string name, bool encrypt) |
|
Used to handle data from IBaseData objects for data serialization. Supported types:
- int, float, bool, string
- int[], float[], bool[], string[]
- enum is used as int
- enum[] is used as int[]
- Vector2, Vector2[], Vector3, Vector3[], Vector4, Vector4[], Rect, Rect[] are used as float[].