clean up private fields/properties
GitOrigin-RevId: d2caf0d5d774e50ba4a2eb9cdc2a40ca28a094ce
This commit is contained in:
parent
7e8e5c3e6d
commit
95acee959d
@ -2,14 +2,12 @@
|
|||||||
|
|
||||||
namespace SemiColinGames {
|
namespace SemiColinGames {
|
||||||
class Clock {
|
class Clock {
|
||||||
private static TimeSpan modelTime = new TimeSpan();
|
|
||||||
|
|
||||||
public static void AddModelTime(double seconds) {
|
public static void AddModelTime(double seconds) {
|
||||||
modelTime += TimeSpan.FromSeconds(seconds);
|
ModelTime += TimeSpan.FromSeconds(seconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static TimeSpan ModelTime {
|
public static TimeSpan ModelTime {
|
||||||
get { return modelTime; }
|
get; private set;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,8 +21,8 @@ namespace SemiColinGames {
|
|||||||
|
|
||||||
public Tile(Texture2D texture, Terrain terrain, Rectangle position) {
|
public Tile(Texture2D texture, Terrain terrain, Rectangle position) {
|
||||||
this.texture = texture;
|
this.texture = texture;
|
||||||
this.Terrain = terrain;
|
Terrain = terrain;
|
||||||
this.Position = position;
|
Position = position;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Rectangle Position { get; private set; }
|
public Rectangle Position { get; private set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user