Search Results for

    Show / Hide Table of Contents

    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 Source

    messageType

    The full name of the Message subtype.

    Declaration
    public string messageType
    Field Value
    Type Description
    string
    | Edit this page View Source

    names

    The names of the message's fields.

    Declaration
    public List<string> names
    Field Value
    Type Description
    List<string>
    | Edit this page View Source

    types

    The types of the message's fields.

    Declaration
    public List<string> types
    Field Value
    Type Description
    List<string>
    | Edit this page View Source

    values

    The values of the message's fields, represented as strings.

    Declaration
    public List<string> values
    Field Value
    Type Description
    List<string>
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX