Reserved Entity IdentifiersΒΆ

There are a few reserved entity identifiers.

  • container refers to the main container (imagination.core.Imagination).
  • self refers to the ID of the closest entity and is ONLY used within the context of <interception/> and <call/> (added in v2.6). For example, from an example in Method Calls on Initialization, the definition of the initial method call uses self to refer to the entity counter.
<entity id="counter" class="app.Counter">
    <!-- omitted -->
    <call method="set_counter" from="app">
        <param type="entity" name="counter">self</param><!-- NOTE "self" refers to "counter". -->
    </call>
</entity>