Pyrogenesis
HEAD
Pyrogenesis, a RTS Engine
build_version.h
Go to the documentation of this file.
1
/* Copyright (C) 2025 Wildfire Games.
2
*
3
* Permission is hereby granted, free of charge, to any person obtaining
4
* a copy of this software and associated documentation files (the
5
* "Software"), to deal in the Software without restriction, including
6
* without limitation the rights to use, copy, modify, merge, publish,
7
* distribute, sublicense, and/or sell copies of the Software, and to
8
* permit persons to whom the Software is furnished to do so, subject to
9
* the following conditions:
10
*
11
* The above copyright notice and this permission notice shall be included
12
* in all copies or substantial portions of the Software.
13
*
14
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
*/
22
23
#ifndef INCLUDED_BUILDVERSION
24
#define INCLUDED_BUILDVERSION
25
26
/*
27
* The version of the game is built as MAJOR.MINOR.PATCH, where
28
* - MAJOR is 0
29
* - MINOR is incremented for each main release
30
* - PATCH is incremented whenever we release a bugfix patch release
31
*
32
* TODO: This does not respect semver.
33
*/
34
#define PS_VERSION_MAJOR 0
35
#define PS_VERSION_MINOR 29
36
#define PS_VERSION_PATCH 0
37
38
/*
39
* When a patch version is released, it should stay simulation-compatible with
40
* all the previous patch releases of the same main release. This allows players
41
* to keep replaying their games and playing online against other versions of the
42
* same main release.
43
*
44
* The "compatible patch version" is the earliest patch version with which the
45
* current version is compatible. It should ideally stay at 0 all the time.
46
* If the compatible patch version is bumped:
47
* - a new lobby room must be opened
48
* - the version of the public '0ad' mod must be bumped
49
* - incompatible replays and savegames will be rotated as new folders are created
50
*
51
* This does not describe compatibility with the modding API. Modders are advised
52
* to rely on the actual engine version.
53
*/
54
#define PS_SERIALIZATION_COMPATIBLE_PATCH 0
55
56
#define STR(ver) #ver
57
#define DOTCONCAT(v1, v2, v3) STR(v1) "."
STR(v2) "." STR(v3)
58
59
// See definition of PS_VERSION_* for details
60
#define PS_VERSION DOTCONCAT(PS_VERSION_MAJOR, PS_VERSION_MINOR, PS_VERSION_PATCH)
61
// Used in Windows .rc file
62
#define PS_VERSION_WORD PS_VERSION_MAJOR,PS_VERSION_MINOR,PS_VERSION_PATCH,0
63
// See definition of PS_SERIALIZATION_COMPATIBLE_PATCH for details
64
#define PS_SERIALIZATION_VERSION DOTCONCAT(PS_VERSION_MAJOR, PS_VERSION_MINOR, PS_SERIALIZATION_COMPATIBLE_PATCH)
65
66
extern
wchar_t
build_version
[];
67
68
#endif
// INCLUDED_BUILDVERSION
build_version
wchar_t build_version[]
Definition:
build_version.cpp:25
source
lib
build_version.h
Generated by
1.9.4