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

Per-type pointer checking #428

Closed
kezz opened this issue Aug 26, 2021 · 0 comments · Fixed by #429
Closed

Per-type pointer checking #428

kezz opened this issue Aug 26, 2021 · 0 comments · Fixed by #429

Comments

@kezz
Copy link
Member

kezz commented Aug 26, 2021

Whilst implementing the pointer system in various platforms, it became clear that the system creates a considerable amount of duplicated objects that perform identical functions.

Taking Paper's implementation as an example, each Player object will hold a Pointers object that delegates to the same set of functions, regardless of the player.

A per-type pointer registry system could alleviate this issue by registering a type with one pointer that provides data from pointers when given a specific instance of an object.

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

Successfully merging a pull request may close this issue.

2 participants