Tanoda
|
Public Member Functions | |
pb_SerializableObject (T obj) | |
object | GetObject (string key) |
pb_SerializableObject (SerializationInfo info, StreamingContext context) | |
void | GetObjectData (SerializationInfo info, StreamingContext context) |
virtual void | ApplyProperties (object obj) |
Called after an object is deserialized and constructed to it's base type . More... | |
virtual Dictionary< string, object > | PopulateSerializableDictionary () |
void | ApplyProperties (object obj) |
Called after an object is deserialized and constructed to it's base type . More... | |
Dictionary< string, object > | PopulateSerializableDictionary () |
Static Public Member Functions | |
static | operator T (pb_SerializableObject< T > obj) |
Protected Attributes | |
T | target |
A reference to the component being serialized. Will be null on deserialization. More... | |
Dictionary< string, object > | reflectedProperties |
A key-value store of all serializable properties and fields on this object. Populated on serialization & deserialization. More... | |
Properties | |
Type | type [get, set] |
The type of component stored. More... | |
![]() | |
System.Type | type [get, set] |
The type of component stored. More... | |
Container class for Unity component types, used to serialize and reconstitute components. If you want to override serialization behavior for your MonoBehaviour, implement the pb_ISerializableComponent interface.
Definition at line 17 of file pb_SerializableObject.cs.
Create a new serializable object from a component.
Definition at line 30 of file pb_SerializableObject.cs.
GILES.Serialization.pb_SerializableObject< T >.pb_SerializableObject | ( | SerializationInfo | info, |
StreamingContext | context | ||
) |
Constructor coming from serialization.
Definition at line 68 of file pb_SerializableObject.cs.
|
virtual |
Called after an object is deserialized and constructed to it's base type
.
Implements GILES.Serialization.pb_ISerializable.
Definition at line 87 of file pb_SerializableObject.cs.
object GILES.Serialization.pb_SerializableObject< T >.GetObject | ( | string | key | ) |
Definition at line 53 of file pb_SerializableObject.cs.
void GILES.Serialization.pb_SerializableObject< T >.GetObjectData | ( | SerializationInfo | info, |
StreamingContext | context | ||
) |
Serialize data for ISerializable.
Definition at line 78 of file pb_SerializableObject.cs.
|
explicitstatic |
Explicit cast return target. If obj is null but reflectedProperties is valid, a new instance of T is returned with those properties applied. The new instance is constructed using default(T).
Definition at line 39 of file pb_SerializableObject.cs.
|
virtual |
Called before serialization, any properties stoed in the returned dictionary will be saved and re-applied in ApplyProperties.
Implements GILES.Serialization.pb_ISerializable.
Reimplemented in GILES.Serialization.pb_CameraComponent, GILES.Serialization.pb_MeshCollider, GILES.Serialization.pb_MeshFilter, and GILES.Serialization.pb_MeshRenderer.
Definition at line 101 of file pb_SerializableObject.cs.
|
protected |
A key-value store of all serializable properties and fields on this object. Populated on serialization & deserialization.
Definition at line 25 of file pb_SerializableObject.cs.
|
protected |
A reference to the component being serialized. Will be null on deserialization.
Definition at line 20 of file pb_SerializableObject.cs.
|
getset |
The type of component stored.
Implements GILES.Serialization.pb_ISerializable.
Definition at line 22 of file pb_SerializableObject.cs.