Entities are references using a format of "'$eid:...'".
For example, an entity with id 2 would be references as "'$eid:2'".
This specific pattern is handled specifically by both the importer, the
exporter and the minds themselves, allowing for entities to be properly
restored with correct minds.
Since the type default values aren't sent anymore, we need to check the
types for transient properties when we want to ignore such entities
during export.
We first check if there's any non-transient entity apart from the root
world. If so, the world is already is populated and we won't import;
unless the user supplied either the flag "--clean" which will reset the
world, or "--merge" which will try to merge the entities in the
specified file with the content of the server. Note that the "merge"
strategy in most cases will create duplicates of any existing entity.
Only send Set operations which update those attributes once all entities
have been properly created on the server, and we know their ids.
This, together with other $eid fixes in cyexport, fixes the issue with
wielded and worn entities not properly being restored.
This uses the same importing code as Ember, and allows for import of
both entities, minds and types. The code in EntityImporterBase.*
should be kept synchronized with the Ember version.
This is provided as a new command, instead of added to the existing
cycmd executable. This is by design, to make it easier for users.
Export and import of entities are one of the most basic functions,
especially for any new user, and should therefore be provided as easy as
possible.
This uses the same exporting code as Ember, and allows for export of
both entities, minds and types. The code in EntityExporterBase.* should
be kept synchronized with the Ember version.
This is provided as a new command, instead of added to the existing
cycmd executable. This is by design, to make it easier for users. Export
and import of entities are one of the most basic functions, especially
for any new user, and should therefore be provided as easy as
possible.