FontAsset

Namespace: Murder.Assets.Graphics
Assembly: Murder.dll

public class FontAsset : GameAsset

Implements: GameAsset

⭐ Constructors

public FontAsset()
public FontAsset(int index, Dictionary<TKey, TValue> characters, ImmutableArray<T> kernings, int lineHeight, string texturePath, float baseline, Point offset)

Parameters
index int
characters Dictionary<TKey, TValue>
kernings ImmutableArray<T>
lineHeight int
texturePath string
baseline float
offset Point

⭐ Properties

Baseline

public float Baseline;

Returns
float

CanBeCreated

public virtual bool CanBeCreated { get; }

Returns
bool

CanBeDeleted

public virtual bool CanBeDeleted { get; }

Returns
bool

CanBeRenamed

public virtual bool CanBeRenamed { get; }

Returns
bool

CanBeSaved

public virtual bool CanBeSaved { get; }

Returns
bool

Characters

public readonly ImmutableDictionary<TKey, TValue> Characters;

Returns
ImmutableDictionary<TKey, TValue>

EditorColor

public virtual Vector4 EditorColor { get; }

Returns
Vector4

EditorFolder

public virtual string EditorFolder { get; }

Returns
string

FileChanged

public bool FileChanged { get; public set; }

Returns
bool

FilePath

public string FilePath { get; public set; }

Returns
string

Guid

public Guid Guid { get; protected set; }

Returns
Guid

Icon

public virtual char Icon { get; }

Returns
char

Index

public int Index;

Returns
int

IsStoredInSaveData

public virtual bool IsStoredInSaveData { get; }

Returns
bool

Kernings

public readonly ImmutableArray<T> Kernings;

Returns
ImmutableArray<T>

LineHeight

public int LineHeight;

Returns
int

Name

public string Name { get; public set; }

Returns
string

Offset

public Point Offset;

Returns
Point

Rename

public bool Rename { get; public set; }

Returns
bool

SaveLocation

public virtual string SaveLocation { get; }

Returns
string

StoreInDatabase

public virtual bool StoreInDatabase { get; }

Returns
bool

TaggedForDeletion

public bool TaggedForDeletion;

Returns
bool

TexturePath

public string TexturePath;

Returns
string

⭐ Methods

OnModified()

protected virtual void OnModified()

Duplicate(string)

public GameAsset Duplicate(string name)

Parameters
name string

Returns
GameAsset

AssetsToBeSaved()

public List<T> AssetsToBeSaved()

Returns
List<T>

GetSimplifiedName()

public string GetSimplifiedName()

Returns
string

GetSplitNameWithEditorPath()

public String[] GetSplitNameWithEditorPath()

Returns
string[]

AfterDeserialized()

public virtual void AfterDeserialized()

MakeGuid()

public void MakeGuid()

TrackAssetOnSave(Guid)

public void TrackAssetOnSave(Guid g)

Parameters
g Guid