示例#1
0
 static void doit_DMSciAnimGenStuff()
 {
     DMM_SciAnimGenericStuff = new DMagic_SciAnimGenFactory();
     if (DMM_SciAnimGenericStuff != null)
     {
         string ver = GetAssemblyInfo.GetVersionStringFromAssembly("DMModuleScienceAnimateGeneric");
         if (String.Compare(ver, "0.23") < 0)
         {
             Log.Error("Old version of DMModuleScienceAnimateGeneric installed, disabling any references to that");
             DMM_SciAnimGenericStuff         = null;
             _dmagicSciAnimateGenIsInstalled = false;
         }
         else
         {
             Log.Info("DMModuleScienceAnimateGeneric version: " + GetAssemblyInfo.GetVersionStringFromAssembly("DMModuleScienceAnimateGeneric"));
         }
     }
 }
 internal DMagic_SciAnimGenFactory()
 {
     fetch = this;
     _tDMModuleScienceAnimate        = DMagicFactory.getType("DMagic.Part_Modules.DMModuleScienceAnimate");
     _tDMModuleScienceAnimateGeneric = DMagicFactory.getType("DMModuleScienceAnimateGeneric_NM.DMModuleScienceAnimateGeneric");
 }