implement map and gametype command
This commit is contained in:
@ -7,6 +7,7 @@ namespace SharedLibraryCore.Configuration
|
||||
public string[] AutoMessages { get; set; }
|
||||
public string[] GlobalRules { get; set; }
|
||||
public MapConfiguration[] Maps { get; set; }
|
||||
public GametypeConfiguration[] Gametypes { get; set; }
|
||||
public QuickMessageConfiguration[] QuickMessages {get; set;}
|
||||
public string[] DisallowedClientNames { get; set; }
|
||||
public GameStringConfiguration GameStrings { get; set; }
|
||||
|
8
SharedLibraryCore/Configuration/GametypeConfiguration.cs
Normal file
8
SharedLibraryCore/Configuration/GametypeConfiguration.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace SharedLibraryCore.Configuration
|
||||
{
|
||||
public class GametypeConfiguration
|
||||
{
|
||||
public Server.Game Game { get; set; }
|
||||
public Gametype[] Gametypes { get; set; }
|
||||
}
|
||||
}
|
@ -1,16 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using static SharedLibraryCore.Server;
|
||||
|
||||
namespace SharedLibraryCore.Configuration
|
||||
namespace SharedLibraryCore.Configuration
|
||||
{
|
||||
public class MapConfiguration
|
||||
{
|
||||
public Game Game { get; set; }
|
||||
public List<Map> Maps { get; set; }
|
||||
public Server.Game Game { get; set; }
|
||||
public Map[] Maps { get; set; }
|
||||
}
|
||||
}
|
||||
|
8
SharedLibraryCore/Game/Gametype.cs
Normal file
8
SharedLibraryCore/Game/Gametype.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace SharedLibraryCore
|
||||
{
|
||||
public class Gametype
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Alias { get; set; }
|
||||
}
|
||||
}
|
10
SharedLibraryCore/Game/Map.cs
Normal file
10
SharedLibraryCore/Game/Map.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace SharedLibraryCore
|
||||
{
|
||||
public class Map
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Alias { get; set; }
|
||||
|
||||
public override string ToString() => Alias;
|
||||
}
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace SharedLibraryCore
|
||||
{
|
||||
public class Map
|
||||
{
|
||||
public String Name { get; set; }
|
||||
public String Alias { get; set; }
|
||||
|
||||
public override string ToString() => Alias;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user