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