Ticket #41445

Lua script API: add tile extras_owner

오픈 날짜: 2021-02-03 21:05 마지막 업데이트: 2021-02-05 19:47

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Accepted
File:
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
  • Resolution Update from None 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
  • Status Update from Open to Closed

Edit

Please login to add comment to this ticket » Login