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); } }
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); } }