-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial plumbing for Teleportation 2.0
- Loading branch information
Showing
4 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2016 Las Venturas Playground. All rights reserved. | ||
// Use of this source code is governed by the MIT license, a copy of which can | ||
// be found in the LICENSE file. | ||
|
||
const Feature = require('components/feature_manager/feature.js'); | ||
const TeleportationCommands = require('features/teleportation/teleportation_commands.js'); | ||
const TeleportationManager = require('features/teleportation/teleportation_manager.js'); | ||
|
||
// Implementation of the feature that handles teleportation in Las Venturas Playground. | ||
class Teleportation extends Feature { | ||
constructor() { | ||
super(); | ||
|
||
this.manager_ = new TeleportationManager(); | ||
this.commands_ = new TeleportationCommands(this.manager_); | ||
} | ||
|
||
dispose() { | ||
this.commands_.dispose(); | ||
this.manager_.dispose(); | ||
} | ||
} | ||
|
||
exports = Teleportation; |
16 changes: 16 additions & 0 deletions
16
javascript/features/teleportation/teleportation_commands.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright 2016 Las Venturas Playground. All rights reserved. | ||
// Use of this source code is governed by the MIT license, a copy of which can | ||
// be found in the LICENSE file. | ||
|
||
// Implements a series of commands related to teleportation in Las Venturas Playground. | ||
class TeleportationCommands { | ||
constructor(manager) { | ||
this.manager_ = manager; | ||
} | ||
|
||
dispose() { | ||
|
||
} | ||
} | ||
|
||
exports = TeleportationCommands; |
16 changes: 16 additions & 0 deletions
16
javascript/features/teleportation/teleportation_manager.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright 2016 Las Venturas Playground. All rights reserved. | ||
// Use of this source code is governed by the MIT license, a copy of which can | ||
// be found in the LICENSE file. | ||
|
||
// The teleportation manager provides back-end logic for the features provided as part of this module. | ||
class TeleportationManager { | ||
constructor() { | ||
|
||
} | ||
|
||
dispose() { | ||
|
||
} | ||
} | ||
|
||
exports = TeleportationManager; |