File size: 750 Bytes
24b81cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifdef GAME_TEMPLATE

class Settings
{
	static void		OnChange(string variableName) {}
	static void 	OnAnyChange() {}	
	static void 	OnLoad() {}
	static void 	OnSave() {}
	static void 	OnReset() {}
	static void 	OnRevert() {}
	static void 	OnApply() {}
	
	private void Settings() {}
	private void ~Settings() {}
};

class GameSettings: Settings
{
	[Attribute("false", "checkbox", "Is debug mode enabled")]
	static bool Debug;
	
	override static void OnAnyChange() 
	{
		GetGame().SetDebug(Debug);
	}
}

class SettingsMenu: MenuBase
{
	proto native external bool AddSettings(typename settingsClass);	
	proto native void Save();	
	proto native void Reset();
	proto native void Revert();
	proto native void Apply();
	proto native void Back();
};
#endif