7 internal class CircuitBoxSelectable
9 public bool IsSelected;
10 public ushort SelectedBy;
12 public bool IsSelectedByMe
16 if (GameMain.NetworkMember is { IsServer: true })
18 throw new Exception(
"CircuitBoxSelectable.IsSelectedByMe should never be used by the server.");
21 if (
Character.Controlled is { } controlled)
23 return SelectedBy == controlled.ID;
30 public void SetSelected(Option<ushort> selectedBy)
32 if (selectedBy.TryUnwrap(out ushort
id))
@ Character
Characters only