amethyst / amethyst/editor-core

Create and destroy entities at runtime

Offen
#29 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement good first issue
Vorherrschende Sprache
Rust
Sterne
45
Forks
8
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Add support for allowing the editor to request that a new entity be added to the game world.

* Add a new variant to `IncomingMessage` called `CreateEntities` for requesting that an entity be created. The variant should carry a field specifying how many entities should be created.
* Add a new field to outgoing messages `"created_entities"` that is a list of any entities that were just created at the request of the editor.
* The list of new entities should be sent as soon as the entities are created, ideally on the same frame.
* The list of new entities should only be sent once.

Similarly, to support destroying entities at runtime we'll need to add a variant to `IncomingMessage` called `DestroyEntities` that takes a list of entities to be destroyed. The list of destroyed entities does not need to be sent back to the editor, though.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.