- Created AdvancedLoggingExample class demonstrating composite and file loggers - Implemented multi-file logging setup with separate error and full logs - Added game event and performance logging methods - Included key input handling for log operations (flush, clear) - Setup proper resource disposal on application quit
21 lines
519 B
C#
21 lines
519 B
C#
using System.Collections.Generic;
|
|
|
|
[System.Serializable]
|
|
public class SettingOption
|
|
{
|
|
public string settingName;
|
|
public List<string> options;
|
|
public int chosenIndex;
|
|
public int defaultIndex;
|
|
|
|
|
|
public SettingOption(string settingName, List<string> options, int defaultIndex)
|
|
{
|
|
this.settingName = settingName;
|
|
this.options = options;
|
|
this.defaultIndex = defaultIndex;
|
|
this.chosenIndex = defaultIndex;
|
|
}
|
|
public string ChosenOption => options[chosenIndex];
|
|
}
|