public Statement(Parser yyp, StateChange sc) : base(((LSLSyntax )yyp)) { kids.Add(sc); }
/// <summary> /// Generates the code for a StateChange node. /// </summary> /// <param name="sc">The StateChange node.</param> /// <returns>String containing C# code for StateChange sc.</returns> private string GenerateStateChange(StateChange sc) { return Generate("m_scriptWrapper.CallApiMethod(\"state\", new object[] { \"" + sc.NewState + "\" });", sc); }