Difference between revisions of "LS2:LavishScript2.Module (Type)"

From ismods.com: dedicated to promoting white hat, EULA-compliant Inner Space and LavishScript mods
Jump to: navigation, search
 
Line 1: Line 1:
An [[LS2:LS2.Module (Type)|LS2.Module]] describes an available [[LS2:Module|Module]].
+
A [[LS2:LavishScript2.Module (Type)|LavishScript2.Module]] describes an available [[LS2:Module|Module]].
  
== Properties ==
+
== C# Declaration ==
* [[LS2:String (Type)|String]] Name
+
  namespace LavishScript2
* [[LS2:Integer (Type)|Integer]] IsStarted
+
  {
 
+
    public class Module
== Methods ==
+
    {
* Start(...)
+
        public string Name { get; }
* Stop()
+
        public string Filename { get; }
 
+
        public bool IsStarted { get; }
== Static Methods ==
+
* [[LS2:LS2.Module (Type)|LS2.Module]] Get([[LS2:String (Type)|String]] name)
+
        public void Start();
* [[LS2:LS2.Module (Type)|LS2.Module]] Register([[LS2:String (Type)|String]] name, [[LS2:String (Type)|String]] filename)
+
        public void Start(params object[] parameters_to_module_init);
 
+
        public void Stop();
== Static Properties ==
+
* [[LS2:Array (Type)|Array]] AllModules
+
        public static Module Register(string module_name, string file_name);
 +
        public static Module Get(string name);
 +
        public static void Unregister(string module_name);
 +
 +
        public static Module[] AllModules { get; }
 +
    }
 +
  }
  
 
[[Category:LavishScript 2]]
 
[[Category:LavishScript 2]]
 
[[Category:LS2 Types]]
 
[[Category:LS2 Types]]

Latest revision as of 22:30, 24 November 2012

A LavishScript2.Module describes an available Module.

C# Declaration

 namespace LavishScript2
 {
   public class Module
   {
       public string Name { get; }
       public string Filename { get; }
       public bool IsStarted { get; }

       public void Start();
       public void Start(params object[] parameters_to_module_init);
       public void Stop();

       public static Module Register(string module_name, string file_name);
       public static Module Get(string name);
       public static void Unregister(string module_name);

       public static Module[] AllModules { get; }
   }
 }