Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(agent): All inaccessible data is scrubbed from InstanceAgents before each player command #56

Merged
merged 6 commits into from
Oct 30, 2018

Conversation

jcowman2
Copy link
Contributor

Changes

  • Added scrubAgents function, which deletes all agents that are not part of the reference tree starting at the GameInstance's state
  • scrubAgents is called from Game.postPlayerCommand, after the instance is cycled but before the command is executed.

Related Issues

@jcowman2 jcowman2 added this to the 0.4.0 milestone Oct 30, 2018
@jcowman2 jcowman2 merged commit 4cad6dd into 0.x Oct 30, 2018
@jcowman2 jcowman2 deleted the fix/47-scrub-agent branch October 30, 2018 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant