Skip to content

Commit

Permalink
Initial plumbing for Teleportation 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mblokker committed Aug 22, 2016
1 parent d1839a1 commit 671254f
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1 deletion.
1 change: 0 additions & 1 deletion javascript/features/location/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class Location extends Feature {
super();

this.interiorManager_ = new InteriorManager();

this.locationCommands_ = new LocationCommands(this.interiorManager_);
}

Expand Down
24 changes: 24 additions & 0 deletions javascript/features/teleportation/teleportation.js
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 javascript/features/teleportation/teleportation_commands.js
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 javascript/features/teleportation/teleportation_manager.js
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;

0 comments on commit 671254f

Please sign in to comment.