Skip to content

Commit 138277b

Browse files
committed
Increase feature level
1 parent 565fc8f commit 138277b

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

doc/lua/functions.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (C) 2005 - 2021 Settlers Freaks <sf-team at siedler25.org>
2+
Copyright (C) 2005 - 2026 Settlers Freaks <sf-team at siedler25.org>
33
44
SPDX-License-Identifier: GPL-2.0-or-later
55
-->
@@ -24,7 +24,8 @@ Reference: [libs/libGamedata/lua/LuaInterfaceBase.cpp](../../libs/libGamedata/lu
2424
**rttr:GetFeatureLevel()**
2525
Get the current feature level of the LUA interface.
2626
Increases here indicate new features.
27-
The current version is **6**.
27+
The current version is **7**.
28+
See [list of changes](main.md#versioning).
2829

2930
**rttr:Log(message)**
3031
Log the message to console.

doc/lua/main.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (C) 2005 - 2021 Settlers Freaks <sf-team at siedler25.org>
2+
Copyright (C) 2005 - 2026 Settlers Freaks <sf-team at siedler25.org>
33
44
SPDX-License-Identifier: GPL-2.0-or-later
55
-->
@@ -47,6 +47,10 @@ You need to implement this and return the major/main version your script works w
4747
If it does not match the current version an error will be shown and the script will not be used.
4848
See also `rttr:GetFeatureLevel()`.
4949

50+
### Feature level 7
51+
52+
- Allow relative paths for images referenced by campaign files.
53+
5054
## Example
5155

5256
```lua

libs/s25main/lua/LuaInterfaceGameBase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2005 - 2021 Settlers Freaks (sf-team at siedler25.org)
1+
// Copyright (C) 2005 - 2026 Settlers Freaks (sf-team at siedler25.org)
22
//
33
// SPDX-License-Identifier: GPL-2.0-or-later
44

@@ -16,7 +16,7 @@ unsigned LuaInterfaceGameBase::GetVersion()
1616

1717
unsigned LuaInterfaceGameBase::GetFeatureLevel()
1818
{
19-
return 6;
19+
return 7;
2020
}
2121

2222
LuaInterfaceGameBase::LuaInterfaceGameBase(const ILocalGameState& localGameState) : localGameState(localGameState)

0 commit comments

Comments
 (0)