Esempio n. 1
0
 public MathSystem BuildSystem()
 {
     if (!HasSystem)
     {
         Entity localEntity = entity;
         if (entity.IsGeneric)
         {
             localEntity = entity.CompileGenericEntity(1, 0);
         }
         Signal[]          inputs  = new Signal[localEntity.InputSignals.Length];
         ReadOnlySignalSet outputs = context.Builder.Functions(localEntity, inputs);
         system = new MathSystem(context);
         system.AddSignalTreeRange(outputs, true, true);
     }
     return(system);
 }
Esempio n. 2
0
        public MathSystem BuildSystem()
        {
            if (!HasSystem)
            {
                IEntity localEntity = entity;
                if (entity.IsGeneric)
                {
                    localEntity = entity.CompileGenericEntity(1, 0, null);
                }
                Signal[]          inputs  = new Signal[localEntity.InputSignals.Length];
                ReadOnlySignalSet outputs = Service <IBuilder> .Instance.Functions(localEntity, inputs);

                system = new MathSystem();
                system.AddSignalTreeRange(outputs, true, true);
            }
            return(system);
        }
 public MathSystem BuildSystem()
 {
     if(!HasSystem)
     {
         IEntity localEntity = entity;
         if(entity.IsGeneric)
             localEntity = entity.CompileGenericEntity(1,0,null);
         Signal[] inputs = new Signal[localEntity.InputSignals.Length];
         ReadOnlySignalSet outputs = Service<IBuilder>.Instance.Functions(localEntity, inputs);
         system = new MathSystem();
         system.AddSignalTreeRange(outputs, true, true);
     }
     return system;
 }
Esempio n. 4
0
 public MathSystem BuildSystem()
 {
     if(!HasSystem)
     {
         Entity localEntity = entity;
         if(entity.IsGeneric)
             localEntity = entity.CompileGenericEntity(1,0);
         Signal[] inputs = new Signal[localEntity.InputSignals.Length];
         ReadOnlySignalSet outputs = context.Builder.Functions(localEntity, inputs);
         system = new MathSystem(context);
         system.AddSignalTreeRange(outputs, true, true);
     }
     return system;
 }