Browse Source

Remove commands list from manifest

pull/8/head
Anton Tarasenko 3 years ago
parent
commit
51c6a5e0ab
  1. 4
      sources/Commands/Commands_Feature.uc
  2. 4
      sources/Manifest.uc
  3. 3
      sources/_manifest.uc

4
sources/Commands/Commands_Feature.uc

@ -20,8 +20,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with Acedia. If not, see <https://www.gnu.org/licenses/>. * along with Acedia. If not, see <https://www.gnu.org/licenses/>.
*/ */
class Commands_Feature extends Feature class Commands_Feature extends Feature;
config(AcediaSystem);
// Delimiters that always separate command name from it's parameters // Delimiters that always separate command name from it's parameters
var private array<Text> commandDelimiters; var private array<Text> commandDelimiters;
@ -38,6 +37,7 @@ var LoggerAPI.Definition errCommandDuplicate;
protected function OnEnabled() protected function OnEnabled()
{ {
registeredCommands = _.collections.EmptyAssociativeArray(); registeredCommands = _.collections.EmptyAssociativeArray();
RegisterCommand(class'ACommandHelp');
_.unreal.broadcasts.OnHandleText(self).connect = HandleText; _.unreal.broadcasts.OnHandleText(self).connect = HandleText;
// Macro selector // Macro selector
commandDelimiters[0] = P("@"); commandDelimiters[0] = P("@");

4
sources/Manifest.uc

@ -24,10 +24,6 @@ defaultproperties
{ {
features(0) = class'Commands_Feature' features(0) = class'Commands_Feature'
features(1) = class'Avarice_Feature' features(1) = class'Avarice_Feature'
commands(0) = class'ACommandHelp'
commands(1) = class'ACommandDosh'
commands(2) = class'ACommandNick'
commands(3) = class'ACommandTrader'
services(0) = class'ConnectionService' services(0) = class'ConnectionService'
services(1) = class'PlayerService' services(1) = class'PlayerService'
aliasSources(0) = class'AliasSource' aliasSources(0) = class'AliasSource'

3
sources/_manifest.uc

@ -27,9 +27,6 @@ var public const array< class<AliasSource> > aliasSources;
// List of features in this manifest's package. // List of features in this manifest's package.
var public const array< class<Feature> > features; var public const array< class<Feature> > features;
// List of commands in this manifest's package.
var public const array< class<Command> > commands;
// List of test cases in this manifest's package. // List of test cases in this manifest's package.
var public const array< class<TestCase> > testCases; var public const array< class<TestCase> > testCases;

Loading…
Cancel
Save