Description:
Add version using AssemblyVersion.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -1,6 +1,4 | |||||
|
1 | using System.Collections.Generic; |
|
1 | using Microsoft.Xna.Framework; |
|
2 | using System.Linq; |
|
||
|
3 | using Microsoft.Xna.Framework; |
|
||
|
4 | using Microsoft.Xna.Framework.Audio; |
|
2 | using Microsoft.Xna.Framework.Audio; |
|
5 | using Microsoft.Xna.Framework.Input; |
|
3 | using Microsoft.Xna.Framework.Input; |
|
6 | using Microsoft.Xna.Framework.Graphics; |
|
4 | using Microsoft.Xna.Framework.Graphics; |
@@ -9,9 +7,12 | |||||
|
9 |
|
7 | ||
|
10 | using System; |
|
8 | using System; |
|
11 | using System.IO; |
|
9 | using System.IO; |
|
|
10 | using System.Reflection; | ||
|
|
11 | using System.Diagnostics; | ||
|
|
12 | using System.Collections.Generic; | ||
|
|
13 | using System.Linq; | ||
|
12 | using SpriteFontPlus; |
|
14 | using SpriteFontPlus; |
|
13 | using isometricparkfna; |
|
15 | using isometricparkfna; |
|
14 | using System.Diagnostics; |
|
||
|
15 |
|
16 | ||
|
16 | using static isometricparkfna.CellMap; |
|
17 | using static isometricparkfna.CellMap; |
|
17 | using isometricparkfna.Utils; |
|
18 | using isometricparkfna.Utils; |
@@ -28,6 +29,13 | |||||
|
28 | using TraceryNet; |
|
29 | using TraceryNet; |
|
29 | using Encompass; |
|
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 | class FNAGame : Game |
|
39 | class FNAGame : Game |
|
32 | { |
|
40 | { |
|
33 | private KeyboardState keyboardPrev = new KeyboardState(); |
|
41 | private KeyboardState keyboardPrev = new KeyboardState(); |
@@ -870,8 +878,9 | |||||
|
870 | Color.White, 0.0f, Vector2.Zero, |
|
878 | Color.White, 0.0f, Vector2.Zero, |
|
871 | 1.0f, SpriteEffects.None, 0.51f); |
|
879 | 1.0f, SpriteEffects.None, 0.51f); |
|
872 |
|
880 | ||
|
873 |
Vector2 version_dimensions = monoFont.MeasureString( |
|
881 | Vector2 version_dimensions = monoFont.MeasureString(typeof(FNAGame).Assembly.GetName().Version.ToString()); |
|
874 |
batch.DrawString(monoFont, |
|
882 | batch.DrawString(monoFont, |
|
|
883 | typeof(FNAGame).Assembly.GetName().Version.ToString(), | ||
|
875 | new Vector2(0, FNAGame.height-version_dimensions.Y), |
|
884 | new Vector2(0, FNAGame.height-version_dimensions.Y), |
|
876 | Color.White, 0.0f, Vector2.Zero, |
|
885 | Color.White, 0.0f, Vector2.Zero, |
|
877 | 1.0f, SpriteEffects.None, 0.51f); |
|
886 | 1.0f, SpriteEffects.None, 0.51f); |
You need to be logged in to leave comments.
Login now