protected T ConstructComponent <T, TT>(Entity master, EntityReferences references, TT data) where T : EntityComponent, new() where TT : EntityComponentData { T component = new T(); component.Construct(master, references, data); return(component); }
public virtual void Construct(Entity master, EntityReferences references, EntityComponentData data) { this.master = master; this.references = references; this._data = data; OnConstruct(); }
public override EntityComponent ConstructComponent(Entity master, EntityReferences references) { return(ConstructComponent <EntityEnemyController, EntityEnemyControllerData>(master, references, this)); }
public override EntityComponent ConstructComponent(Entity master, EntityReferences references) { return(ConstructComponent <EntityStats, EntityStatsData>(master, references, this)); }
public abstract EntityComponent ConstructComponent(Entity master, EntityReferences references);