cItem: Store custom data
#11
(03-25-2017, 12:00 AM)xoft Wrote: I know it's gonna sound weird coming from me, but would it make sense to make the m_ItemMeta member contain a JSON object? It could be made transparent to Lua (so one could set "m_ItemMeta = LuaTable") and it would be much easier to work with on the C++-side.
I can't think of a reason why not.

xoft Wrote:One thing though - how will we decide what properties get parsed into their specific member variables, and what properties stay in the ItemMeta object?
You mean what is an NBT-tag and what isn't? I'd say we move all NBT tags over to the ItemMeta object. So things like Lore, CustomName, Enchantments and so on.
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: 1 Guest(s)