LocalizationAsset

Namespace: Murder.Assets.Localization
Assembly: Murder.dll

public class LocalizationAsset : GameAsset

Implements: GameAsset

⭐ Constructors

public LocalizationAsset()

⭐ Properties

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

DialogueResources

public ImmutableArray<T> DialogueResources { get; }

Expose all the dialogue resources (for editor, etc.).

Returns
ImmutableArray<T>

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

IsStoredInSaveData

public virtual bool IsStoredInSaveData { get; }

Returns
bool

Name

public string Name { get; public set; }

Returns
string

Rename

public bool Rename { get; public set; }

Returns
bool

Resources

public ImmutableArray<T> Resources { get; }

Expose all the resources (for editor, etc.).

Returns
ImmutableArray<T>

SaveLocation

public virtual string SaveLocation { get; }

Returns
string

StoreInDatabase

public virtual bool StoreInDatabase { get; }

Returns
bool

TaggedForDeletion

public bool TaggedForDeletion;

Returns
bool

⭐ Methods

OnModified()

protected virtual void OnModified()

HasResource(Guid)

public bool HasResource(Guid id)

Parameters
id Guid

Returns
bool

Duplicate(string)

public GameAsset Duplicate(string name)

Parameters
name string

Returns
GameAsset

FetchResourcesForDialogue(Guid)

public ImmutableArray<T> FetchResourcesForDialogue(Guid guid)

Expose all resources tied to a particular dialogue.

Parameters
guid Guid

Returns
ImmutableArray<T>

AssetsToBeSaved()

public List<T> AssetsToBeSaved()

Returns
List<T>

AddResource(string, bool)

public LocalizedString AddResource(string text, bool isGenerated)

Parameters
text string
isGenerated bool

Returns
LocalizedString

GetSimplifiedName()

public string GetSimplifiedName()

Returns
string

GetSplitNameWithEditorPath()

public String[] GetSplitNameWithEditorPath()

Returns
string[]

TryGetResource(Guid)

public T? TryGetResource(Guid id)

Parameters
id Guid

Returns
T?

AfterDeserialized()

public virtual void AfterDeserialized()

AddResource(Guid)

public void AddResource(Guid id)

Parameters
id Guid

MakeGuid()

public void MakeGuid()

RemoveResource(Guid, bool)

public void RemoveResource(Guid id, bool force)

Parameters
id Guid
force bool

SetAllDialogueResources(ImmutableArray)

public void SetAllDialogueResources(ImmutableArray<T> resources)

Parameters
resources ImmutableArray<T>

SetResource(LocalizedStringData)

public void SetResource(LocalizedStringData value)

Parameters
value LocalizedStringData

SetResourcesForDialogue(Guid, ImmutableArray)

public void SetResourcesForDialogue(Guid guid, ImmutableArray<T> resources)

Parameters
guid Guid
resources ImmutableArray<T>

TrackAssetOnSave(Guid)

public void TrackAssetOnSave(Guid g)

Parameters
g Guid

UpdateOrSetResource(Guid, string, string)

public void UpdateOrSetResource(Guid id, string translated, string notes)

Parameters
id Guid
translated string
notes string