IsValid() public method

public IsValid ( ) : bool
return bool
Ejemplo n.º 1
0
        public override void DebugDump(TextWriter writer, Story story)
        {
            base.DebugDump(writer, story);

            writer.Write("   ");
            if (ParentRef.IsValid())
            {
                writer.Write(" Parent ");
                ParentRef.DebugDump(writer, story);
            }

            if (AdapterRef.IsValid())
            {
                writer.Write(" Adapter ");
                AdapterRef.DebugDump(writer, story);
            }

            if (RelDatabaseRef.IsValid())
            {
                writer.Write(" Database ");
                RelDatabaseRef.DebugDump(writer, story);
                writer.Write(" Flag {0}", RelDatabaseFlag);
                writer.Write(" Entry ");
                RelDatabase.DebugDump(writer, story);
            }

            writer.WriteLine("");
        }
Ejemplo n.º 2
0
        public void DebugDump(TextWriter writer, Story story)
        {
            writer.Write("{0} ", Type.ToString());
            Name.DebugDump(writer, story);
            if (NodeRef.IsValid())
            {
                var node = story.Nodes[NodeRef.NodeIndex];
                writer.Write(" @ {0}/{1}", node.Name, node.NameIndex);
            }

            writer.WriteLine(" [{0}, {1}]", Unknown1, Unknown2);
        }
Ejemplo n.º 3
0
        public override void DebugDump(TextWriter writer, Story story)
        {
            base.DebugDump(writer, story);

            writer.Write("    Left:");
            if (LeftParentRef.IsValid())
            {
                writer.Write(" Parent ");
                LeftParentRef.DebugDump(writer, story);
            }

            if (Adapter1Ref.IsValid())
            {
                writer.Write(" Adapter ");
                Adapter1Ref.DebugDump(writer, story);
            }

            if (Database1Ref.IsValid())
            {
                writer.Write(" Database ");
                Database1Ref.DebugDump(writer, story);
                writer.Write(" Flag {0}", Database1Flag);
                writer.Write(" Entry ");
                Database1.DebugDump(writer, story);
            }

            writer.WriteLine("");

            writer.Write("    Right:");
            if (RightParentRef.IsValid())
            {
                writer.Write(" Parent ");
                RightParentRef.DebugDump(writer, story);
            }

            if (Adapter2Ref.IsValid())
            {
                writer.Write(" Adapter ");
                Adapter2Ref.DebugDump(writer, story);
            }

            if (Database2Ref.IsValid())
            {
                writer.Write(" Database ");
                Database2Ref.DebugDump(writer, story);
                writer.Write(" Flag {0}", Database2Flag);
                writer.Write(" Entry ");
                Database2.DebugDump(writer, story);
            }

            writer.WriteLine("");
        }
Ejemplo n.º 4
0
 public void DebugDump(TextWriter writer, Story story)
 {
     if (NodeRef.IsValid())
     {
         writer.Write("(");
         NodeRef.DebugDump(writer, story);
         writer.Write(", Entry Point {0}, Goal {1})", EntryPoint, story.Goals[GoalId].Name);
     }
     else
     {
         writer.Write("(none)");
     }
 }