Tíquete #42884

Lua: get all game objects by rule name

: 2021-09-20 00:46 Última Atualização: 2024-02-23 08:07

Relator:
Dono:
(Nenhum)
Estado:
Aberto
Componente:
Marcos:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Nenhum
Arquivo:
Nenhum

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/7 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
  • Componente Update from General to Scripting API
Comentário

Reply To ihnatus

(Side note: a ticket category for scripting?)

Done

2021-11-08 06:38 Updated by: cazfi
Comentário

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
Comentário

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
Comentário

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 Updated by: cazfi

Attachment File List

No attachments

Editar

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