public override void Print(TextWriter writer, int nTabs) { Logging.PrintTabs(writer, nTabs); writer.Write("{:ObjectRefVar"); base.Print(writer, nTabs + 1); Logging.PrintTabs(writer, nTabs + 1); writer.Write(":OrigValue "); m_OriginalValue.Print(writer, nTabs + 1); writer.Write("\n"); Logging.PrintTabs(writer, nTabs); writer.Write("}\n"); }
public void Print(TextWriter writer, int nTabs) { Logging.PrintTabs(writer, nTabs); writer.Write("( "); m_Object.Print(writer, nTabs + 1); writer.Write("\n"); if (m_ActionSlots.Size != 0) { Logging.PrintTabs(writer, nTabs + 1); writer.Write(":ActionSlots (\n"); for (int i = 0; i < m_ActionSlots.Size; i++) { Logging.PrintTabs(writer, nTabs + 2); writer.Write("(\n"); MHActionSequence pActions = m_ActionSlots.GetAt(i); if (pActions.Size == 0) { writer.Write("NULL\n"); } else { pActions.Print(writer, nTabs + 2); } Logging.PrintTabs(writer, nTabs + 2); writer.Write(")\n"); } Logging.PrintTabs(writer, nTabs + 1); writer.Write(")\n"); } Logging.PrintTabs(writer, nTabs); writer.Write(")\n"); }
protected override void PrintArgs(TextWriter writer, int nTabs) { m_Succeeded.Print(writer, nTabs); writer.Write(" ( "); for (int i = 0; i < m_Parameters.Size; i++) { m_Parameters.GetAt(i).Print(writer, 0); } writer.Write(" )\n"); }
public override void Print(TextWriter writer, int nTabs) { base.Print(writer, nTabs); Logging.PrintTabs(writer, nTabs); writer.Write(":OrigBoxSize {0} {1}\n", m_nOriginalBoxWidth, m_nOriginalBoxHeight); if (m_nOriginalPosX != 0 || m_nOriginalPosY != 0) { Logging.PrintTabs(writer, nTabs); writer.Write(":OrigPosition {0} {1}\n", m_nOriginalPosX, m_nOriginalPosY); } if (m_OriginalPaletteRef.IsSet()) { Logging.PrintTabs(writer, nTabs); writer.Write(":OrigPaletteRef"); m_OriginalPaletteRef.Print(writer, nTabs + 1); writer.Write("\n"); } }
protected override void PrintArgs(TextWriter writer, int nTabs) { m_Succeeded.Print(writer, nTabs); writer.Write(" ( "); for (int i = 0; i < m_Variables.Size; i++) { m_Variables.GetAt(i).Print(writer, 0); } writer.Write(" ) "); m_FileName.Print(writer, nTabs); }
public override void Print(TextWriter writer, int nTabs) { Logging.PrintTabs(writer, nTabs); writer.Write("{:Link"); base.Print(writer, nTabs + 1); Logging.PrintTabs(writer, nTabs + 1); writer.Write(":EventSource "); m_EventSource.Print(writer, nTabs + 1); writer.Write("\n"); Logging.Assert(m_nEventType > 0 && m_nEventType <= rchEventType.Length); Logging.PrintTabs(writer, nTabs + 1); writer.Write(":EventType {0}\n", rchEventType[m_nEventType - 1]); // The event data is optional and its format depends on the event type. switch (m_EventData.Type) { case MHUnion.U_Bool: Logging.PrintTabs(writer, nTabs + 1); writer.Write(":EventData {0}\n", m_EventData.Bool ? "true" : "false"); break; case MHUnion.U_Int: Logging.PrintTabs(writer, nTabs + 1); writer.Write(":EventData {0}\n", m_EventData.Int); break; case MHUnion.U_String: Logging.PrintTabs(writer, nTabs + 1); writer.Write(":EventData"); m_EventData.String.Print(writer, nTabs); writer.Write("\n"); break; default: break; // None and others } Logging.PrintTabs(writer, nTabs + 1); writer.Write(":LinkEffect (\n"); m_LinkEffect.Print(writer, nTabs + 2); Logging.PrintTabs(writer, nTabs + 1); writer.Write(")\n"); Logging.PrintTabs(writer, nTabs); writer.Write("}\n"); }
protected override void PrintArgs(TextWriter writer, int nTabs) { m_ResultVar.Print(writer, 0); }
protected override void PrintArgs(TextWriter writer, int nTabs) { m_Feature.Print(writer, 0); m_Answer.Print(writer, 0); }