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