mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
61 lines
1.1 KiB
C#
Executable File
61 lines
1.1 KiB
C#
Executable File
using System;
|
|
using System.IO;
|
|
|
|
namespace AMXXRelease
|
|
{
|
|
/// <summary>
|
|
/// Summary description for ModCstrike.
|
|
/// </summary>
|
|
public class ModCstrike : AMod
|
|
{
|
|
public ModCstrike()
|
|
{
|
|
AddModules();
|
|
AddPlugins();
|
|
}
|
|
|
|
public override sealed string GetName()
|
|
{
|
|
return "cstrike";
|
|
}
|
|
|
|
private void AddPlugins()
|
|
{
|
|
AddPlugin("miscstats");
|
|
AddPlugin("stats_logging");
|
|
AddPlugin("statsx");
|
|
AddPlugin("restmenu");
|
|
|
|
Plugin csstats = new Plugin("csstats");
|
|
csstats.outdir = "data";
|
|
m_Plugins.Add(csstats);
|
|
}
|
|
|
|
public override sealed bool CopyExtraFiles(ABuilder ab, string basedir, string source)
|
|
{
|
|
|
|
if (System.Environment.OSVersion.Platform == System.PlatformID.Unix)
|
|
{
|
|
} else {
|
|
File.Copy(source + "\\dlls\\cstrike\\csx\\msvc10\\Release\\WinCSX.exe",
|
|
basedir + "\\data\\WinCSX.exe",
|
|
true);
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
private void AddModules()
|
|
{
|
|
Module csx = new Module("csx");
|
|
csx.sourcedir = "dlls\\cstrike\\csx";
|
|
|
|
Module cstrike = new Module("cstrike");
|
|
cstrike.sourcedir = "dlls\\cstrike\\cstrike";
|
|
|
|
m_Modules.Add(csx);
|
|
m_Modules.Add(cstrike);
|
|
}
|
|
}
|
|
}
|