Exemple #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();
 }
 private void DumpDesires( OutlineWriter wr )
 {
     if( !_desires.Any() )
         return;
     wr.Line( "Desires" );
     _desires.ForEach( d => wr.Append( d.Dump( wr.Level + 1 ) ) );
 }
Exemple #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();
 }