Class TextureIconDescriptor
An icon descriptor that loads its icon from the game files as a Microsoft.Xna.Framework.Graphics.Texture2D
Implements
Inherited Members
Namespace: SociallyDistant.Core.Shell
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class TextureIconDescriptor : IIconDescriptor
Constructors
TextureIconDescriptor(IGameContext, string)
An icon descriptor that loads its icon from the game files as a Microsoft.Xna.Framework.Graphics.Texture2D
Declaration
public TextureIconDescriptor(IGameContext context, string path)
Parameters
Type | Name | Description |
---|---|---|
IGameContext | context | Socially Distant's game context |
string | path | The absolute path to the texture to load, in the game's virtual content filesystem. |
Methods
LoadIcon()
Load the icon described by the descriptor.
Declaration
public CompositeIcon LoadIcon()
Returns
Type | Description |
---|---|
CompositeIcon | A CompositeIcon value representing the icon that was loaded. |