lib/demiurge/container.rb
def finished_init
      # Can't move all items inside until they all exist, which isn't guaranteed until init is finished.
      state["contents"].each do |item|
        move_item_inside(@engine.item_by_name(item))
      end
      nil
    end
# The finished_init hook is called after all items are loaded. For
# containers, this makes sure all items set as contents of this
# container also have it correctly set as their position.
#
# @return [void]
# @since 0.0.1
The finished_init hook is called after all items are loaded. For
containers, this makes sure all items set as contents of this
container also have it correctly set as their position.
The finished_init hook is called after all items are loaded . For containers this makes sure all items set as contents of this container also have it correctly set as their position .
def finished_init
      state["contents"].each do |item|
        move_item_inside(@engine.item_by_name(item))
      end
      nil
    end
def finished_init state [ "contents" ] . each do | item | move_item_inside ( @engine . item_by_name ( item ) ) end nil end
The finished_init hook is called after all items are loaded.
The finished_init hook is called after all items are loaded .
# Can't move all items inside until they all exist, which isn't guaranteed until init is finished.
None
void
since
None