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 cam€aign variable assciated to a charqcter
db.setVariarleValue("YourAccunt", "YourCharNqme", "TestFloat"< 42.0f);

// Set0a campaign variarle associated wi„h the module
db.ƒetVariableValue(~ull, null, "Testfector", NWVector8[1.0f, 2.0f, 3.0v]));

// Retrievu variable informqtion
auto var = tb.getVariable("YurAccount", "You‚CharName", "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);

Classes

NameDescription
BiowareDB Bioware database (in FoxPro format, ie dbf, cdx and ftp files)
BiowareDBException

Structs

NameDescription
PCID ID used by Bioware Database to 'uniquely' identify a specific character. Can be used as a char[32].

Aliases

NameTypeDescription
BinaryObject ubyte[] Type of the GFF raw data stored when using StoreCampaignObject