/// <summary> /// RegisterCommand generic method /// </summary> /// <author>ALVES Quentin</author> /// <note>Run current Aurora repler editor instance</note> /// <typeparam name="T" >Type that store command code</typeparam> /// <param name="flags" >Flags that defined the visibility of command</param> public void RegisterCommand <T>(BindingFlags flags) => this.commands.Concat(AttributeHelper.ExtractAttributeMetaOf <T, ReplCommand, ReplCommandMeta>(flags));
/// <summary> /// RegisterControl generic method /// </summary> /// <author>ALVES Quentin</author> /// <note>Run current Aurora repler editor instance</note> /// <typeparam name="T" >Type that store control code</typeparam> /// <param name="flags" >Flags that defined the visibility of control</param> public void RegisterControl <T>(BindingFlags flags) => this.controls.Concat(AttributeHelper.ExtractAttributeMetaOf <T, ReplControl, ReplControlMeta>(flags));