Пример #1
0
        public static SolarSystem InvokeCreate(string typ)
        {
            SolarSystem si = StructXml.CreateInstanceFromType(typ) as SolarSystem;

            if (si == null)
            {
                return(new SolarSystem());
            }
            else
            {
                return(si);
            }
        }
Пример #2
0
        public static GuiMenu InvokeCreate(string typ)
        {
            GuiMenu mnu = StructXml.CreateInstanceFromType(typ) as GuiMenu;

            if (mnu == null)
            {
                return(new GuiMenu());
            }
            else
            {
                return(mnu);
            }
        }
Пример #3
0
        public static StationModuleBase InvokeCreate(string typ)
        {
            StationModuleBase si = StructXml.CreateInstanceFromType(typ) as StationModuleBase;

            if (si == null)
            {
                return(new StationModuleBase());
            }
            else
            {
                return(si);
            }
        }
Пример #4
0
        public static WorkTeamBase InvokeCreate(string typ)
        {
            WorkTeamBase si = StructXml.CreateInstanceFromType(typ) as WorkTeamBase;

            if (si == null)
            {
                return(new WorkTeamBase());
            }
            else
            {
                return(si);
            }
        }
Пример #5
0
        public static GuiButtonParam InvokeCreate(string typ)
        {
            GuiButtonParam si = StructXml.CreateInstanceFromType(typ) as GuiButtonParam;

            if (si == null)
            {
                return(new GuiButtonParamDoNothing());
            }
            else
            {
                return(si);
            }
        }
Пример #6
0
        public static GuiButtonInfo InvokeCreate(string typ)
        {
            GuiButtonInfo si = StructXml.CreateInstanceFromType(typ) as GuiButtonInfo;

            if (si == null)
            {
                return(new GuiButtonInfo());
            }
            else
            {
                return(si);
            }
        }