Monstrofil / replays_unpack

51 stars 19 forks source link

Added Version packet and a way to subscribe to nested property changes. #24

Closed imkindaprogrammermyself closed 2 years ago

imkindaprogrammermyself commented 2 years ago

Subscribing to nested property can be done with: Entity.subscribe_nested_property_change(Entity_name, property_path, func) Entity.subscribe_nested_property_change('BattleLogic', 'state.controlPoints', lambda *arg, **kwargs: print(arg, kwargs)) {'position': [0.0, -0.0001983642578125], 'radius': 151.0, 'innerRadius': 0.0,....

This will pass the property's value to the function.

nickntg commented 2 years ago

@Monstrofil I might be wrong, but I think part of this PR was lost with the 0.11.7 update.