Implementing banner
#13
I must be blind - I don't see any duplication code, and cItem uses a unique_ptr, which cannot be copied.

More pros:
- direct correspondence with parsed commands (In the future if we add the same processing as vanilla does for commands, such as "/give ... {detaildata}" )
- future-proof for additional data

As for your cons, I don't think they are that much of a problem. cItem handling is definitely not a bottleneck, so if it uses a bit more CPU, I don't care. Data structure is unclear, which might be a pro as well, since we can add more data without any trouble for other items and for future versions.
Reply
Thanks given by:


Messages In This Thread
Implementing banner - by Seyaku - 05-21-2016, 06:53 AM
RE: Implementing banner - by xoft - 05-21-2016, 11:14 PM
RE: Implementing banner - by Seyaku - 05-22-2016, 01:04 AM
RE: Implementing banner - by Jammet - 05-22-2016, 01:07 AM
RE: Implementing banner - by Seyaku - 05-22-2016, 01:41 AM
RE: Implementing banner - by Jammet - 05-22-2016, 03:26 AM
RE: Implementing banner - by xoft - 05-22-2016, 06:41 AM
RE: Implementing banner - by Seyaku - 05-22-2016, 11:41 PM
RE: Implementing banner - by xoft - 05-23-2016, 01:02 AM
RE: Implementing banner - by Seyaku - 05-23-2016, 01:47 AM
RE: Implementing banner - by xoft - 05-23-2016, 02:04 AM
RE: Implementing banner - by Seyaku - 05-23-2016, 02:53 AM
RE: Implementing banner - by xoft - 05-23-2016, 05:22 AM
RE: Implementing banner - by Seyaku - 05-23-2016, 05:37 AM
RE: Implementing banner - by Seyaku - 05-24-2016, 02:23 AM
RE: Implementing banner - by xoft - 05-24-2016, 04:20 AM
RE: Implementing banner - by sphinxc0re - 05-24-2016, 05:01 AM
RE: Implementing banner - by Seyaku - 05-24-2016, 05:52 AM
RE: Implementing banner - by tigerw - 05-24-2016, 08:00 AM
RE: Implementing banner - by Seyaku - 05-24-2016, 09:29 AM
RE: Implementing banner - by xoft - 05-24-2016, 04:32 PM
RE: Implementing banner - by tigerw - 05-24-2016, 11:17 PM
RE: Implementing banner - by tigerw - 05-24-2016, 11:21 PM
RE: Implementing banner - by Seyaku - 05-25-2016, 12:30 AM
RE: Implementing banner - by tigerw - 05-25-2016, 01:52 AM
RE: Implementing banner - by Seyaku - 05-25-2016, 02:09 AM
RE: Implementing banner - by xoft - 05-25-2016, 02:30 AM
RE: Implementing banner - by tigerw - 05-25-2016, 05:06 AM
RE: Implementing banner - by Seyaku - 05-25-2016, 07:33 AM
RE: Implementing banner - by PureTryOut - 11-14-2016, 02:29 AM
RE: Implementing banner - by Seyaku - 12-02-2016, 09:44 AM
RE: Implementing banner - by PureTryOut - 12-05-2016, 03:37 AM
RE: Implementing banner - by xoft - 12-05-2016, 05:22 AM
RE: Implementing banner - by PureTryOut - 12-06-2016, 06:00 AM
RE: Implementing banner - by xoft - 12-06-2016, 05:51 PM
RE: Implementing banner - by Seyaku - 12-08-2016, 05:36 AM
RE: Implementing banner - by Seadragon91 - 03-23-2017, 09:16 PM



Users browsing this thread: 10 Guest(s)