Class MessageSaveData
Container for serializing arbitrary Message objects.
Because Unity's JSON deserializer requires the types of the objects to parse, which are not known when reading from a save file, all data stored in a Message is serialized by name, type and a string representation of its value. With the name of the Message subtype, reflection is then used to restore the original object. See CreateFromSaveData(MessageSaveData) for details.
Inheritance
object
MessageSaveData
Namespace: AS2
Assembly: .dll
Syntax
[Serializable]
public class MessageSaveData
Fields
| Edit this page View SourcemessageType
The full name of the Message subtype.
Declaration
public string messageType
Field Value
Type | Description |
---|---|
string |
names
The names of the message's fields.
Declaration
public List<string> names
Field Value
Type | Description |
---|---|
List<string> |
types
The types of the message's fields.
Declaration
public List<string> types
Field Value
Type | Description |
---|---|
List<string> |
values
The values of the message's fields, represented as strings.
Declaration
public List<string> values
Field Value
Type | Description |
---|---|
List<string> |