Skip to content

Commit

Permalink
refactor(objects): put the objects into their own classes
Browse files Browse the repository at this point in the history
  • Loading branch information
TGRHavoc committed May 5, 2021
1 parent 9bfbdcf commit cbf5f6f
Showing 1 changed file with 16 additions and 29 deletions.
45 changes: 16 additions & 29 deletions js/src/first_bundle/objects.js
@@ -1,31 +1,18 @@
// ************************************************************************** //
// LiveMap Interface - The web interface for the livemap
// Copyright (C) 2017 Jordan Dalton
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program in the file "LICENSE". If not, see <http://www.gnu.org/licenses/>.
// ************************************************************************** //

function Coordinates(x, y, z) {
this.x = x;
this.y = y;
this.z = z;
class Coordinates{
constructor(x, y, z){
this.x = x;
this.y = y;
this.z = z;
}
}

function MarkerObject(reference, position, type, description, data) {
this.reference = reference;
this.position = position;
this.type = type;
this.description = description;
this.data = data;
};
class MarkerObject {
constructor(reference, position, type, description, data){
this.reference = reference;
this.position = position;
this.type = type;
this.description = description;
this.data = data;
}

}

0 comments on commit cbf5f6f

Please sign in to comment.