From 40afb93d61892ff40f73df5adce0bc040fce5fca Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 20 Mar 2024 15:29:41 -0500 Subject: [PATCH] added base-level multi-client support to table --- database.sqlite3 | Bin 20480 -> 28672 bytes setup_db | 16 +++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/database.sqlite3 b/database.sqlite3 index 625e1329758aa0eafd4445a557e45d50b1a8e70e..2096b119fda4e0bc2a6589c59acab6369575e12d 100644 GIT binary patch literal 28672 zcmeI2PfQ$D9DrxapZPyim=4>Dm7%o?0xiq3yDYZaZCwxxl+vvhsa+QsbOUASvbEB9 zfm=-v>a7=}iHUkKJ*fvZ-g+>-7^4^Cq4Cm04_<6~F}}CVZ}LZ zw%E~T^E1hrvj4J&ts7PcdqEE>Kn17(6`%rCfC^9nDnJFOz`qtKHY<_#c6lRS&d)6e ztIPTIptKhLP)<%~(%FokO`jOg_#yPWbWJNP_+yjV%xGrXpPC+ziXDSA3mzUYCaBeNQd?i?!59(evAeXv>UHm=M%g*fH=#!O*>&lzy%AA+-tL$qR zI+uZM1$eXaX5$`8s{%16o#rL0^~Mwkdar~nn90#tws{NDv43yRdza>$aR{n7r#>tGY9cbJdh!>YfKURMYof;*igPEWH;2BT4TZ zVC3j!0VBoMvm7(URL#(vhM`E%I|CT|O)<>{) z8VS)b31hKg0x&j=bIc4Ag5e+xMTTySV}7-0t!LW+gWNA(=NAp5t%qag78l%}f}z;0n`7n{7u~uTC^~6CgXU6EObx`GB!t2h1!AKE@yyjMWM559f$s!AAjO z!FIq{@DYxgU`!D7_Q6=Rf$m-yJ6Q8}BLKIyukwq`Yl8`pp63C^pT0c|bHRZ+K{p&e zfCXCtW5E`{NYL9282=~g0LF?o$1KNysAvHc6kQWwsK|dgdIrpj1$BnGV6;w93x`Ls zpb8iZDuA(IGhi&(1Q-i8a?AvyqF@6+LD1U;6W~3R0V73z|1UfDCH6%RDnJFO02QDD zRDcRl0V+TRr~nn90#smU6;R{`S7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_m2P6Z; zLjLD}*}f(5FM3b`DnJFO02QDDRDcRl0V+TRr~nn90(+}KP!2Ge|ItCo|NPJY=${@` zfC^9nDnJFO02QDDRDcRl0V+TRsK6dBK%f8j@Zpjg6`%rCfC^9nDnJFO02QDDRDcRl H0Vwb{Tc;$$ diff --git a/setup_db b/setup_db index 3e91186..0bc4302 100755 --- a/setup_db +++ b/setup_db @@ -6,19 +6,29 @@ sqlite3 database.sqlite3 " x TEXT, y TEXT, occupied_by_type TEXT, - occupied_by_id INTEGER + occupied_by_id INTEGER, + game_ref INTEGER ); CREATE TABLE IF NOT EXISTS entity_ref ( id INTEGER PRIMARY KEY AUTOINCREMENT, entity_id INTEGER, type TEXT, hp INTEGER, - inventory_ref INTEGER + inventory_ref INTEGER, + game_ref INTEGER ); CREATE TABLE IF NOT EXISTS player_inventory ( id INTEGER PRIMARY KEY AUTOINCREMENT, type TEXT, quantity INTEGER, - func_ref TEXT + game_ref INTEGER + ); + CREATE TABLE IF NOT EXISTS games ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + player_id INTEGER + ); + CREATE TABLE IF NOT EXISTS players ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + player_name TEXT ) "