Talk:Persistence API
From NWNWiki
Contents |
[edit] Started By: Klingon Mage
[edit] Goals
- Should function with the same scripting regardless of the persistence engine used. You would simply #include nrs_persistence for example, and would get functions to store and retrieve variables.
- Should be open-ended so that, if new persistence systems appear, they can be easily incorporated. Klingon Mage 17:17, 19 Dec 2005 (PST)
[edit] Technical Notes
- I'd say a simple set of commands, well, really only two are needed for sure. Store and Retrieve. Database geeks refer to "crap" code (Create database, Retrieve data, Add data, Purge data) but I think the "create" aspect is handled by whatever persistence system the server admin chooses. Purging data, now, is another story. There might be a need for some functionality for purging data. Klingon Mage 17:17, 19 Dec 2005 (PST)
[edit] Importing
I am using Knat's NBDE. It seems to work pretty good and I like the code. We should ask Knat for the latest version to integrate into OSRS.
