summaryrefslogtreecommitdiff
path: root/game/shared/portal/portal_gcschema.sch
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/portal/portal_gcschema.sch
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/portal/portal_gcschema.sch')
-rw-r--r--game/shared/portal/portal_gcschema.sch38
1 files changed, 38 insertions, 0 deletions
diff --git a/game/shared/portal/portal_gcschema.sch b/game/shared/portal/portal_gcschema.sch
new file mode 100644
index 0000000..d9fe7a5
--- /dev/null
+++ b/game/shared/portal/portal_gcschema.sch
@@ -0,0 +1,38 @@
+START_SCHEMA( GC, cbase.h )
+
+//-----------------------------------------------------------------------------
+// GameAccount
+//
+//-----------------------------------------------------------------------------
+START_TABLE( k_ESchemaCatalogMain, GameAccount, TABLE_PROP_NORMAL )
+MEM_FIELD_BIN( unAccountID, AccountID, uint32 ) // Account ID of the user
+MEM_FIELD_BIN( unRewardPoints, RewardPoints, uint32 ) // number of timed reward points (coplayed minutes) for this user
+MEM_FIELD_BIN( unPointCap, PointCap, uint32 ) // Current maximum number of points
+MEM_FIELD_BIN( unLastCapRollover, LastCapRollover, RTime32 ) // Last time the player's cap was adjusted
+PRIMARY_KEY_CLUSTERED( 100, unAccountID )
+WIPE_TABLE_BETWEEN_TESTS( k_EWipePolicyWipeForAllTests )
+ALLOW_WIPE_TABLE_IN_PRODUCTION( false )
+END_TABLE
+
+
+//-----------------------------------------------------------------------------
+// GameAccountClient
+//
+//-----------------------------------------------------------------------------
+START_TABLE( k_ESchemaCatalogMain, GameAccountClient, TABLE_PROP_NORMAL )
+MEM_FIELD_BIN( unAccountID, AccountID, uint32 ) // Item Owner
+PRIMARY_KEY_CLUSTERED( 80, unAccountID )
+WIPE_TABLE_BETWEEN_TESTS( k_EWipePolicyWipeForAllTests )
+ALLOW_WIPE_TABLE_IN_PRODUCTION( false )
+END_TABLE
+
+
+
+
+// --------------------------------------------------------
+// WARNING! All new tables need to be added to the end of the file
+// if you expect to deploy the GC without deploying new clients.
+// --------------------------------------------------------
+
+// NEED A CARRIAGE RETURN HERE!
+//------------------------- \ No newline at end of file