Page 1 of 1

LuaEquipmentGrid index

Posted: Thu Jul 09, 2020 6:09 am
by Linver
Hi again, related to the post of LuaEquipmentGrid , why the LuaEquipmentGrid doesen't have an index? I suppose that is why they are in a one to one association to an entity, so for identify it is possible use the index of the entity, but is weird that miss an unique identificator when all other LuaObject have it. Also, this missing property if the request in the other post wouldn't implemented (about the fact that exist situations where is know the grid but not the entity that own it).

Re: LuaEquipmentGrid index

Posted: Thu Jul 09, 2020 9:30 am
by Klonan
Linver wrote: Thu Jul 09, 2020 6:09 ambut is weird that miss an unique identificator when all other LuaObject have it.
Not all Lua Objects have a Unique ID, in fact very many don't, even many entities, such as resources, trees, don't have a unique ID.

Looking at the equipment grid, there is nothing internally to give to you, there is no unique ID in the engine for an equipment grid, so this modding request isn't easy to fulfill.

Re: LuaEquipmentGrid index

Posted: Thu Jul 09, 2020 10:53 am
by Linver
Klonan wrote: Thu Jul 09, 2020 9:30 am
Linver wrote: Thu Jul 09, 2020 6:09 ambut is weird that miss an unique identificator when all other LuaObject have it.
Not all Lua Objects have a Unique ID, in fact very many don't, even many entities, such as resources, trees, don't have a unique ID.

Looking at the equipment grid, there is nothing internally to give to you, there is no unique ID in the engine for an equipment grid, so this modding request isn't easy to fulfill.
Understand, anyway, thank you for the answer