Skip to content

Complexe component field serialisation #48

@Tomobodo

Description

@Tomobodo

Some component can have more complexe field than basics types, such as a SpriteSheet in a View component.

On save the SpriteSheet field should be replaced by a simpler object, containing the class name and the path to load like so :

{
    "type" : "fr.radstar.radengine.asset.SpriteSheet",
    "path" : "path/to/asset.radasset"
}

On load the object should then be replaced by a new instance of the class wich will load the path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions