Ticket #42884

Lua: get all game objects by rule name

Eröffnet am: 2021-09-20 00:46 Letztes Update: 2024-02-23 08:07

Auswertung:
Verantwortlicher:
(Keine)
Status:
Offen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Keine
Datei:
Keine

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-Verlauf (3/7 Historien)

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

Reply To ihnatus

(Side note: a ticket category for scripting?)

Done

2021-11-08 06:38 Aktualisiert von: cazfi
Kommentar

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 Aktualisiert von: cazfi
Kommentar

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 Aktualisiert von: cazfi
Kommentar

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.

2024-02-23 08:07 Aktualisiert von: cazfi

Dateianhangliste

Keine Anhänge

Bearbeiten

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