Skip to content

Commit 9f99a17

Browse files
committed
First step in cleaning up the Playground feature
1 parent 77c83a2 commit 9f99a17

33 files changed

Lines changed: 47 additions & 66 deletions

javascript/features/playground/command.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// Copyright 2016 Las Venturas Playground. All rights reserved.
1+
// Copyright 2020 Las Venturas Playground. All rights reserved.
22
// Use of this source code is governed by the MIT license, a copy of which can
33
// be found in the LICENSE file.
44

5-
// The Command class forms the base class of all commands that can be toggled with the `/lvp access`
6-
// command, and has knowledge of several common objects.
7-
class Command {
5+
// The Command class forms the base class of all the fun commands that are provided through the
6+
// commands/ directory in this feature.
7+
export class Command {
88
constructor(announce, nuwani) {
99
this.announce_ = announce;
1010
this.nuwani_ = nuwani;
@@ -29,5 +29,3 @@ class Command {
2929

3030
dispose() {}
3131
}
32-
33-
export default Command;

javascript/features/playground/commands/autohello.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by the MIT license, a copy of which can
33
// be found in the LICENSE file.
44

5-
import Command from 'features/playground/command.js';
5+
import { Command } from 'features/playground/command.js';
66
import { CommandBuilder } from 'components/command_manager/command_builder.js';
77

88
// Minimum and maximum waits for a greet, in seconds.

javascript/features/playground/commands/autohello.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by the MIT license, a copy of which can
33
// be found in the LICENSE file.
44

5-
import MockPlaygroundCommands from 'features/playground/test/mock_playground_commands.js';
5+
import { MockPlaygroundCommands } from 'features/playground/test/mock_playground_commands.js';
66

77
describe('AutoHello', (it, beforeEach, afterEach) => {
88
let commands = null;

javascript/features/playground/commands/boost.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by the MIT license, a copy of which can
33
// be found in the LICENSE file.
44

5-
import Command from 'features/playground/command.js';
5+
import { Command } from 'features/playground/command.js';
66
import { CommandBuilder } from 'components/command_manager/command_builder.js';
77

88
// Command: /boost [player] [factor]

javascript/features/playground/commands/engine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by the MIT license, a copy of which can
33
// be found in the LICENSE file.
44

5-
import Command from 'features/playground/command.js';
5+
import { Command } from 'features/playground/command.js';
66
import { CommandBuilder } from 'components/command_manager/command_builder.js';
77

88
// Command: /engine [player]

javascript/features/playground/commands/fancy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by the MIT license, a copy of which can
33
// be found in the LICENSE file.
44

5-
import Command from 'features/playground/command.js';
5+
import { Command } from 'features/playground/command.js';
66
import { CommandBuilder } from 'components/command_manager/command_builder.js';
77
import { ScopedCallbacks } from 'base/scoped_callbacks.js';
88

javascript/features/playground/commands/fancy.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by the MIT license, a copy of which can
33
// be found in the LICENSE file.
44

5-
import MockPlaygroundCommands from 'features/playground/test/mock_playground_commands.js';
5+
import { MockPlaygroundCommands } from 'features/playground/test/mock_playground_commands.js';
66

77
describe('FancyCommand', (it, beforeEach, afterEach) => {
88
let commands = null;

javascript/features/playground/commands/flap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by the MIT license, a copy of which can
33
// be found in the LICENSE file.
44

5-
import Command from 'features/playground/command.js';
5+
import { Command } from 'features/playground/command.js';
66
import { CommandBuilder } from 'components/command_manager/command_builder.js';
77

88
import { random } from 'base/random.js';

javascript/features/playground/commands/fly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by the MIT license, a copy of which can
33
// be found in the LICENSE file.
44

5-
import Command from 'features/playground/command.js';
5+
import { Command } from 'features/playground/command.js';
66
import { CommandBuilder } from 'components/command_manager/command_builder.js';
77
import { ScopedCallbacks } from 'base/scoped_callbacks.js';
88

javascript/features/playground/commands/indicators.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by the MIT license, a copy of which can
33
// be found in the LICENSE file.
44

5-
import Command from 'features/playground/command.js';
5+
import { Command } from 'features/playground/command.js';
66
import { CommandBuilder } from 'components/command_manager/command_builder.js';
77

88
// Command: /indicators [player]

0 commit comments

Comments
 (0)