mirror of
https://github.com/Tribufu/ServerManagers
synced 2026-08-08 12:11:05 +00:00
source code checkin
This commit is contained in:
parent
5f8fb2c825
commit
7e57b72e35
675 changed files with 168433 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
using ServerManagerTool.Common.Attibutes;
|
||||
using ServerManagerTool.Enums;
|
||||
|
||||
namespace ServerManagerTool.Lib
|
||||
{
|
||||
public class IniFileEntryAttribute : BaseIniFileEntryAttribute
|
||||
{
|
||||
public IniFileEntryAttribute(IniFiles file, IniSections section, ServerProfileCategory category, string key = "")
|
||||
: base(file, section, category, key)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
9
src/ConanServerManager/Lib/Serialization/IniFiles.cs
Normal file
9
src/ConanServerManager/Lib/Serialization/IniFiles.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace ServerManagerTool.Lib
|
||||
{
|
||||
public enum IniFiles
|
||||
{
|
||||
Engine,
|
||||
Game,
|
||||
ServerSettings,
|
||||
}
|
||||
}
|
||||
20
src/ConanServerManager/Lib/Serialization/IniSections.cs
Normal file
20
src/ConanServerManager/Lib/Serialization/IniSections.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
namespace ServerManagerTool.Lib
|
||||
{
|
||||
public enum IniSections
|
||||
{
|
||||
// Engine.ini
|
||||
Engine_OnlineSubsystem,
|
||||
Engine_OnlineSubsystemSteam,
|
||||
Engine_URL,
|
||||
|
||||
// Game.ini
|
||||
Game_GameSession,
|
||||
Game_RconPlugin,
|
||||
|
||||
// ServerSettings.ini
|
||||
ServerSettings_ServerSettings,
|
||||
|
||||
// Misc
|
||||
Custom,
|
||||
}
|
||||
}
|
||||
46
src/ConanServerManager/Lib/Serialization/SystemIniFile.cs
Normal file
46
src/ConanServerManager/Lib/Serialization/SystemIniFile.cs
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
using ServerManagerTool.Common.Serialization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ServerManagerTool.Lib
|
||||
{
|
||||
public class SystemIniFile : BaseSystemIniFile
|
||||
{
|
||||
public static readonly Dictionary<Enum, string> IniFileNames = new Dictionary<Enum, string>
|
||||
{
|
||||
{ IniFiles.Engine, Config.Default.ServerEngineConfigFile },
|
||||
{ IniFiles.Game, Config.Default.ServerGameConfigFile },
|
||||
{ IniFiles.ServerSettings, Config.Default.ServerSettingsConfigFile },
|
||||
};
|
||||
|
||||
public static readonly Dictionary<Enum, string> IniSectionNames = new Dictionary<Enum, string>
|
||||
{
|
||||
// Engine sections, used by the server manager
|
||||
{ IniSections.Engine_OnlineSubsystem, "OnlineSubsystem" },
|
||||
{ IniSections.Engine_OnlineSubsystemSteam, "OnlineSubsystemSteam" },
|
||||
{ IniSections.Engine_URL, "URL" },
|
||||
|
||||
// Engine sections, not used by server manager
|
||||
|
||||
// Game sections, used by the server manager
|
||||
{ IniSections.Game_GameSession, "/Script/Engine.GameSession" },
|
||||
{ IniSections.Game_RconPlugin, "RconPlugin" },
|
||||
|
||||
// Game sections, not used by server manager
|
||||
|
||||
// Server Settings sections, used by the server manager
|
||||
{ IniSections.ServerSettings_ServerSettings, "ServerSettings" },
|
||||
|
||||
// Server Settings sections, not used by server manager
|
||||
};
|
||||
|
||||
public override Dictionary<Enum, string> FileNames => IniFileNames;
|
||||
|
||||
public override Dictionary<Enum, string> SectionNames => IniSectionNames;
|
||||
|
||||
public SystemIniFile(string iniPath)
|
||||
: base(iniPath)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue