IEffectPlaceholders interface
Effect PLACEHOLDER concern of IGameAssets (which inherits this; reach it as _services.GameAssets). Split out so IGameAssets stays within the framework’s interface-width budget. Added in 2.34.0.
public interface IEffectPlaceholdersMembers
Section titled “Members”| name | description |
|---|---|
| GetEffectPlaceholderPng(…) | The PNG bytes of the LoadEffectPlaceholder tile, for elements that take Func<byte[]?> (e.g. ImageElement). Same size pick; the array is cached and shared, do not modify it. Null only when the resource is missing. Any thread. Added in 2.34.0. |
| LoadEffectPlaceholder(…) | A placeholder tile for an effect that has no icon of its own: a white glyph for category (GetEffectCategory) on a green (buff) or red (debuff) tile, the same art CombatMeter 3.0 draws. Feed it to the same elements as LoadBuffIcon results (GameTextureElement, CooldownTileElement, …). The art is pre-drawn and pixel-hinted per size (14-64 px, never one master scaled): this returns the smallest pre-drawn size at or above sizePx (the 64 px tile above that), so pass the icon’s ON-SCREEN pixel size. Synchronous: decoded from the framework’s embedded PNGs on first use per (category, kind, size), then cached; null only when the resource is missing. uv is always (0,0,1,1). Main thread only. Added in 2.34.0. |
See Also
Section titled “See Also”- namespace Stellar.Abstractions.Services