Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 7b406bf

Browse files
committed
yeet the functions keep the properties
1 parent 892432d commit 7b406bf

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
103103

104104
- New `ADoor` Lua function `ResetSensorTimer()`. Resets the sensor timer for that door, making it take the full SensorInterval again for it to detect actors.
105105

106-
- New `SceneObject` Lua functions `IsBuyableInScriptOnly()`, `IsBuyableInObjectPickerOnly()`, and `IsBuyableInBuyMenuOnly()`.
107-
108106
- Exposed `SceneObject` property `BuyableMode` to Lua (R).
109107

110-
- `Enum` binding for `SceneObject.BuyableMode`: `NORESTRICTIONS = 0, BUYMENUONLY = 1, OBJECTPICKERONLY = 2, SCRIPTONLY = 2`.
108+
- `Enum` binding for `SceneObject.BuyableMode`: `NORESTRICTIONS = 0, BUYMENUONLY = 1, OBJECTPICKERONLY = 2, SCRIPTONLY = 3`.
111109

112110
</details>
113111

@@ -149,7 +147,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
149147

150148
- Script values, i.e `GetStringValue`, `RemoveStringValue`, `StringValueExists` and the associated functions for `GetNumberValue`/`GetObjectValue`, have been moved from MOSRotating to MovableObject, so now any object with script support can use these values.
151149

152-
- The `SceneObject` property `IsBuyable` is now a function, e.g. `IsBuyable()`. `Buyable` replaces it as a property.
150+
- The `SceneObject` property `IsBuyable` has been renamed to `Buyable`.
153151

154152
</details>
155153

Lua/LuaBindingsEntities.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,10 +1341,6 @@ namespace RTE {
13411341
.property("Buyable", &SceneObject::IsBuyable)
13421342
.property("BuyableMode", &SceneObject::GetBuyableMode)
13431343

1344-
.def("IsBuyable", &SceneObject::IsBuyable)
1345-
.def("IsBuyableInBuyMenuOnly", &SceneObject::IsBuyableInBuyMenuOnly)
1346-
.def("IsBuyableInObjectPickerOnly", &SceneObject::IsBuyableInObjectPickerOnly)
1347-
.def("IsBuyableInScriptOnly", &SceneObject::IsBuyableInScriptOnly)
13481344
.def("IsOnScenePoint", &SceneObject::IsOnScenePoint)
13491345
.def("GetGoldValue", &SceneObject::GetGoldValueOld)
13501346
.def("GetGoldValue", &SceneObject::GetGoldValue)

0 commit comments

Comments
 (0)