Feature #1451
closedLua API: specialist class
30%
Description
Files
Updated by Marko Lindqvist about 1 month ago
- Blocks Feature #1399: Lua API: specialists control added
Updated by Alexandr Ignatiev about 1 month ago
Here I want to change api_game_methods.[ch], is NULL->nullptr change close there?
Updated by Marko Lindqvist about 1 month ago
api_game_methods.[ch] nullptr patch has not yet been made, so feel free to make this patch first.
#1399 is currently targeted to S3_3, related to my comment there that we might want to have lua api for regular specialists also in the older branch. This ticket is now targeted to S3_4. Which one we should change?
Updated by Alexandr Ignatiev about 1 month ago
Marko Lindqvist wrote in #note-3:
#1399 is currently targeted to S3_3, related to my comment there that we might want to have lua api for regular specialists also in the older branch. This ticket is now targeted to S3_4. Which one we should change?
This patch would well go to S3_3 and editing API from #1399 may be left for S3_4. It's not much useful without superspecialists.
Updated by Alexandr Ignatiev about 1 month ago
- File lua-specialist.patch lua-specialist.patch added
Made a patch that should apply to both. Let's make granular and single-target patches. This one only defines the class and makes find/name/id basics. I think we can then make a bit of API accessible for S3_3, just to auto-toggle the specialists that fall out of their reqs if the ruleset author wants so. Then #1399 will add API related to superspecialists.
Based over #1458.
Updated by Marko Lindqvist about 1 month ago
- Target version changed from 3.4.0-d3f to 3.3.0-d3f
Updated by Marko Lindqvist about 1 month ago
Please use nullptr instead of NULL, especially in api_game_find.c that is already otherwise unified to nullptr.
nullptr can be used in code that is not going to branches older than S3_3. For patches that are going also to older branches, we still have to use NULL (or to make separate patch for newer branches)
Updated by Alexandr Ignatiev about 1 month ago
Marko Lindqvist wrote in #note-7:
Please use nullptr instead of NULL, especially in api_game_find.c that is already otherwise unified to nullptr.
nullptr can be used in code that is not going to branches older than S3_3. For patches that are going also to older branches, we still have to use NULL (or to make separate patch for newer branches)
Understood. Have you applied api_game_find patch to the repo?
Updated by Marko Lindqvist about 1 month ago
Alexandr Ignatiev wrote in #note-8:
Understood. Have you applied api_game_find patch to the repo?
git log origin/main common/scriptcore/api_game_find.c
commit 3b77a0ea701e9ec023b61526dbdc063d977ced16
Author: Marko Lindqvist <cazfi74@gmail.com>
Date: Sat May 3 11:13:08 2025 +0300
api_game_find.c: Replace NULL with nullptr
See RM #1361
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Updated by Alexandr Ignatiev about 1 month ago
Thanks! remade the patch.
Updated by Marko Lindqvist about 1 month ago
- Blocks Feature #1464: Lua API: minimal specialist control added
Updated by Marko Lindqvist about 1 month ago
- Status changed from New to In Review
- Assignee set to Marko Lindqvist