Ticket #42884

Lua: get all game objects by rule name

Open Date: 2021-09-20 00:46 Last Update: 2022-03-23 12:47

Reporter:
Owner:
(None)
Status:
Open
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

Get find.*(string rule_name) method to all classes that have rule names. Put it into the manual of style that any new classes accessible from Lua must be findable by rule name if they have one. One of the reasons for it in this nef's thread http://forum.freeciv.org/f/viewtopic.php?f=14&t=91972

(Side note: a ticket category for scripting?)

Ticket History (3/6 Histories)

2021-09-20 00:46 Updated by: ihnatus
  • New Ticket "Lua: get all game objects by rule name" created
2021-09-20 00:49 Updated by: ihnatus
2021-09-20 01:01 Updated by: cazfi
  • Component Update from General to Scripting API
Comment

Reply To ihnatus

(Side note: a ticket category for scripting?)

Done

2021-11-08 06:38 Updated by: cazfi
Comment

This really seems like a good improvement, and I would like it in 3.1. However, someone would need to implement it in time. Any volunteers?

2022-01-10 19:47 Updated by: cazfi
Comment

Achievements and Disasters (from nef's list) are easy. Split them to a separate ticket to get them handled already, while this main ticket still remains open -> #43594

2022-03-23 12:47 Updated by: cazfi
Comment

As all the currently affected classes are now handled, I don't think this blocks S3_1-df3 any longer. What's left of this ticket are arrangements for the future development to avoid introducing new problems with missing finders, e.g., the suggested CodingStyle modification.

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login