using System; namespace builder { public class PkgCore : Package { public PkgCore() { } public override string GetBaseFolder() { return "base/addons/sourcemod"; } public override void GetCompressBases(ref string path, ref string folder) { path = "base"; folder = "addons"; } public override string GetPackageName() { return "sourcemod-core"; } /** * Must return the list of folders to create. */ public override string [] GetFolders() { string [] folders = new string[11]; folders[0] = "bin"; folders[1] = "plugins/disabled"; folders[2] = "gamedata"; folders[3] = "configs/geoip"; folders[4] = "translations"; folders[5] = "logs"; folders[6] = "extensions"; folders[7] = "data"; folders[8] = "scripting/include"; folders[9] = "scripting/admin-flatfile"; folders[10] = "scripting/testsuite"; return folders; } /** * Called when file to file copies must be performed */ public override void OnCopyFiles(ABuilder builder) { } /** * Called when dir to dir copies must be performed */ public override void OnCopyFolders(ABuilder builder) { builder.CopyFolder(this, "configs", "configs", null); builder.CopyFolder(this, "configs/geoip", "configs/geoip", null); string [] plugin_omits = new string[1]; plugin_omits[0] = "spcomp.exe"; string [] include_omits = new string[1]; include_omits[0] = "version.tpl"; builder.CopyFolder(this, "gamedata", "gamedata", null); builder.CopyFolder(this, "plugins", "scripting", plugin_omits); builder.CopyFolder(this, "plugins/include", "scripting/include", include_omits); builder.CopyFolder(this, "translations", "translations", null); builder.CopyFolder(this, "public/licenses", null, null); builder.CopyFolder(this, "plugins/admin-flatfile", "scripting/admin-flatfile", null); builder.CopyFolder(this, "plugins/testsuite", "scripting/testsuite", null); } /** * Called to build libraries */ public override Library [] GetLibraries() { Library [] libs = new Library[7]; for (int i=0; i