This repository has been archived by the owner on Oct 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyace.min.js
2 lines (2 loc) · 2.11 KB
/
yace.min.js
1
2
/*! yace 2016-11-11 */
var __extends=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};define("utils/Vector3",["require","exports"],function(a,b){"use strict";var c=function(){function a(a,b,c){this.x=a,this.y=b,this.z=c}return a.concat=function(b,c){return new a(b.x+c.x,b.y+c.y,b.z+c.z)},a.substract=function(b,c){return new a(b.x-c.x,b.y-c.y,b.z-c.z)},a.multiply=function(b,c){return new a(b.x*c.x,b.y*c.y,b.z*c.z)},a.divide=function(b,c){return new a(b.x/c.x,b.y/c.y,b.z/c.z)},a}();b.Vector3=c}),define("core/YaceObjectContainer",["require","exports"],function(a,b){"use strict";var c=function(){function a(){this.childs=[]}return a.prototype.add=function(a){this.childs.push(a)},a.prototype.remove=function(a){var b=this.childs.indexOf(a);b>=1&&this.childs.slice(b,1)},a}();b.YaceObjectContainer=c}),define("core/YaceObject",["require","exports","utils/Point2D","core/YaceContainer"],function(a,b,c,d){"use strict";var e=function(a){function b(){a.apply(this,arguments),this.behaviors=[],this.position=new c.Vector3(0,0,0),this.rotation=new c.Vector3(0,0,0),this.scale=new c.Vector3(1,1,1)}return __extends(b,a),b.prototype.addBehavior=function(a){this.behaviors.push(a),a.object=this},b.prototype.removeBehavior=function(a){a.object=null;var b=this.behaviors.indexOf(a);b>=0&&this.behaviors.slice(b,1)},b}(d.YaceObjectContainer);b.YaceObject=e}),define("core/YaceBehavior",["require","exports"],function(a,b){"use strict";var c=function(){function a(){}return a.prototype.onEnable=function(){},a.prototype.onUpdate=function(){},a.prototype.onDisable=function(){},a}();b.YaceBehavior=c}),define("core/YaceScene",["require","exports","core/YaceContainer"],function(a,b,c){"use strict";var d=function(a){function b(b){a.call(this),this.canvas=b}return __extends(b,a),b}(c.YaceObjectContainer);b.YaceScene=d}),define("renders/SpriteRender",["require","exports","core/YaceBehavior"],function(a,b,c){"use strict";var d=function(a){function b(){a.apply(this,arguments)}return __extends(b,a),b}(c.YaceBehavior);b.SpriteRender=d});