IGameText interface
English text for buff and skill rows, shipped with the framework so plugins no longer embed their own copy of the translated BuffTable. The game leaves many internal rows (proc buffs, sub-buffs, damage zones) without a localized name — only a Chinese design label (NameDesign) — and the framework’s own IGameDataCombat names then read “Buff <id>” / “Skill <id>”. This service carries an English translation of those design labels (plus the English name / description / note where the game has them).
Loading. Nothing is read until the first call on this service; the table (≈190 KB compressed, ≈15k rows) is then parsed on a background thread and published in one step. Until IsReady is true every lookup returns null and ResolveDisplayName returns the game name — so callers must tolerate the not-ready path and re-resolve once on Ready. Lookups are O(1), allocation-free and safe from any thread.
public interface IGameTextMembers
Section titled “Members”| name | description |
|---|---|
| IsReady { get; } | True once the table is loaded (also true, with an empty table, when loading failed — no retry). |
| event Ready | Raised once per handler, on the main thread, when the table becomes ready. Subscribing also starts the load. A handler added after the table is ready still runs once, on the next framework tick — so “subscribe, then re-resolve labels in the handler” never misses the refresh. Exceptions are logged and swallowed per handler. |
| GetDescription(…) | English description of the row; for a buff with no description, its English design note. Null when neither exists or the table is not ready. |
| GetDesignName(…) | English translation of the row’s design label (NameDesign, e.g. buff 2203291 → “Fall of the Firmament - Sub-Buff”; official in-game terms where the label contains one, e.g. buff 2203650 → “Radiance Barrage adds Steel Beak”), or null. A designer label, not player-facing wording — show it only when the row has no real name, and ideally with its id. |
| GetEffectCategory(…) | What kind of effect buff buffId is — crowd control, immunity, shield, heal, damage over time, stat down, stat up, else Default — for drawing an icon-less effect with LoadEffectPlaceholder. A keyword guess over the row’s design label (the game’s own name when it is a real one, plus GetDesignName), first match wins in that order; the game has no category field. Returns Default until IsReady (re-ask on Ready). Cached per id: O(1) and allocation-free after the first call for an id. Added in 2.34.0. |
| GetName(…) | English localized name of a row, or null when the row has no real name (internal rows), the id is unknown, or the table is not ready yet. Use the game’s own name first — this is the English-client text. |
| IsPlaceholderName(…) | True when name means “no name”: null/blank, the game’s filler strings for an unnamed row (“气刃突刺计数” / “Spirit Blade Thrust count” for buffs, “场地标记01” for skills), or the framework’s id fallback “Buff <digits>” / “Skill <digits>”. Allocation-free. |
| ResolveDisplayName(…) | The label to show for a row, given the name the game (or IGameDataCombat) gave you: |
See Also
Section titled “See Also”- namespace Stellar.Abstractions.Services