Class ImageData
This Data type allows you to:
Namespace: GGL.DB.Type
Assembly: GGL.dll
Syntax
public class ImageData : Data
Constructors
| Edit this page View SourceImageData(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?
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 SourceSprite
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 :) .