In-game resources views

* Added session records to carry resource information over to the
clients

* Added SQL support code for the various views

* Added interface and implementation of the resource information access
component

* Hooked resources information queries into both the empire and planet
management component

* Added resources display to planet and overview pages
This commit is contained in:
Emmanuel BENOîT 2012-02-04 10:43:12 +01:00
parent 56eddcc4f0
commit 597429fadf
45 changed files with 3211 additions and 52 deletions
legacyworlds-server-data/db-structure/tests/user/040-functions/025-resources

View file

@ -0,0 +1,11 @@
/*
* Test privileges on defs.resource_category_weight_view
*/
BEGIN;
SELECT plan( 1 );
SELECT diag_test_name( 'defs.resource_category_weight_view - Privileges' );
SELECT throws_ok( 'SELECT * FROM defs.resource_category_weight_view' , 42501 );
SELECT * FROM finish( );
ROLLBACK;

View file

@ -0,0 +1,11 @@
/*
* Test privileges on defs.ordered_resources_view
*/
BEGIN;
SELECT plan( 1 );
SELECT diag_test_name( 'defs.ordered_resources_view - Privileges' );
SELECT throws_ok( 'SELECT * FROM defs.ordered_resources_view' , 42501 );
SELECT * FROM finish( );
ROLLBACK;