Beispiel #1
0
 public statType(string name, string moduleType, Color c, stats.displaymode displayMode = stats.displaymode.line, stats.statmode statMode = stats.statmode.increment)
 {
     this.name = name;
     this.moduleType = moduleType;
     this.displayMode = displayMode;
     this.statMode = statMode;
 }
Beispiel #2
0
 public void updateDisplaySettings(Color c, stats.displaymode displayMode = stats.displaymode.line, stats.statmode statMode = stats.statmode.increment)
 {
     this.c = c;
     this.displayMode = displayMode;
     this.statMode = statMode;
 }
Beispiel #3
0
 public void registerStatType(string name, Type moduleType, Color c, stats.displaymode displayMode = stats.displaymode.line, stats.statmode statMode = statmode.increment )
 {
     statType existing = getStatType(name, moduleType.ToString());
     if (existing != null)
     {
         Roboto.log.log("Registering StatType " + name + " from " + moduleType.ToString() + ":  already exists.", logging.loglevel.normal);
         existing.updateDisplaySettings(c, displayMode, statMode);
     }
     else
     {
         statType newST = new statType(name, moduleType.ToString(), c, displayMode, statMode);
         statsList.Add(newST);
         Roboto.log.log("Registering StatType " + name + " from " + moduleType.ToString() + " added.", logging.loglevel.warn);
     }
 }