Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 8, 2015, 11:15:11 PM (10 years ago)
Author:
landauf
Message:

wrap ConsoleCommands in StaticallyInitializedInstances

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/command/ConsoleCommand.cc

    r10348 r10352  
    8484            this->executor_ = executor;
    8585
    86         ConsoleCommandManager::registerCommand(group, name, this);
     86        this->names_.push_back(CommandName(group, name));
    8787    }
    8888
     
    100100    ConsoleCommand& ConsoleCommand::addShortcut()
    101101    {
    102         ConsoleCommandManager::registerCommand("", this->baseName_, this);
     102        this->names_.push_back(CommandName("", this->baseName_));
    103103        return *this;
    104104    }
     
    109109    ConsoleCommand& ConsoleCommand::addShortcut(const std::string&  name)
    110110    {
    111         ConsoleCommandManager::registerCommand("", name, this);
     111        this->names_.push_back(CommandName("", name));
    112112        return *this;
    113113    }
     
    118118    ConsoleCommand& ConsoleCommand::addGroup(const std::string& group)
    119119    {
    120         ConsoleCommandManager::registerCommand(group, this->baseName_, this);
     120        this->names_.push_back(CommandName(group, this->baseName_));
    121121        return *this;
    122122    }
     
    127127    ConsoleCommand& ConsoleCommand::addGroup(const std::string& group, const std::string&  name)
    128128    {
    129         ConsoleCommandManager::registerCommand(group, name, this);
     129        this->names_.push_back(CommandName(group, name));
    130130        return *this;
    131131    }
Note: See TracChangeset for help on using the changeset viewer.