Exemple #1
0
 public override void Initialise(MHParseNode p, MHEngine engine)
 {
     base.Initialise(p, engine); // Target
     m_EventSource.Initialise(p.GetArgN(1), engine);
     m_EventType = p.GetArgN(2).GetEnumValue();
     if (p.GetArgCount() >= 4)
     {
         // TODO: We could check here that we only have bool, int or string and not object ref or content ref.
         m_EventData.Initialise(p.GetArgN(3), engine);
     }
 }
Exemple #2
0
        public override void Initialise(MHParseNode p, MHEngine engine)
        {
            base.Initialise(p, engine);                   // Target
            m_Succeeded.Initialise(p.GetArgN(1), engine); // Call/fork succeeded flag
            // Arguments.
            MHParseNode args = p.GetArgN(2);

            for (int i = 0; i < args.GetSeqCount(); i++)
            {
                MHParameter pParm = new MHParameter();
                m_Parameters.Append(pParm);
                pParm.Initialise(args.GetSeqN(i), engine);
            }
        }
 public override void Initialise(MHParseNode p, MHEngine engine)
 {
     base.Initialise(p, engine);                  // Target
     m_NewValue.Initialise(p.GetArgN(1), engine); // Value to store
 }
 public override void Initialise(MHParseNode p, MHEngine engine)
 {
     base.Initialise(p, engine);                    // Target
     m_nOperator = p.GetArgN(1).GetIntValue();      // Test to perform
     m_Comparison.Initialise(p.GetArgN(2), engine); // Value to compare against
 }