You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the most natural way to deep copy is to create a state object and then instantiate a new instance from the state. Eg. new_player = Player.from_state(orig_player.state). This creates a state dictionary for everything that needs to be copied (eg. every shop slot, every team slot, etc.). Copy methods are a much more efficient way of providing this functionality.
The text was updated successfully, but these errors were encountered:
Currently, the most natural way to deep copy is to create a state object and then instantiate a new instance from the state. Eg.
new_player = Player.from_state(orig_player.state)
. This creates a state dictionary for everything that needs to be copied (eg. every shop slot, every team slot, etc.). Copy methods are a much more efficient way of providing this functionality.The text was updated successfully, but these errors were encountered: