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[7]; folders[0] = "bin"; folders[1] = "plugins/disabled"; folders[2] = "configs"; folders[3] = "translations"; folders[4] = "logs"; folders[5] = "extensions"; folders[6] = "scripting/include"; 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); string [] plugin_omits = new string[1]; plugin_omits[0] = "spcomp.exe"; builder.CopyFolder(this, "plugins", "scripting", plugin_omits); builder.CopyFolder(this, "plugins/include", "scripting/include", null); builder.CopyFolder(this, "translations", "translations", null); builder.CopyFolder(this, "public/licenses", null, null); } /** * Called to build libraries */ public override Library [] GetLibraries() { Library [] libs = new Library[5]; for (int i=0; i