Manual

SpriteId

struct in Doozy.Engine.Themes

Description

The SpriteID is a structure that stores a Sprite reference and Guid pair

Properties

  • public Guid Id – Id of this struct

  • public Sprite Sprite – Sprite reference of this struct

Constructors

  • public SpriteId(Sprite sprite) – Construct a new SpriteId with the given Sprite reference and a unique Id

  • public SpriteId(Guid id, Sprite sprite) – Construct a new SpriteId with the given Id and Sprite reference

Public Methods

  • public void SetId(Guid newGuid) – Set the Id value

  • public void SetSprite(Sprite sprite) – Set the Sprite reference