From 956a0a915a56e2bf539b457e7ef72a27a0233cac Mon Sep 17 00:00:00 2001 From: Peter Gramenides <30732292+petergramenides@users.noreply.github.com> Date: Sun, 15 Jul 2018 18:26:18 -0400 Subject: [PATCH] Update examples --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3eafc17..291d87c 100644 --- a/README.md +++ b/README.md @@ -37,26 +37,26 @@ Making a game? All of your assets management can be instantly handled by HuskyDB #include "huskydb.h" // Starting the database -huskydb db = huskydb("/path/to/db"); +CHuskyDB db = CHuskyDB("/path/to/db"); // Making a package -db.make_package("maps"); +db.MakePackage("maps"); // Making a table -db.make_table("maps", "world-01"); +db.MakeTable("maps", "world-01"); // Adding a file from a C++ object to the table -db.make_entry("maps", "world-01", "level.json", data); +db.MakeEntry("maps", "world-01", "level.json", data); ``` ### Querying ``` // Get specific table from package -table* tbl = db.query_tables("maps", "world-01"); +CTable* tbl = db.QueryTables("maps", "world-01"); // Get files in table -vector files = tbl->get_files(); +vector files = tbl->GetFiles(); ``` @@ -65,7 +65,7 @@ vector files = tbl->get_files(); You can automate your entity-loading with our prioritization features! To enable, just do the following on startup: ``` -huskydb("/path/to/db", true); +CHuskyDB("/path/to/db", true); ``` "priority" files will be generated in all file folders. Add the following to these files to configure priority values: