コード例 #1
0
        public static void Remove(Designator_Blueprint designator, bool removeFromDisk)
        {
            _blueprints.Remove(designator.Blueprint);
            _designators.Remove(designator);

            if (removeFromDisk)
            {
                DeleteXML(designator.Blueprint);
            }
        }
コード例 #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);
        }
コード例 #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);
            }
        }
コード例 #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);
        }