private int subLogEnumToInt(E_SubLogTarget subLogSelection) { switch (subLogSelection) { case E_SubLogTarget._default: return(-1); default: return((int)subLogSelection); } }
public string getGameLog(E_SubLogTarget subLogSelection) { return(getGameLog(subLogEnumToInt(subLogSelection))); }
/* * Add a new log-entry for this game, if the logger is not locked. * 'subLogSelection' lets the designer select the target sub log. -1 for using default log system. */ public void addGameLog(string log, E_SubLogTarget subLogSelection) { //Debug.Log("Adding to '" + subLogSelection.ToString() + "' (" + ((int)subLogSelection).ToString() + "):" + log); addGameLog(log, subLogEnumToInt(subLogSelection)); }