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

Organize / Improve object ownership #10

Open
colbybhearn opened this issue Oct 17, 2012 · 2 comments
Open

Organize / Improve object ownership #10

colbybhearn opened this issue Oct 17, 2012 · 2 comments
Assignees
Milestone

Comments

@colbybhearn
Copy link
Owner

It's useful to be able to know a client and get the objects it owns.
It's useful to be able to know an object and get the client that owns it.
It's useful to be able to know if an object is owned by anyone.
It's useful to know this information on both the client and server

Perhaps the AssetManager should be responsible for this.
Perhaps Gobjects should have an integer property OwnerClientId.

@ghost ghost assigned colbybhearn Oct 17, 2012
@Quintinon
Copy link
Collaborator

ClientObjectIds in BaseGame.cs provides some of this functionality already for both client/server. This is how the client knows which name to display above an object.

@colbybhearn
Copy link
Owner Author

Moved ClientObjectIds into AssetManager. The objectsOwnded and ClientControlledObjects in BaseGame still need to be moved into AssetManager. More work was put into making asset identification (and enumeration) easy and clean (See RoboGame.Assets)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants