Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
3.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. // -------------------------------------------------------
  3. // DO NOT EDIT
  4. // This file was generated from portal\portal_gcschema.sch by SchemaCompiler.EXE
  5. // on Mon Feb 22 13:22:55 2010
  6. // -------------------------------------------------------
  7. #include "cbase.h"
  8. #include "portal_gcschema.h"
  9. CSchGameAccount::CSchGameAccount()
  10. {
  11. memset( PubRecordFixed(), 0, CubRecordFixed() );
  12. }
  13. int CSchGameAccount::GetITable() const { return k_iTable; }
  14. CSchGameAccount::CSchGameAccount( const CSchGameAccount &that ) { *this = that; }
  15. void CSchGameAccount::operator=( const CSchGameAccount &that ) { CRecordBase::operator =( that ); }
  16. CSchGameAccountClient::CSchGameAccountClient()
  17. {
  18. memset( PubRecordFixed(), 0, CubRecordFixed() );
  19. }
  20. int CSchGameAccountClient::GetITable() const { return k_iTable; }
  21. CSchGameAccountClient::CSchGameAccountClient( const CSchGameAccountClient &that ) { *this = that; }
  22. void CSchGameAccountClient::operator=( const CSchGameAccountClient &that ) { CRecordBase::operator =( that ); }
  23. // statics for index IDs
  24. int CSchGameAccount::m_nPrimaryKeyID;
  25. int CSchGameAccountClient::m_nPrimaryKeyID;
  26. // other initializers
  27. // run-time initializer
  28. namespace PORTAL_GCSCHEMA
  29. {
  30. void GenerateIntrinsicSQLSchema( GCSDK::CSchemaFull &schemaFull )
  31. {
  32. GCSDK::CSchema *pSchema;
  33. pSchema = schemaFull.AddNewSchema();
  34. schemaFull.SetITable( pSchema, CSchGameAccount::k_iTable ); // 0
  35. pSchema->SetESchemaCatalog( GCSDK::k_ESchemaCatalogMain );
  36. pSchema->SetName( "GameAccount" );
  37. pSchema->EnsureFieldCount( CSchGameAccount::k_iFieldMax );
  38. pSchema->SetReportingInterval( 0 );
  39. pSchema->AddField( "unAccountID", "AccountID", k_EGCSQLType_int32, sizeof( uint32 ), 0, true, 0 );
  40. pSchema->AddField( "unRewardPoints", "RewardPoints", k_EGCSQLType_int32, sizeof( uint32 ), 0, true, 0 );
  41. pSchema->AddField( "unPointCap", "PointCap", k_EGCSQLType_int32, sizeof( uint32 ), 0, true, 0 );
  42. pSchema->AddField( "unLastCapRollover", "LastCapRollover", k_EGCSQLType_int32, sizeof( RTime32 ), 0, true, 0 );
  43. CSchGameAccount::m_nPrimaryKeyID = pSchema->PrimaryKey( true, 100, "unAccountID" );
  44. pSchema->SetTestWipePolicy( GCSDK::k_EWipePolicyWipeForAllTests );
  45. pSchema->SetBAllowWipeTableInProd( false );
  46. pSchema->CalcOffsets();
  47. schemaFull.CheckSchema( pSchema, CSchGameAccount::k_iFieldMax, sizeof( CSchGameAccount ) - sizeof( GCSDK::CRecordBase ) );
  48. pSchema->PrepareForUse();
  49. pSchema = schemaFull.AddNewSchema();
  50. schemaFull.SetITable( pSchema, CSchGameAccountClient::k_iTable ); // 1
  51. pSchema->SetESchemaCatalog( GCSDK::k_ESchemaCatalogMain );
  52. pSchema->SetName( "GameAccountClient" );
  53. pSchema->EnsureFieldCount( CSchGameAccountClient::k_iFieldMax );
  54. pSchema->SetReportingInterval( 0 );
  55. pSchema->AddField( "unAccountID", "AccountID", k_EGCSQLType_int32, sizeof( uint32 ), 0, true, 0 );
  56. CSchGameAccountClient::m_nPrimaryKeyID = pSchema->PrimaryKey( true, 80, "unAccountID" );
  57. pSchema->SetTestWipePolicy( GCSDK::k_EWipePolicyWipeForAllTests );
  58. pSchema->SetBAllowWipeTableInProd( false );
  59. pSchema->CalcOffsets();
  60. schemaFull.CheckSchema( pSchema, CSchGameAccountClient::k_iFieldMax, sizeof( CSchGameAccountClient ) - sizeof( GCSDK::CRecordBase ) );
  61. pSchema->PrepareForUse();
  62. schemaFull.FinishInit();
  63. }
  64. } // namespace