-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block extra data #40
Comments
a separate std::unsigned_map linking an XYZCoordinate to a BlockBonusData struct or |
I think a separate unordered map of coordinates and a std::string is a good idea. We could store the bonus data in json or bON from lua |
Why are y'all even bothering with gmod at this point - sorry
…On Sun, May 14, 2017 at 9:58 PM, swadical ***@***.***> wrote:
a separate std::unsigned_map linking an XYZCoordinate to a BlockBonusData
struct or std::tuple<size_t, void *> to leave it up to the end user to
figure out what they want????
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAf3MmiyEDRql7JLCdWGbW32sE_OJKOtks5r57EtgaJpZM4Nalo4>
.
|
wtf, just store it lua-side |
moreover, just use source's builtin entities or our own entities for this |
I disagree with using source engine entities for block data storage: there are too many limitations And storing it Lua side would be easy, I just wanted your opinion on c++ or Lua for this |
actually, if map saving is done through c++, we might as well do bonus data in C++ |
Not too hard |
This means that each block will occupy more than 2 bytes (when we implement this)
kind of like damage values to store extra data in blocks??? how do we implement this???
how do we implement chests, for example?
The text was updated successfully, but these errors were encountered: