Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Abstracts/CustomCharacterModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public abstract class CustomCharacterModel : CharacterModel, ICustomModel
public CustomCharacterModel()
{
ModelDbCustomCharacters.Register(this);
ModAudio.NotifyCharacterConstructed(this);
}

/// <summary>
Expand Down Expand Up @@ -49,6 +50,13 @@ public CustomCharacterModel()
public virtual string? CustomCastSfx => null;
public virtual string? CustomDeathSfx => null;

/// <summary>
/// Godot path to this mod's <c>audio</c> folder — the folder that directly contains <c>sfx</c> and <c>bgm</c>
/// (e.g. <c>res://TheCharacter/audio</c>). Then use <see cref="ModAudio.PlaySfx"/>, <see cref="ModAudio.PlayMusic"/>, etc.
/// Optional: <see cref="ModAudio.SetRoot"/> overrides; <see cref="ModAudio.Register"/> for id-based calls.
/// </summary>
public virtual string? CustomAudioPath => null;

//Defaults
public override int StartingGold => 99;
public override float AttackAnimDelay => 0.15f;
Expand Down
Loading