PHP Code:
Install.Core InstallerCore = CoreManager.GetInstallerCore();
InstallerCore.
AddCategory(
"StandardOut",
new Install.Category("Standard Out Configuration").
AddStep("Importance",
new Install.StringStep(
"Default Importance",
"This is the minimum importance level that messages must have to be printed to standard out.",
new string[] {
"DEBUG",
"NOTICE",
"IMPORTANT",
"WARNING",
"ERROR" },
"NOTICE"))).
AddCategory(
"Database",
new Install.Category("Database Configuration").
AddStep("Host",
new Install.StringStep(
"MySQL Host",
"This is the Hostname or IP Address used to connect to the MySQL server.",
new string[] {
"localhost",
"127.0.0.1",
"db.somedomain.com"
},
"localhost")).
AddStep("Port",
new Install.UShortStep(
"MySQL Port",
"This is the Port used to connect to the MySQL server.",
new string[] {
"3306",
"12345"
},
3306)).
AddStep("Username",
new Install.StringStep(
"MySQL Username",
"This is the Username used to authenticate with the MySQL server.",
new string[] {
"ihi",
"root",
"chris"
},
"ihi")).
AddStep("Password",
new Install.PasswordStep(
"MySQL Password",
"This is the Password used to authenticate with the MySQL server.",
"ChangeMe")).
AddStep("MinimumPoolSide",
new Install.IntStep(
"MySQL Minimum Pool Side",
"This is the minimum amount of MySQL connections to maintain in the pool.",
new string[] {
"1",
"5"
},
1,
1)).
AddStep("MaximumPoolSide",
new Install.IntStep(
"MySQL Maximum Pool Side",
"This is the maximum amount of MySQL connections to maintain in the pool.",
new string[] {
"1",
"5"
},
1,
1))).
AddCategory("Network",
new Install.Category("Network").
AddStep(
"GameHost",
new Install.StringStep(
"Game Host",
"This is the host (normally an IP) to bind the listener for normal game connections.",
new string[]
{
"127.0.0.1",
"192.168.1.12",
"5.24.246.133"
},
"127.0.0.1")).
AddStep(
"GamePort",
new Install.UShortStep(
"Game Port",
"This is the port to bind the listener for normal game connections.",
new string[]
{
"14478",
"30000"
},
14478)).
AddStep(
"WebAdminPort",
new Install.UShortStep(
"WebAdmin Port",
"This is the port to bind the WebAdmin listener.",
new string[]
{
"14480",
"30002"
},
14478)));