Skip to content
New issue

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

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

Already on GitHub? # to your account

Pooled entities do not parse data #1349

Open
AlmasB opened this issue Feb 24, 2024 · 0 comments
Open

Pooled entities do not parse data #1349

AlmasB opened this issue Feb 24, 2024 · 0 comments
Assignees

Comments

@AlmasB
Copy link
Owner

AlmasB commented Feb 24, 2024

In fun create(entityName: String, data: SpawnData): Entity in GameWorld, the implementation is:

        if (pooledEntity != null) {
            pooledEntity.setPosition3D(data.x, data.y, data.z)
            
            return pooledEntity
        }

the position is reset, however, other data elements are not. Requires thinking through the specification.

@AlmasB AlmasB self-assigned this Feb 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant