コード例 #1
0
 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");
 }
コード例 #2
0
 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");
 }
コード例 #3
0
 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");
 }
コード例 #4
0
ファイル: MHVisible.cs プロジェクト: mcgoober/mheg-dotnet
 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");
     }     
 }
コード例 #5
0
ファイル: MHPersistent.cs プロジェクト: mcgoober/mheg-dotnet
 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);
 }
コード例 #6
0
ファイル: MHLink.cs プロジェクト: mcgoober/mheg-dotnet
        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");
        }
コード例 #7
0
 protected override void PrintArgs(TextWriter writer, int nTabs)
 {
     m_ResultVar.Print(writer, 0);
 }
コード例 #8
0
 protected override void PrintArgs(TextWriter writer, int nTabs)
 {
     m_Feature.Print(writer, 0);
     m_Answer.Print(writer, 0);
 }