Example #1
0
        public void logStat(statItem item)
        {
            statSlice slice = getSlice();

            if (statMode == stats.statmode.increment)
            {
                slice.addCount(item.items);
            }
            else if (statMode == stats.statmode.absolute)
            {
                slice.setCount(item.items);
            }
        }
Example #2
0
        public void logStat(statItem item)
        {
            statType type = getStatType(item.statTypeName, item.moduleType.ToString());

            if (type != null)
            {
                type.logStat(item);
            }
            else
            {
                Roboto.log.log("Tried to log stat " + item.statTypeName + " for " + item.moduleType + " but doesnt exist!", logging.loglevel.high);
            }
        }
Example #3
0
 public void logStat(statItem item)
 {
     statSlice slice = getSlice();
     if (statMode == stats.statmode.increment)
     {
         slice.addCount(item.items);
     }
     else if (statMode == stats.statmode.absolute)
     {
         slice.setCount(item.items);
     }
 }
Example #4
0
 public void logStat(statItem item)
 {
     statType type = getStatType(item.statTypeName, item.moduleType.ToString());
     if (type != null)
     {
         type.logStat(item);
     }
     else
     {
         Roboto.log.log("Tried to log stat " + item.statTypeName + " for " + item.moduleType + " but doesnt exist!", logging.loglevel.high);
     }
 }