待辦事項 #44831

Lua: add support for unit class and class flags

啟用日期: 2022-06-14 23:29 最後更新: 2022-06-14 23:29

回報者:
負責人:
(無)
類型:
狀態:
開啟
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
檔案:

細節

Don't remember if I requested this API in some bigger bunch, but let it be here.

  • bool (Unit_Type):has_class_flag(string)
  • string (Unit_Type).class (or uclass?)
  • bool (Unit):has_class_flag(string)

Some other missing uclass-related API (maybe also some iterator for getting native extras) that does not mention classes directly:

  • bool (Unit):can_exist_at(Tile)
  • bool (Terrain_Type):is_native_for(Unit_Type)
  • bool (Unit_Type):can_transport(Unit_Type)

Ticket History (1/1 Histories)

2022-06-14 23:29 Updated by: ihnatus
  • New Ticket "Lua: add support for unit class and class flags" created

Attachment File List

No attachments

編輯

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