Description:
Add version using AssemblyVersion.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r301:e7f32b20466f -

@@ -1,6 +1,4
1 using System.Collections.Generic;
2 using System.Linq;
3 using Microsoft.Xna.Framework;
1 using Microsoft.Xna.Framework;
4 2 using Microsoft.Xna.Framework.Audio;
5 3 using Microsoft.Xna.Framework.Input;
6 4 using Microsoft.Xna.Framework.Graphics;
@@ -9,9 +7,12
9 7
10 8 using System;
11 9 using System.IO;
10 using System.Reflection;
11 using System.Diagnostics;
12 using System.Collections.Generic;
13 using System.Linq;
12 14 using SpriteFontPlus;
13 15 using isometricparkfna;
14 using System.Diagnostics;
15 16
16 17 using static isometricparkfna.CellMap;
17 18 using isometricparkfna.Utils;
@@ -28,6 +29,13
28 29 using TraceryNet;
29 30 using Encompass;
30 31
32 //Let's let core builds be deterministic
33 #if NETCOREAPP
34 [assembly:AssemblyVersion("0.30.4.0")]
35 #else
36 [assembly:AssemblyVersion("0.30.4.*")]
37 #endif
38
31 39 class FNAGame : Game
32 40 {
33 41 private KeyboardState keyboardPrev = new KeyboardState();
@@ -870,8 +878,9
870 878 Color.White, 0.0f, Vector2.Zero,
871 879 1.0f, SpriteEffects.None, 0.51f);
872 880
873 Vector2 version_dimensions = monoFont.MeasureString(VERSION);
874 batch.DrawString(monoFont, VERSION,
881 Vector2 version_dimensions = monoFont.MeasureString(typeof(FNAGame).Assembly.GetName().Version.ToString());
882 batch.DrawString(monoFont,
883 typeof(FNAGame).Assembly.GetName().Version.ToString(),
875 884 new Vector2(0, FNAGame.height-version_dimensions.Y),
876 885 Color.White, 0.0f, Vector2.Zero,
877 886 1.0f, SpriteEffects.None, 0.51f);
You need to be logged in to leave comments. Login now