public static void AddIntegerParameter(this Node node, int index, string identifier, EmberPlusProvider provider, int min, int max, bool isWriteable, int value = 0, string description = "")
 {
     NodeAsserter.AssertIdentifierValid(identifier);
     new IntegerParameter(index, node, identifier, provider.dispatcher, min, max, isWriteable)
     {
         Value = value, Description = description
     };
 }
 public static void AddBooleanParameter(this Node node, int index, string identifier, EmberPlusProvider provider, bool isWriteable, bool value = false, string description = "")
 {
     NodeAsserter.AssertIdentifierValid(identifier);
     new BooleanParameter(index, node, identifier, provider.dispatcher, isWriteable)
     {
         Value = value, Description = description
     };
 }
Exemple #3
0
 public EmberNode AddSubNode(int index, string identifier)
 {
     NodeAsserter.AssertIdentifierValid(identifier);
     return(new EmberNode(index, this, identifier, Provider));
 }
 public static void AddFunction(this Node node, int index, string identifier, Tuple <string, int>[] arguments, Tuple <string, int>[] result, Func <GlowValue[], Task <GlowValue[]> > coreFunc)
 {
     NodeAsserter.AssertIdentifierValid(identifier);
     new Function(index, node, identifier, arguments, result, coreFunc);
 }
 public static EmberNode AddSubNode(this Node node, int index, string identifier, EmberPlusProvider provider)
 {
     NodeAsserter.AssertIdentifierValid(identifier);
     return(new EmberNode(index, node, identifier, provider));
 }