Example #1
0
    private int subLogEnumToInt(E_SubLogTarget subLogSelection)
    {
        switch (subLogSelection)
        {
        case E_SubLogTarget._default:
            return(-1);

        default:
            return((int)subLogSelection);
        }
    }
Example #2
0
 public string getGameLog(E_SubLogTarget subLogSelection)
 {
     return(getGameLog(subLogEnumToInt(subLogSelection)));
 }
Example #3
0
 /*
  * 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));
 }