Ticket #41445

Lua script API: add tile extras_owner

Date d'ouverture: 2021-02-03 21:05 Dernière mise à jour: 2021-02-05 19:47

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Accepted
Fichier:
2

Détails

Export a tile's extras owner to Lua.

Ticket History (3/7 Histories)

2021-02-03 21:05 Updated by: kvilhaugsvik
  • New Ticket "Lua script API: add tile extras_owner" created
2021-02-03 21:40 Updated by: kvilhaugsvik
  • Résolution Update from Aucun to Accepted
2021-02-03 21:47 Updated by: cazfi
Commentaire

For forward compatibility I would not build API based on the fact that extra owner is tile-wide thing. It's an ugly detail anyway. Maybe instead add a function to get owner for tile/extra pair, despite extra parameter being currently irrelevant.

2021-02-03 23:59 Updated by: kvilhaugsvik
Commentaire

Reply To cazfi

For forward compatibility I would not build API based on the fact that extra owner is tile-wide thing. It's an ugly detail anyway. Maybe instead add a function to get owner for tile/extra pair, despite extra parameter being currently irrelevant.

Done. But I allowed passing Nil to get the owner of the first owned extra.

2021-02-05 19:47 Updated by: kvilhaugsvik
  • État Update from Ouvert to Atteints

Modifier

Please login to add comment to this ticket » Connexion