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

store objects in LMDB #7

Open
OrangeTide opened this issue Sep 10, 2022 · 1 comment
Open

store objects in LMDB #7

OrangeTide opened this issue Sep 10, 2022 · 1 comment
Assignees
Labels
Milestone

Comments

@OrangeTide
Copy link
Owner

use LMDB to store game objects.

@OrangeTide OrangeTide added this to the 1.0 release milestone Sep 10, 2022
@OrangeTide
Copy link
Owner Author

recommend that objects be stored in SExp format. see https://people.csail.mit.edu/rivest/Sexp.txt

Objects have an internal ID that is globally unique, like an inode. This is the key for the row in the database and isn't normally visible to MUD builders.
Externally objects appear to have a full path. Room-like objects might have a path like: /zones/big_castle/potato_cave/entrance

Implementation is as follows:
In the object's data (SExpr or JSON) are properties dedicated to representing a folder/directory structure.
See https://www.mongodb.com/docs/manual/applications/data-models-tree-structures/ for how this can work.

A utility function to convert an object path name to internal key representation will be useful.

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

No branches or pull requests

1 participant