annotation Entitas::PostConstructor

Overview

Used to declare if a method should be called at the end of initializing a new Entitas::Contexts, Entitas::Context or Entitas::Entity

def Entitas::Contexts
  @[Entitas::PostConstructor]
  def call_me_after_init
    # do something
  end
end

Defined in:

entitas/annotations.cr