Search Results for

    Show / Hide Table of Contents

    Class ImageData

    This Data type allows you to:

    • Save and a Sprite in local storage
    • Load in cache a Sprite by ID
    • Access the Sprite anytime
    Inheritance
    object
    Data
    ImageData
    Inherited Members
    Data.Id
    Data.OnRebase
    Namespace: GGL.DB.Type
    Assembly: GGL.dll
    Syntax
    public class ImageData : Data

    Constructors

    | Edit this page View Source

    ImageData(ulong)

    Instantiate a new image defined by an ID.

    Declaration
    public ImageData(ulong id)
    Parameters
    Type Name Description
    ulong id

    Id of the picture in database.

    Remarks

    That means that your image was previously added in database. You did, right?

    | Edit this page View Source

    ImageData(Sprite, ulong)

    Instantiate a new image defined by a Sprite.

    Declaration
    public ImageData(Sprite sprite, ulong id = 0)
    Parameters
    Type Name Description
    Sprite sprite

    Your sprite. I don't really care where it comes from.

    ulong id

    If you want to set an ID by yourself, then go for it...

    Remarks

    Your sprite will be saved in local storage.

    Properties

    | Edit this page View Source

    Sprite

    Declaration
    [JsonIgnore]
    public Sprite Sprite { get; }
    Property Value
    Type Description
    Sprite

    Access the cached sprite.

    Remarks

    If not cached yet, will cache it for you :) .

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX