待辦事項 #41445

Lua script API: add tile extras_owner

啟用日期: 2021-02-03 21:05 最後更新: 2021-02-05 19:47

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
Accepted
檔案:
2

細節

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
  • 處理結果 Update from to Accepted
2021-02-03 21:47 Updated by: 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.

2021-02-03 23:59 Updated by: kvilhaugsvik
評語

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
  • 狀態 Update from 開啟 to 關閉

編輯

Please login to add comment to this ticket » 登入