Ejemplo n.º 1
0
        public void RemoveMod(GlobalStructureMod mod)
        {
            _mods.Remove(mod);

            foreach (Structure structure in StructureManager.GetStructures())
            {
                RemoveMod(structure, mod);
            }
        }
Ejemplo n.º 2
0
        public void AddMod(GlobalStructureMod mod)
        {
            _mods.Add(mod);

            foreach (Structure structure in StructureManager.GetStructures())
            {
                ApplyMod(structure, mod);
            }
        }
        public void AddTo(Structure structure, GlobalStructureMod mod)
        {
            mod.TryApply(structure);
            TurretAssembly assembly = structure as TurretAssembly;

            foreach (var component in assembly.GetComponents())
            {
                mod.TryApply(component);
            }
        }
        public void RemoveFrom(Structure structure, GlobalStructureMod mod)
        {
            mod.RemoveFrom(structure);
            TurretAssembly assembly = structure as TurretAssembly;

            foreach (var component in assembly.GetComponents())
            {
                mod.RemoveFrom(component);
            }
        }
Ejemplo n.º 5
0
 public void AddTo(Structure structure, GlobalStructureMod mod)
 {
     mod.TryApply(structure);
 }
Ejemplo n.º 6
0
 public void RemoveFrom(Structure structure, GlobalStructureMod mod)
 {
     mod.RemoveFrom(structure);
 }
Ejemplo n.º 7
0
 private void ApplyMod(Structure obj, GlobalStructureMod mod)
 {
     GetModder(obj).AddTo(obj, mod);
 }
Ejemplo n.º 8
0
 private void RemoveMod(Structure obj, GlobalStructureMod mod)
 {
     GetModder(obj).RemoveFrom(obj, mod);
 }