TimeLengthに下記メソッドを追加したいのですが・・・
cvs diff TimeLength.cs (ディレクトリ C:\Project\FreeTrain\FreeTrain\core\world\ 内)
Index: TimeLength.cs
===================================================================
RCS file: /cvsroot/freetrain/FreeTrain/core/world/TimeLength.cs,v
retrieving revision 1.1
diff -u -r1.1 TimeLength.cs
--- TimeLength.cs 11 May 2003 13:23:53 -0000 1.1
+++ TimeLength.cs 25 May 2003 01:58:31 -0000
@@ -26,6 +26,15 @@
return fromMinutes( ONEDAY.totalMinutes - (c.hour*60+c.minutes)%ONEDAY.totalMinutes );
}
+ /// <summary>
+ /// Total minutes from the start of the game.
+ /// </summary>
+ public static TimeLength pastMinutesToday() {
+ Clock c = World.world.clock;
+ return fromMinutes( c.totalMinutes%Time.DAY );
+ }
+
+
//
// time constants
//
_______________________________________________
FreeTrain-general mailing list
FreeTrain-general@lists.sourceforge.jp
http://lists.sourceforge.jp/mailman/listinfo/freetrain-general