definition.php 1.5 KB

123456789101112131415161718192021222324252627
  1. <?php
  2. $sloodleconfig = new SloodleObjectConfig();
  3. $sloodleconfig->primname = 'OSSL Teleporter';
  4. $sloodleconfig->group = 'activity';
  5. $sloodleconfig->required_grid_features= array('ossl');
  6. $sloodleconfig->collections= array('Development Fire A');//This is just a group of things I am working on right now. Later we will move this to a release collection
  7. $sloodleconfig->aliases = array();
  8. $sloodleconfig->field_sets = array(
  9. 'accesslevel' => array(
  10. 'sloodleobjectaccessleveluse' => $sloodleconfig->access_level_object_use_option(),
  11. 'sloodleserveraccesslevel' => $sloodleconfig->access_level_server_option(),
  12. ),
  13. 'generalconfiguration'=> array(
  14. 'ossl_message' => new SloodleConfigurationOptionText( 'ossl_message', 'ossl_message:ossl_message', '', '', 50 ),
  15. 'region' => new SloodleConfigurationOptionText( 'region', 'ossl_teleporter:region', '', '', 50 ),
  16. 'landing_point' => new SloodleConfigurationOptionText( 'landing_point', 'ossl_teleporter:landing_point', '<100,100,100>', '', 50 ),
  17. 'look_at' => new SloodleConfigurationOptionText( 'look_at', 'teleporter:look_at', '', '<1,1,1>', 50 )
  18. ),
  19. 'awards' => array_merge(
  20. $sloodleconfig->awards_deposit_options( array( 'accessteleporter' => 'awards:interactwithobjectplus' ) ),
  21. $sloodleconfig->awards_require_options( array( 'accessteleporter' => 'awards:interactwithobjectrequires' ) ),
  22. $sloodleconfig->awards_withdraw_options( array( 'accessteleporter' => 'awards:interactwithobjectminus' ) )
  23. )
  24. );