private void MoveObject(Player player, CanvasElement element) { if (_player == player) { return; } _jsRuntime.InvokeVoidAsync("moveObject", element); }
private void UpdateObject(Player player, CanvasElement element) { _jsRuntime.InvokeVoidAsync("updateObject", element); }
private void SelectObject(Player player, CanvasElement element) { _jsRuntime.InvokeVoidAsync("selectObject", element, player == _player); }
private void RemoveObject(Player player, CanvasElement element) { _jsRuntime.InvokeVoidAsync("removeObject", element.Id); }
private void AddObject(Player player, CanvasElement element) { _jsRuntime.InvokeVoidAsync("addObject", element, element.Owner == _player); }