improvements

This commit is contained in:
Michal Vrba
2026-09-03 17:54:36 +02:00
parent 00aa94ea7c
commit 035da18584
14 changed files with 1006 additions and 52 deletions
+28
View File
@@ -48,11 +48,30 @@ public class FxService
catch { }
}
public async ValueTask TriggerIceShatterAsync(string position)
{
try
{
await _js.InvokeVoidAsync("FaraonFx.triggerIceShatter", position);
}
catch { }
}
public async ValueTask PlayHornikChimeAsync()
{
try { await _js.InvokeVoidAsync("FaraonFx.playHornikChime"); } catch { }
}
public async ValueTask PlayLeafShieldAsync(string? position = null)
{
try
{
await _js.InvokeVoidAsync("FaraonFx.playLeafShield");
await _js.InvokeVoidAsync("FaraonFx.triggerLeafParticles", null, null, 40);
}
catch { }
}
public async ValueTask PlayBurnExplosionAsync()
{
try
@@ -123,6 +142,15 @@ public class FxService
catch { }
}
public async ValueTask SetSpeedLevelAsync(int level)
{
try
{
await _js.InvokeVoidAsync("FaraonFx.setSpeedLevel", level);
}
catch { }
}
public async ValueTask PlaySelectStepAsync(int step)
{
try { await _js.InvokeVoidAsync("FaraonFx.playSelectStep", step); } catch { }