- Timestamp:
- Aug 28, 2010, 1:51:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/orxonox/gamestates/GSRoot.cc
r7233 r7236 45 45 static const std::string __CC_pause_name = "pause"; 46 46 47 _SetConsoleCommand("printObjects", &GSRoot::printObjects).hide();48 _SetConsoleCommand(__CC_setTimeFactor_name, &GSRoot::setTimeFactor).accessLevel(AccessLevel::Master).defaultValues(1.0);49 _SetConsoleCommand(__CC_pause_name, &GSRoot::pause ).accessLevel(AccessLevel::Master);47 SetConsoleCommand("printObjects", &GSRoot::printObjects).hide(); 48 SetConsoleCommand(__CC_setTimeFactor_name, &GSRoot::setTimeFactor).accessLevel(AccessLevel::Master).defaultValues(1.0); 49 SetConsoleCommand(__CC_pause_name, &GSRoot::pause ).accessLevel(AccessLevel::Master); 50 50 51 51 registerStaticNetworkFunction(&TimeFactorListener::setTimeFactor); … … 82 82 TimeFactorListener::setTimeFactor(1.0f); 83 83 84 _ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(this);85 _ModifyConsoleCommand(__CC_pause_name).setObject(this);84 ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(this); 85 ModifyConsoleCommand(__CC_pause_name).setObject(this); 86 86 } 87 87 88 88 void GSRoot::deactivate() 89 89 { 90 _ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(0);91 _ModifyConsoleCommand(__CC_pause_name).setObject(0);90 ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(0); 91 ModifyConsoleCommand(__CC_pause_name).setObject(0); 92 92 } 93 93
Note: See TracChangeset
for help on using the changeset viewer.