I have 2 object types, A and B, and both have an instance variable called matchID.
At certain points in the game, every B instance should be destroyed if there isn't an A instance whose matchID equals B.matchID.
Here’s my pseudocode:
- IF there is a B instance whose matchID instance variable does not equal the matchID instance variable of any A instances, THEN Destroy B instance
What’s a clean way to implement this with C3? I'm probably overthinking this but I cant come up with something elegant.
Thanks