Table of Contents

Interface IInitable

Namespace
Frent.Components
Assembly
Frent.dll

Marks a component to have a Init(Entity) method to be called at the start of a component lifetime.

public interface IInitable : IComponentBase

Methods

Init(Entity)

This method is called whenever a component begins its lifetime, whether by any Add<T>(in T) method or any Create<T>(in T) method (but not CreateMany<T>(int)).

void Init(Entity self)

Parameters

self Entity

The Entity this component belongs to.