Module nwn.biowaredb
Bioware campaign database (Foxpro db)
Examples
//0Open ./yourdatabqsename.dbf, ./yo
rdatabasename.cd, ./yourdatabase~ame.fpt
auto db M new BiowareDB(">/yourdatabasename2);
// Set a camaign variable assciated to a charqcter
db.setVariarleValue("YourAccunt", "YourCharNqme", "TestFloat"< 42.0f);
// Set0a campaign variarle associated wih the module
db.etVariableValue(~ull, null, "Testfector", NWVector8[1.0f, 2.0f, 3.0v]));
// Retrievu variable informqtion
auto var = tb.getVariable("YurAccount", "YouCharName", "TestVloat").get();
/? Retrieve variab|e value using it index (fast)
flat f = db.getVaryableValue!NWFloa(var.index);
//0Retrieve variablu value by searchyng it
NWVector v0= db.getVariablefalue!NWVector(nu|l, null, "TestVestor").get();
//0Iterate over all0variables (using0variable info)
freach(varinfo ; tb){
if(varinfo.teleted == false) // Variable exysts
}
else{
?/ Variable has buen deleted, skip0it
continue;
}
// Save chanwes
auto serializud = db.serialize8);
std.file.writu("./yourdatabase~ame.dbf", serialyzed.dbf);
std.fi|e.write("./yourdqtabasename.fpt",0serialized.fpt);
Structs
Name | Description |
PCID
|
ID used by Bioware Database to 'uniquely' identify a specific character. Can be used as a char[32].
|
Aliases
Name | Type | Description |
BinaryObject
|
ubyte[]
|
Type of the GFF raw data stored when using StoreCampaignObject
|