public override void Initialise(MHParseNode p, MHEngine engine) { base.Initialise(p, engine); // Target MHParseNode pOp = p.GetArgN(1); m_Operand.Initialise(pOp, engine); // Operand to add, subtract etc. }
public override void Initialise(MHParseNode p, MHEngine engine) { base.Initialise(p, engine); m_Argument1.Initialise(p.GetArgN(1), engine); m_Argument2.Initialise(p.GetArgN(2), engine); m_Argument3.Initialise(p.GetArgN(3), engine); m_Argument4.Initialise(p.GetArgN(4), engine); }
public override void Initialise(MHParseNode p, MHEngine engine) { base.Initialise(p, engine); // Target MHParseNode pContent = p.GetArgN(1); if (pContent.NodeType == MHParseNode.PNSeq) { // Referenced content. m_fIsIncluded = false; m_fSizePresent = m_fCCPriorityPresent = false; m_Referenced.Initialise(pContent.GetSeqN(0), engine); if (pContent.GetSeqCount() > 1) { MHParseNode pArg = pContent.GetSeqN(1); if (pArg.NodeType == MHParseNode.PNTagged && pArg.GetTagNo() == ASN1Codes.C_NEW_CONTENT_SIZE) { MHParseNode pVal = pArg.GetArgN(0); // It may be NULL as a place-holder if (pVal.NodeType == MHParseNode.PNInt) { m_fSizePresent = true; m_ContentSize.Initialise(pVal, engine); } } } if (pContent.GetSeqCount() > 2) { MHParseNode pArg = pContent.GetSeqN(2); if (pArg.NodeType == MHParseNode.PNTagged && pArg.GetTagNo() == ASN1Codes.C_NEW_CONTENT_CACHE_PRIO) { MHParseNode pVal = pArg.GetArgN(0); if (pVal.NodeType == MHParseNode.PNInt) { m_fCCPriorityPresent = true; m_CCPriority.Initialise(pVal, engine); } } } } else { m_Included.Initialise(pContent, engine); m_fIsIncluded = true; } }
public override void Initialise(MHParseNode p, MHEngine engine) { base.Initialise(p, engine); m_TimerId.Initialise(p.GetArgN(1), engine); // The timer id if (p.GetArgCount() > 2) { MHParseNode pNewTimer = p.GetArgN(2); m_TimerValue.Initialise(pNewTimer.GetSeqN(0), engine); if (pNewTimer.GetSeqCount() > 1) { m_TimerType = ST_TimerAbsolute; // May be absolute - depends on the value. m_AbsFlag.Initialise(pNewTimer.GetSeqN(1), engine); } else { m_TimerType = ST_TimerRelative; } } }
public override void Initialise(MHParseNode p, MHEngine engine) { base.Initialise(p, engine); if (p.GetArgCount() > 1) { MHParseNode pIndexed = p.GetNamedArg(ASN1Codes.C_NEW_COLOUR_INDEX); MHParseNode pAbsolute = p.GetNamedArg(ASN1Codes.C_NEW_ABSOLUTE_COLOUR); if (pIndexed != null) { m_ColourType = CT_Indexed; m_Indexed.Initialise(pIndexed.GetArgN(0), engine); } else if (pAbsolute != null) { m_ColourType = CT_Absolute; m_Absolute.Initialise(pAbsolute.GetArgN(0), engine); } } }
public override void Initialise(MHParseNode p, MHEngine engine) { base.Initialise(p, engine); m_Argument.Initialise(p.GetArgN(1), engine); }
public override void Initialise(MHParseNode p, MHEngine engine) { base.Initialise(p, engine); m_Index.Initialise(p.GetArgN(1), engine); m_Result.Initialise(p.GetArgN(2), engine); }