Incidencia #41445

Lua script API: add tile extras_owner

Abrir Fecha: 2021-02-03 21:05 Última actualización: 2021-02-05 19:47

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Accepted
Fichero:
2

Details

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
  • Resolución Update from Ninguno to Accepted
2021-02-03 21:47 Updated by: cazfi
Comentario

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
Comentario

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
  • Estado Update from Open to Cerrado

Editar

Please login to add comment to this ticket » Entrar