Skip to content

Commit 712214f

Browse files
committed
Fix the module exports and migrate id,name,description
1 parent 1567921 commit 712214f

File tree

13 files changed

+52
-52
lines changed

13 files changed

+52
-52
lines changed

coin-pickup-game/src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ const Themes = [
2323
}
2424
]
2525

26-
module.exports = class CoinPickupGame extends BasePlugin {
26+
export default class CoinPickupGame extends BasePlugin {
2727

2828
/** Plugin info */
29-
static get id() { return 'vatominc-coin-pickup-game' }
30-
static get name() { return 'Coin Pickup Game' }
31-
static get description() { return 'A game where users can walk over coins to collect them.' }
29+
static id = "vatominc-coin-pickup-game"
30+
static name = "Coin Pickup Game"
31+
static description = "A game where users can walk over coins to collect them."
3232

3333
/** Current number of coins collected */
3434
score = 0

fps-hud/src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ function clamp(value, min, max) {
1515
/**
1616
* Creates a plugin that shows an FPS-like HUD
1717
*/
18-
module.exports = class FPSHUDPlugin extends BasePlugin {
18+
export default class FPSHUDPlugin extends BasePlugin {
1919

2020
/** Plugin info */
21-
static get id() { return 'fps-hud' }
22-
static get name() { return 'First Person Shooter HUD' }
23-
static get description() { return 'An overlay that displays information such as health, armor and more.' }
21+
static id = "fps-hud"
22+
static name = "First Person Shooter HUD"
23+
static description = "An overlay that displays information such as health, armor and more."
2424

2525
/** @private Maximum amount of health */
2626
maxHealth = 100

gun-2.0/src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* @license MIT
77
* @author FrancoBolevin
88
*/
9-
module.exports = class GunPlugin2 extends BasePlugin {
9+
export default class GunPlugin2 extends BasePlugin {
1010

1111
/** Plugin info */
12-
static get id() { return 'gunplugin2' }
13-
static get name() { return 'Gun shooting game 2.0' }
14-
static get description() { return 'A game where users can shoot a projectile from a gun.' }
12+
static id = "gunplugin2"
13+
static name = "Gun shooting game 2.0"
14+
static description = "A game where users can shoot a projectile from a gun."
1515

1616
/** Called when the plugin is loaded */
1717
async onLoad() {

gun/src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* @license MIT
77
* @author FrancoBolevin
88
*/
9-
module.exports = class GunPlugin extends BasePlugin {
9+
export default class GunPlugin extends BasePlugin {
1010

1111
/** Plugin info */
12-
static get id() { return 'gunplugin' }
13-
static get name() { return 'Gun shooting game' }
14-
static get description() { return 'A game where users can shoot a projectile from a gun.' }
12+
static id = "gunplugin"
13+
static name = "Gun shooting game"
14+
static description = "A game where users can shoot a projectile from a gun."
1515

1616
/** Called when the plugin is loaded */
1717
async onLoad() {

iframe-alert/src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* @license MIT
77
* @author jjv360
88
*/
9-
module.exports = class IframeAlert extends BasePlugin {
9+
export default class IframeAlert extends BasePlugin {
1010

1111
/** Plugin info */
12-
static get id() { return 'iframe-alert' }
13-
static get name() { return 'Custom UI Popup' }
14-
static get description() { return 'Tests the ability to display custom UI within the app.' }
12+
static id = "iframe-alert"
13+
static name = "Custom UI Popup"
14+
static description = "Tests the ability to display custom UI within the app."
1515

1616
/** Called when the plugin is loaded */
1717
async onLoad() {

land-mine/src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ function clamp(value, min, max) {
1212
return Math.max(min, Math.min(value, max))
1313
}
1414

15-
module.exports = class LandMinePlugin extends BasePlugin {
15+
export default class LandMinePlugin extends BasePlugin {
1616

1717
/** Plugin info */
18-
static get id() { return 'land-mine-plugin' }
19-
static get name() { return 'Land Mines' }
20-
static get description() { return 'Allows for creation of explosive, proximity-based land mines' }
18+
static id = "land-mine-plugin"
19+
static name = "Land Mines"
20+
static description = "Allows for creation of explosive, proximity-based land mines"
2121

2222
/** Called when the plugin is loaded */
2323
onLoad() {

physics/src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
/** Determines the interval of state transfer over the network, in milliseconds */
1414
const StateTransferInterval = 100
1515

16-
module.exports = class Physics extends BasePlugin {
16+
export default class Physics extends BasePlugin {
1717

1818
/** Plugin info */
19-
static get id() { return 'vatominc-physics' }
20-
static get name() { return 'Physics' }
21-
static get description() { return 'Allows objects in the space to have physics.' }
19+
static id = "vatominc-physics"
20+
static name = "Physics"
21+
static description = "Allows objects in the space to have physics."
2222

2323
/** Position of user in the x direction */
2424
userX = 0

popup-message/src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
* @license MIT
1010
* @author Vatom Inc.
1111
*/
12-
module.exports = class PopupMessage extends BasePlugin {
12+
export default class PopupMessage extends BasePlugin {
1313

1414
/** Plugin info */
15-
static get id() { return 'vatominc-popup-message' }
16-
static get name() { return 'Popup Message' }
17-
static get description() { return 'Display a message, in a popup, to users when they enter the space.' }
15+
static id = "vatominc-popup-message"
16+
static name = "Popup Message"
17+
static description = "Display a message, in a popup, to users when they enter the space."
1818

1919
/** Called when the plugin is loaded */
2020
async onLoad() {

portal/src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
* @license MIT
1010
* @author Vatom Inc.
1111
*/
12-
module.exports = class PortalPlugin extends BasePlugin {
12+
export default class PortalPlugin extends BasePlugin {
1313

1414
/** Plugin info */
15-
static get id() { return 'vatominc-portals' }
16-
static get name() { return 'Portals' }
17-
static get description() { return 'Allow users to teleport to different areas within the space.' }
15+
static id = "vatominc-portals"
16+
static name = "Portals"
17+
static description = "Allow users to teleport to different areas within the space."
1818

1919
/** All loaded portals */
2020
portals = []

spawn-plugin/src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
* @license MIT
88
* @author zmaqutu
99
*/
10-
module.exports = class SpawnPlugin extends BasePlugin {
10+
export default class SpawnPlugin extends BasePlugin {
1111

1212
/** Plugin info */
13-
static get id() { return 'spawn-plugin' }
14-
static get name() { return 'Spawn Plugin' }
15-
static get description() { return "Spawns the user's avatar at a random place in the space." }
13+
static id = "spawn-plugin"
14+
static name = "Spawn Plugin"
15+
static description = "Spawns the user's avatar at a random place in the space."
1616

1717
/** List of all spawn discs in the space */
1818
spawnObjectIDs = []

0 commit comments

Comments
 (0)