cItem: Store custom data
#13
I suppose there is no nice way to keep both in sync somehow where once I update the m_Enchantments member the m_ItemMeta automagically updates with it.

Or is it perhaps possible using the __index and __newindex metamethod. If the enchantment member doesn't exist in the metadata it looks inside m_Enchantments.
Reply
Thanks given by:


Messages In This Thread
cItem: Store custom data - by xoft - 11-27-2016, 06:19 AM
RE: Storing custom data in cItem - by xoft - 11-27-2016, 08:13 AM
RE: cItem: Store custom data - by NiLSPACE - 11-27-2016, 08:38 AM
RE: cItem: Store custom data - by xoft - 11-28-2016, 08:04 AM
RE: cItem: Store custom data - by Seadragon91 - 03-23-2017, 08:50 PM
RE: cItem: Store custom data - by NiLSPACE - 03-24-2017, 01:25 AM
RE: cItem: Store custom data - by Seadragon91 - 03-24-2017, 01:29 AM
RE: cItem: Store custom data - by xoft - 03-25-2017, 12:00 AM
RE: cItem: Store custom data - by NiLSPACE - 03-25-2017, 12:07 AM
RE: cItem: Store custom data - by Seadragon91 - 03-25-2017, 12:07 AM
RE: cItem: Store custom data - by xoft - 03-27-2017, 05:13 PM
RE: cItem: Store custom data - by NiLSPACE - 03-28-2017, 05:09 PM
RE: cItem: Store custom data - by xoft - 03-28-2017, 05:11 PM
RE: cItem: Store custom data - by Seadragon91 - 05-22-2017, 02:54 AM
RE: cItem: Store custom data - by coding.solo - 08-27-2017, 02:31 AM
RE: cItem: Store custom data - by peterbell10 - 09-19-2017, 02:04 AM
RE: cItem: Store custom data - by xoft - 09-19-2017, 06:18 PM
RE: cItem: Store custom data - by peterbell10 - 09-20-2017, 01:31 AM
RE: cItem: Store custom data - by xoft - 09-20-2017, 02:30 AM
RE: cItem: Store custom data - by peterbell10 - 09-20-2017, 02:44 AM



Users browsing this thread: 2 Guest(s)