コード例 #1
0
 public KSPAddonFixedCLS(KSPAddon.Startup startup, bool once, Type type)
     : base(startup, once)
 {
     this.type = type;
 }
コード例 #2
0
 public _KSPAddonImproved(KSPAddon.Startup startup, bool once, Type type)
     : base(startup, once)
 {
     this.type = type;
 }
コード例 #3
0
 public static void StartAddon(AssemblyLoader.LoadedAssembly assembly, Type addonType, KSPAddon addon, KSPAddon.Startup startup)
 {
     Method__StartAddon.Invoke(AddonLoader.Instance, new object[] { assembly, addonType, addon, startup });
 }
コード例 #4
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="startup">When this addon should be started</param>
 /// <param name="once">Whether KSP should start up your addon just once per game session, or every time
 /// the startup time is reached. If you want your addon to persist forever, even through
 /// scene changes, after being started once, set once to true. call DontDestroyOnLoad(this) in your
 /// Start() function. </param>
 public extern KSPAddon(KSPAddon.Startup startup, bool once);