Oprava spawnování monster, optimalizace v CommandProcessor a EventProcessor. Přesunutí některých tříd do vlastních namespaců, pročištění kódu, úpravy formátování, odstranění nepoužívaných souborů a zakomentovaného kódu
This commit is contained in:
parent
e5d746d597
commit
243f071a43
62 changed files with 873 additions and 1217 deletions
|
|
@ -1,4 +1,3 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
|
@ -8,7 +7,6 @@ namespace ONDClient.GUI;
|
|||
public class TimerUIElement : TextUIElement{
|
||||
private Stopwatch stopwatch = new();
|
||||
|
||||
|
||||
public TimerUIElement(Point corner1, SpriteFont font) : base(corner1, font) {
|
||||
Text = "00:00.000";
|
||||
Bounds = (corner1, corner1 + new Point((int)Measure().X, (int)Measure().Y));
|
||||
|
|
@ -17,7 +15,6 @@ public class TimerUIElement : TextUIElement{
|
|||
public override void Update() {
|
||||
if (stopwatch.IsRunning){
|
||||
Text = stopwatch.Elapsed.ToString("mm\\:ss\\.fff");
|
||||
// Text = stopwatch.ElapsedMilliseconds.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue