public override void Initialise(MHParseNode p, MHEngine engine) { base.Initialise(p, engine); // Target m_Succeeded.Initialise(p.GetArgN(1), engine); MHParseNode pVarSeq = p.GetArgN(2); for (int i = 0; i < pVarSeq.GetSeqCount(); i++) { MHObjectRef pVar = new MHObjectRef(); m_Variables.Append(pVar); pVar.Initialise(pVarSeq.GetSeqN(i), engine); } m_FileName.Initialise(p.GetArgN(3), 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); 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_Feature.Initialise(p.GetArgN(1), engine); m_Answer.Initialise(p.GetArgN(2), engine); }
public override void Initialise(MHParseNode p, MHEngine engine) { base.Initialise(p, engine); // Target m_FontAttrs.Initialise(p.GetArgN(1), engine); // New font attrs }
public override void Initialise(MHParseNode p, MHEngine engine) { base.Initialise(p, engine); // Target m_Operand.Initialise(p.GetArgN(1), engine); // Operand to append }