summaryrefslogtreecommitdiff
path: root/src/script/api/script_object.hpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-11-30 22:59:23 +0100
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commit57b82e2e99aa30a649d1fd80f192ccf5338dc7c4 (patch)
treeb059cf0f22ab065166dd3b0391772b6e83aef49b /src/script/api/script_object.hpp
parent3e85e833a707e6b781d00eae09c9465bacbf1d69 (diff)
downloadopenttd-57b82e2e99aa30a649d1fd80f192ccf5338dc7c4.tar.xz
Codechange: Don't use globals for story/goal/sign/group command proc return values.
Diffstat (limited to 'src/script/api/script_object.hpp')
-rw-r--r--src/script/api/script_object.hpp55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/script/api/script_object.hpp b/src/script/api/script_object.hpp
index f9a66f8a8..d90fec351 100644
--- a/src/script/api/script_object.hpp
+++ b/src/script/api/script_object.hpp
@@ -198,31 +198,6 @@ protected:
static VehicleID GetNewVehicleID();
/**
- * Get the latest stored new_sign_id.
- */
- static SignID GetNewSignID();
-
- /**
- * Get the latest stored new_group_id.
- */
- static GroupID GetNewGroupID();
-
- /**
- * Get the latest stored new_goal_id.
- */
- static GoalID GetNewGoalID();
-
- /**
- * Get the latest stored new_story_page_id.
- */
- static StoryPageID GetNewStoryPageID();
-
- /**
- * Get the latest stored new_story_page_id.
- */
- static StoryPageID GetNewStoryPageElementID();
-
- /**
* Store a allow_do_command per company.
* @param allow The new allow.
*/
@@ -305,36 +280,6 @@ private:
*/
static void SetNewVehicleID(VehicleID vehicle_id);
- /**
- * Store a new_sign_id per company.
- * @param sign_id The new SignID.
- */
- static void SetNewSignID(SignID sign_id);
-
- /**
- * Store a new_group_id per company.
- * @param group_id The new GroupID.
- */
- static void SetNewGroupID(GroupID group_id);
-
- /**
- * Store a new_goal_id per company.
- * @param goal_id The new GoalID.
- */
- static void SetNewGoalID(GoalID goal_id);
-
- /**
- * Store a new_story_page_id per company.
- * @param story_page_id The new StoryPageID.
- */
- static void SetNewStoryPageID(StoryPageID story_page_id);
-
- /**
- * Store a new_story_page_id per company.
- * @param story_page_id The new StoryPageID.
- */
- static void SetNewStoryPageElementID(StoryPageElementID story_page_element_id);
-
/* Helper functions for DoCommand. */
static std::tuple<bool, bool, bool> DoCommandPrep();
static bool DoCommandProcessResult(const CommandCost &res, Script_SuspendCallbackProc *callback, bool estimate_only);