Exemple #1
0
 public ComponentSystem()
 {
     try
     {
         ComponentSystemAttribute attr = AttributeOf(this.GetType());
         this.SystemName       = attr.SystemName;
         this.ProcessingCycles = attr.ProcessingCycles;
         this.Watching         = attr.Watching;
         this.Listening        = attr.Listening;
     }
     catch (Exception ex)
     {
         throw new AttributeException(
                   $"Required attribute of class 'ComponentSystemAttribute' not found in derived class '{GetType()}'", ex);
     }
 }
Exemple #2
0
 public ComponentSystemAttribute(string systemName, ProcessingCycles cycles)
 {
     SystemName       = systemName;
     ProcessingCycles = cycles;
 }
Exemple #3
0
 public ComponentSystemAttribute(string systemName, ProcessingCycles cycles) : this(systemName, cycles, ProcessingFlags.None)
 {
 }