public void Beam(string toTarget, RenderFragment fragment) { if (string.IsNullOrEmpty(toTarget)) { throw new ArgumentNullException(nameof(toTarget)); } _fragments[toTarget] = fragment; TeleportFinished?.Invoke(toTarget); }
public void Unset(string name) { if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException(nameof(name)); } if (_fragments.ContainsKey(name)) { _fragments.Remove(name); } TeleportFinished?.Invoke(name); }