Exemplo n.º 1
0
        public static void Remove(Designator_Blueprint designator, bool removeFromDisk)
        {
            _blueprints.Remove(designator.Blueprint);
            _designators.Remove(designator);

            if (removeFromDisk)
            {
                DeleteXML(designator.Blueprint);
            }
        }
Exemplo n.º 2
0
        public static void Add(Blueprint blueprint, bool init = false)
        {
            if (!init && !_initialized)
            {
                Initialize();
            }
            _blueprints.Add(blueprint);
            var designator = new Designator_Blueprint(blueprint);

            _designators.Add(designator);

            // select the new designator
            Find.DesignatorManager.Select(designator);
        }
Exemplo n.º 3
0
        public static void Remove(Designator_Blueprint designator, bool removeFromDisk)
        {
            if (!Instance._initialized)
            {
                Initialize();
            }

            Instance._blueprints.Remove(designator.Blueprint);
            Instance._designators.Remove(designator);

            if (removeFromDisk)
            {
                DeleteXML(designator.Blueprint);
            }
        }
Exemplo n.º 4
0
        public static void Add(Blueprint blueprint)
        {
            if (!Instance._initialized)
            {
                Initialize();
            }

            Instance._blueprints.Add(blueprint);

            var designator = new Designator_Blueprint(blueprint);

            Instance._designators.Add(designator);

            // select the new designator
            Find.DesignatorManager.Select(designator);
        }