Page 1 of 1

item grid persistence and identification

Posted: Fri Feb 24, 2017 1:41 pm
by Adil
Many objects provide links to the objects higher in hierarchy (entity - force\surface, gui - parent element). Can we have grid point to the owner entity or item? Can we have item_stack class point to inventory? Can we have inventory point to entity?
Secondly, aka item with unit number

Re: item grid persistence and identification

Posted: Fri Feb 24, 2017 2:06 pm
by Rseding91
An equipment grid has no reference to what owns it. The Lua object points directly at it.

As for inventory: it may or have an associated entity, item, or none.