示例#1
0
 string IResearchable.Dump( int level )
 {
     var wr = new OutlineWriter( level );
     wr.Line( "{0} <{1}>", IWorld.Name, typeof( World ).Name );
     wr.Append( _agent.Dump( wr.Level + 1 ) );
     return wr.ToString();
 }
示例#2
0
 private void DumpDesires( OutlineWriter wr )
 {
     if( !_desires.Any() )
         return;
     wr.Line( "Desires" );
     _desires.ForEach( d => wr.Append( d.Dump( wr.Level + 1 ) ) );
 }
示例#3
0
 public static string NewLine( int level, string template, params object[] args )
 {
     var wr = new OutlineWriter( level );
     wr.Line();
     wr.Indent();
     wr.Append( template, args );
     return wr.ToString();
 }
示例#4
0
 protected override void DumpAbilityContent( OutlineWriter wr )
 {
     DumpDesires( wr );
 }
示例#5
0
 protected override void DumpProcessContent( OutlineWriter wr ) {}
示例#6
0
 protected override void DumpProcessContent( OutlineWriter wr )
 {
     wr.Append( _innerReality.Dump( wr.Level ) );
 }