protected override void AddingEngine(IEngine engine) { base.AddingEngine(engine); Family = engine.AddFamily <TFamilyMember>(); Family.AddListener <IFamilyMemberAddMessage <TFamilyMember> >(MemberAdded); Family.AddListener <IFamilyMemberRemoveMessage <TFamilyMember> >(MemberRemoved); foreach (var member in Family.Members) { MemberAdded(Family, member); } }