2005-08-24 03:13:57 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections;
|
|
|
|
|
|
|
|
namespace AMXXRelease
|
|
|
|
{
|
|
|
|
//Class that iterates the different pieces
|
|
|
|
// to be completed over for the build
|
|
|
|
public class Build
|
|
|
|
{
|
|
|
|
protected ArrayList m_Mods;
|
2006-09-03 03:48:54 +00:00
|
|
|
protected Config m_Cfg;
|
2005-08-24 03:13:57 +00:00
|
|
|
|
2006-09-03 03:48:54 +00:00
|
|
|
public Build(Config cfg)
|
2005-08-24 03:13:57 +00:00
|
|
|
{
|
|
|
|
m_Mods = new ArrayList();
|
2006-09-03 03:48:54 +00:00
|
|
|
m_Cfg = cfg;
|
2005-08-24 03:13:57 +00:00
|
|
|
|
|
|
|
CoreMod core = new CoreMod();
|
2005-08-24 06:56:02 +00:00
|
|
|
ModCstrike cstrike = new ModCstrike();
|
2007-08-03 17:17:54 +00:00
|
|
|
ModDoD dod = new ModDoD();
|
|
|
|
ModTFC tfc = new ModTFC();
|
|
|
|
|
2013-02-13 07:14:37 +00:00
|
|
|
m_Mods.Add(core);
|
|
|
|
m_Mods.Add(cstrike);
|
2007-08-03 17:17:54 +00:00
|
|
|
m_Mods.Add(dod);
|
|
|
|
m_Mods.Add(tfc);
|
2013-02-13 07:14:37 +00:00
|
|
|
|
|
|
|
// These mods don't have OS X builds
|
|
|
|
if (!Releaser.IsOSX)
|
|
|
|
{
|
|
|
|
ModEsf esf = new ModEsf();
|
|
|
|
ModNs ns = new ModNs();
|
|
|
|
ModTs ts = new ModTs();
|
|
|
|
|
|
|
|
m_Mods.Add(esf);
|
|
|
|
m_Mods.Add(ns);
|
|
|
|
m_Mods.Add(ts);
|
|
|
|
}
|
2005-08-24 03:13:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public virtual int GetMods()
|
|
|
|
{
|
|
|
|
return m_Mods.Count;
|
|
|
|
}
|
|
|
|
|
|
|
|
public virtual AMod GetMod(int i)
|
|
|
|
{
|
|
|
|
return (AMod)m_Mods[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|