HollowBond/Public/ecma/Models/EntityModel.ecma.js

21 lines
676 B
JavaScript

"use strict";
const EntityModel = (function(){
const EntityModel = function(hollow_bond, inputs){
const self = this;
this.id = Common.get_value("id", inputs, "") || hollow_bond.get_id("entity");
this.x = Common.get_value("x", inputs, 0);
this.y = Common.get_value("y", inputs, 0);
this.z = Common.get_value("z", inputs, 0);
this.width = Common.get_value("width", inputs, 0);
this.height = Common.get_value("height", inputs, 0);
this.depth = Common.get_value("depth", inputs, 0);
this.speed = hollow_bond.settings.get(["speed", "entity_speed"], inputs, 6.0);
};
return EntityModel;
})();