Ticket #44831

Lua: add support for unit class and class flags

오픈 날짜: 2022-06-14 23:29 마지막 업데이트: 2024-08-26 07:22

Reporter:
소유자:
(None)
Status:
Open
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

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 (2/2 Histories)

2022-06-14 23:29 Updated by: ihnatus
  • New Ticket "Lua: add support for unit class and class flags" created
2024-08-26 07:22 Updated by: cazfi

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login