Example #1
0
        protected override /*name:systemComponentsName*/ GenTemplateSystemComponents /*endname*/ GetEntityComponents(/*name:systemComponentsName*/ GenTemplateSystemComponents /*endname*/ components, UID entity)
        {
/*block:getComponent*/ components./*name:sysCompName*/ templateComponent /*endname*/ = GetComponent </*name:componentName*/ GenTemplateComponent /*endname*/>(entity);
/*endblock:getComponent*/
/*block:rip*/ components.comp2 = GetComponent <GenTemplateComponent2>(entity);          /*endblock:rip*/
            return(components);
        }
Example #2
0
 /// <summary>
 /// Called for every valid entity that was updated or just registered with the system.
 /// </summary>
 /// <param name="components"></param>
 protected override void EntityUpdated(ref /*name:systemComponentsName*/ GenTemplateSystemComponents /*endname*/ components)
 {
     base.EntityUpdated(ref components);
 }
Example #3
0
        /// <summary>
        /// Called for every single valid element by base.ProcessAll(dt)
        /// </summary>
        /// <param name="index"></param>
        /// <param name="deltaTime"></param>
        protected override void ProcessAtIndex(int index, float deltaTime)
        {
            /*name:systemComponentsName*/ GenTemplateSystemComponents /*endname*/ components = componentsToProcess[index];

            // add the system-logic here
        }