Skip to content
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

Open
SwadicalRag opened this issue May 15, 2017 · 8 comments
Open

Block extra data #40

SwadicalRag opened this issue May 15, 2017 · 8 comments

Comments

@SwadicalRag
Copy link
Member

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?

@SwadicalRag
Copy link
Member Author

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????

@SwadicalRag
Copy link
Member Author

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

@xaviergmail
Copy link
Member

xaviergmail commented May 15, 2017 via email

@MDFL64
Copy link
Member

MDFL64 commented May 15, 2017

wtf, just store it lua-side

@MDFL64
Copy link
Member

MDFL64 commented May 15, 2017

moreover, just use source's builtin entities or our own entities for this

@SwadicalRag
Copy link
Member Author

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

@SwadicalRag
Copy link
Member Author

actually, if map saving is done through c++, we might as well do bonus data in C++

@SwadicalRag
Copy link
Member Author

Not too hard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants