diff --git a/demo/libs/framework/framework.d.ts b/demo/libs/framework/framework.d.ts index 9fcc4b0c..ed002368 100644 --- a/demo/libs/framework/framework.d.ts +++ b/demo/libs/framework/framework.d.ts @@ -702,32 +702,6 @@ declare module es { compareTo(other: SceneComponent): number; } } -declare module es { - class CollisionState { - right: boolean; - left: boolean; - above: boolean; - below: boolean; - becameGroundedThisFrame: boolean; - wasGroundedLastFrame: boolean; - isGroundedOnOnewayPlatform: boolean; - slopAngle: number; - readonly hasCollision: boolean; - _movementRemainderX: SubpixelNumber; - _movementRemainderY: SubpixelNumber; - reset(): void; - toString(): string; - } - class TiledMapMover extends Component { - colliderHorizontalInset: number; - colliderVerticalInset: number; - _boxColliderBounds: Rectangle; - constructor(); - testCollisions(motion: Vector2, boxColliderBounds: Rectangle, collisionState: CollisionState): void; - testMapCollision(collisionRect: Rectangle, direction: Edge, collisionState: CollisionState, collisionResponse: number): void; - collisionRectForSide(side: Edge, motion: number): Rectangle; - } -} declare module es { interface ITriggerListener { onTriggerEnter(other: Collider, local: Collider): any; @@ -2447,7 +2421,7 @@ declare module es { } } declare module es { - class Ref { + class Ref { value: T; constructor(value: T); } diff --git a/demo/libs/framework/framework.js b/demo/libs/framework/framework.js index 8ba9dcbb..ab07e89e 100644 --- a/demo/libs/framework/framework.js +++ b/demo/libs/framework/framework.js @@ -3188,85 +3188,6 @@ var es; es.SceneComponent = SceneComponent; })(es || (es = {})); var es; -(function (es) { - var CollisionState = (function () { - function CollisionState() { - } - Object.defineProperty(CollisionState.prototype, "hasCollision", { - get: function () { - return this.below || this.right || this.left || this.above; - }, - enumerable: true, - configurable: true - }); - CollisionState.prototype.reset = function () { - this.becameGroundedThisFrame = this.isGroundedOnOnewayPlatform = this.right = this.left = this.above = this.below = false; - this.slopAngle = 0; - }; - CollisionState.prototype.toString = function () { - return "[CollisionState] r: " + this.right + ", l: " + this.left + ", a: " + this.above + ", b: " + this.below + ", angle: " + this.slopAngle + ", wasGroundedLastFrame: " + this.wasGroundedLastFrame + ", becameGroundedThisFrame: " + this.becameGroundedThisFrame; - }; - return CollisionState; - }()); - es.CollisionState = CollisionState; - var TiledMapMover = (function (_super) { - __extends(TiledMapMover, _super); - function TiledMapMover() { - var _this = _super.call(this) || this; - _this.colliderHorizontalInset = 2; - _this.colliderVerticalInset = 6; - return _this; - } - TiledMapMover.prototype.testCollisions = function (motion, boxColliderBounds, collisionState) { - this._boxColliderBounds = boxColliderBounds; - collisionState.wasGroundedLastFrame = collisionState.below; - collisionState.reset(); - var motionX = motion.x; - var motionY = motion.y; - if (motionX != 0) { - var direction = motionX > 0 ? es.Edge.right : es.Edge.left; - var sweptBounds = this.collisionRectForSide(direction, motionX); - var collisionResponse = 0; - if (this.testMapCollision(sweptBounds, direction, collisionState, collisionResponse)) { - motion.x = collisionResponse - es.RectangleExt.getSide(boxColliderBounds, direction); - collisionState.left = direction == es.Edge.left; - collisionState.right = direction == es.Edge.right; - collisionState._movementRemainderX.reset(); - } - else { - collisionState.left = false; - collisionState.right = false; - } - } - }; - TiledMapMover.prototype.testMapCollision = function (collisionRect, direction, collisionState, collisionResponse) { - var side = es.EdgeExt.oppositeEdge(direction); - var perpindicularPosition = es.EdgeExt.isVertical(side) ? collisionRect.center.x : collisionRect.center.y; - var leadingPosition = es.RectangleExt.getSide(collisionRect, direction); - var shouldTestSlopes = es.EdgeExt.isVertical(side); - }; - TiledMapMover.prototype.collisionRectForSide = function (side, motion) { - var bounds; - if (es.EdgeExt.isHorizontal(side)) { - bounds = es.RectangleExt.getRectEdgePortion(this._boxColliderBounds, side); - } - else { - bounds = es.RectangleExt.getHalfRect(this._boxColliderBounds, side); - } - if (es.EdgeExt.isVertical(side)) { - es.RectangleExt.contract(bounds, this.colliderHorizontalInset, 0); - } - else { - es.RectangleExt.contract(bounds, 0, this.colliderVerticalInset); - } - es.RectangleExt.expandSide(bounds, side, motion); - return bounds; - }; - return TiledMapMover; - }(es.Component)); - es.TiledMapMover = TiledMapMover; -})(es || (es = {})); -var es; (function (es) { var Mover = (function (_super) { __extends(Mover, _super); diff --git a/demo/libs/framework/framework.min.js b/demo/libs/framework/framework.min.js index cd13f762..f7b39bf8 100644 --- a/demo/libs/framework/framework.min.js +++ b/demo/libs/framework/framework.min.js @@ -1 +1 @@ -window.es={},window.__extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();var transform,__awaiter=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(r,o){function s(t){try{h(n.next(t))}catch(t){o(t)}}function a(t){try{h(n.throw(t))}catch(t){o(t)}}function h(t){t.done?r(t.value):new i(function(e){e(t.value)}).then(s,a)}h((n=n.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]-1}(this,t)},Array.prototype.firstOrDefault=function(t){return function(t,e){var i=t.findIndex(e);return-1==i?null:t[i]}(this,t)},Array.prototype.find=function(t){return function(t,e){return t.firstOrDefault(e)}(this,t)},Array.prototype.where=function(t){return function(t,e){if("function"==typeof t.reduce)return t.reduce(function(i,n,r){return e.call(arguments[2],n,r,t)&&i.push(n),i},[]);for(var i=[],n=0,r=t.length;n=0&&t.splice(i,1)}while(i>=0)}(this,t)},Array.prototype.remove=function(t){return function(t,e){var i=t.findIndex(function(t){return t===e});return i>=0&&(t.splice(i,1),!0)}(this,t)},Array.prototype.removeAt=function(t){return function(t,e){t.splice(e,1)}(this,t)},Array.prototype.removeRange=function(t,e){return function(t,e,i){t.splice(e,i)}(this,t,e)},Array.prototype.select=function(t){return function(t,e){if("function"==typeof t.reduce)return t.reduce(function(i,n,r){return i.push(e.call(arguments[2],n,r,t)),i},[]);for(var i=[],n=0,r=t.length;no?1:-1}),t}(this,t,e)},Array.prototype.orderByDescending=function(t,e){return function(t,e,i){return t.sort(function(t,n){var r=e(t),o=e(n);return i?-i(r,o):r0;){if("break"===u())break}return s?this.recontructPath(a,n,r):null},e.recontructPath=function(t,e,i){var n=[],r=i;for(n.push(i);r!=e;)r=this.getKey(t,r),n.push(r);return n.reverse(),n},e.hasKey=function(e,i){for(var n,r=e.keys();!(n=r.next()).done;){if(n.value instanceof t.Vector2&&i instanceof t.Vector2&&n.value.equals(i))return!0;if(n.value==i)return!0}return!1},e.getKey=function(e,i){for(var n,r,o=e.keys(),s=e.values();n=o.next(),r=s.next(),!n.done;){if(n.value instanceof t.Vector2&&i instanceof t.Vector2&&n.value.equals(i))return r.value;if(n.value==i)return r.value}return null},e}();t.AStarPathfinder=e;var i=function(t){function e(e){var i=t.call(this)||this;return i.data=e,i}return __extends(e,t),e}(t.PriorityQueueNode)}(es||(es={})),function(t){var e=function(){function e(e,i){this.dirs=[new t.Vector2(1,0),new t.Vector2(0,-1),new t.Vector2(-1,0),new t.Vector2(0,1)],this.walls=[],this.weightedNodes=[],this.defaultWeight=1,this.weightedNodeWeight=5,this._neighbors=new Array(4),this._width=e,this._height=i}return e.prototype.isNodeInBounds=function(t){return 0<=t.x&&t.x=this._nodes.length?(console.error("node.QueueIndex has been corrupted. Did you change it manually? Or add this node to another queue?"),!1):this._nodes[t.queueIndex]==t:(console.error("node cannot be null"),!1)},t.prototype.enqueue=function(t,e){t.priority=e,this._numNodes++,this._nodes[this._numNodes]=t,t.queueIndex=this._numNodes,t.insertionIndex=this._numNodesEverEnqueued++,this.cascadeUp(this._nodes[this._numNodes])},t.prototype.dequeue=function(){var t=this._nodes[1];return this.remove(t),t},t.prototype.remove=function(t){if(t.queueIndex==this._numNodes)return this._nodes[this._numNodes]=null,void this._numNodes--;var e=this._nodes[this._numNodes];this.swap(t,e),delete this._nodes[this._numNodes],this._numNodes--,this.onNodeUpdated(e)},t.prototype.isValidQueue=function(){for(var t=1;t0&&this.hasHigherPriority(t,i)?this.cascadeUp(t):this.cascadeDown(t)},t.prototype.cascadeDown=function(t){for(var e,i=t.queueIndex;;){e=t;var n=2*i;if(n>this._numNodes){t.queueIndex=i,this._nodes[i]=t;break}var r=this._nodes[n];this.hasHigherPriority(r,e)&&(e=r);var o=n+1;if(o<=this._numNodes){var s=this._nodes[o];this.hasHigherPriority(s,e)&&(e=s)}if(e==t){t.queueIndex=i,this._nodes[i]=t;break}this._nodes[i]=e;var a=e.queueIndex;e.queueIndex=i,i=a}},t.prototype.cascadeUp=function(t){for(var e=Math.floor(t.queueIndex/2);e>=1;){var i=this._nodes[e];if(this.hasHigherPriority(i,t))break;this.swap(t,i),e=Math.floor(t.queueIndex/2)}},t.prototype.swap=function(t,e){this._nodes[t.queueIndex]=e,this._nodes[e.queueIndex]=t;var i=t.queueIndex;t.queueIndex=e.queueIndex,e.queueIndex=i},t.prototype.hasHigherPriority=function(t,e){return t.priority0;){if("break"===h())break}return o?t.AStarPathfinder.recontructPath(a,i,n):null},e.hasKey=function(t,e){for(var i,n=t.keys();!(i=n.next()).done;)if(JSON.stringify(i.value)==JSON.stringify(e))return!0;return!1},e}();t.BreadthFirstPathfinder=e}(es||(es={})),function(t){var e=function(){function t(){this.edges=new Map}return t.prototype.addEdgesForNode=function(t,e){return this.edges.set(t,e),this},t.prototype.getNeighbors=function(t){return this.edges.get(t)},t}();t.UnweightedGraph=e}(es||(es={})),function(t){var e=function(){function e(t,e){this.x=0,this.y=0,this.x=t||0,this.y=null!=e?e:this.x}return Object.defineProperty(e,"zero",{get:function(){return new e(0,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"one",{get:function(){return new e(1,1)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"unitX",{get:function(){return new e(1,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"unitY",{get:function(){return new e(0,1)},enumerable:!0,configurable:!0}),e.add=function(t,i){var n=new e(0,0);return n.x=t.x+i.x,n.y=t.y+i.y,n},e.divide=function(t,i){var n=new e(0,0);return n.x=t.x/i.x,n.y=t.y/i.y,n},e.multiply=function(t,i){var n=new e(0,0);return n.x=t.x*i.x,n.y=t.y*i.y,n},e.subtract=function(t,i){var n=new e(0,0);return n.x=t.x-i.x,n.y=t.y-i.y,n},e.normalize=function(t){var i=new e(t.x,t.y),n=1/Math.sqrt(i.x*i.x+i.y*i.y);return i.x*=n,i.y*=n,i},e.dot=function(t,e){return t.x*e.x+t.y*e.y},e.distanceSquared=function(t,e){var i=t.x-e.x,n=t.y-e.y;return i*i+n*n},e.clamp=function(i,n,r){return new e(t.MathHelper.clamp(i.x,n.x,r.x),t.MathHelper.clamp(i.y,n.y,r.y))},e.lerp=function(i,n,r){return new e(t.MathHelper.lerp(i.x,n.x,r),t.MathHelper.lerp(i.y,n.y,r))},e.transform=function(t,i){return new e(t.x*i.m11+t.y*i.m21+i.m31,t.x*i.m12+t.y*i.m22+i.m32)},e.distance=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)},e.angle=function(i,n){return i=e.normalize(i),n=e.normalize(n),Math.acos(t.MathHelper.clamp(e.dot(i,n),-1,1))*t.MathHelper.Rad2Deg},e.negate=function(t){return t.x=-t.x,t.y=-t.y,t},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.divide=function(t){return this.x/=t.x,this.y/=t.y,this},e.prototype.multiply=function(t){return this.x*=t.x,this.y*=t.y,this},e.prototype.subtract=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.normalize=function(){var t=1/Math.sqrt(this.x*this.x+this.y*this.y);this.x*=t,this.y*=t},e.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lengthSquared=function(){return this.x*this.x+this.y*this.y},e.prototype.round=function(){return new e(Math.round(this.x),Math.round(this.y))},e.prototype.equals=function(t){return t instanceof e&&(t.x==this.x&&t.y==this.y)},e}();t.Vector2=e}(es||(es={})),function(t){var e=function(){function e(t,i,n){void 0===n&&(n=!1),this.walls=[],this._neighbors=new Array(4),this._width=t,this._hegiht=i,this._dirs=n?e.COMPASS_DIRS:e.CARDINAL_DIRS}return e.prototype.isNodeInBounds=function(t){return 0<=t.x&&t.x0;){if("break"===u())break}return s?this.recontructPath(a,n,r):null},i.recontructPath=function(t,e,i){var n=[],r=i;for(n.push(i);r!=e;)r=this.getKey(t,r),n.push(r);return n.reverse(),n},i.hasKey=function(t,e){for(var i,n=t.keys();!(i=n.next()).done;)if(JSON.stringify(i.value)==JSON.stringify(e))return!0;return!1},i.getKey=function(t,e){for(var i,n,r=t.keys(),o=t.values();i=r.next(),n=o.next(),!i.done;)if(JSON.stringify(i.value)==JSON.stringify(e))return n.value;return null},i}();t.WeightedPathfinder=i}(es||(es={})),function(t){var e=function(){function e(){this._opened=new Array(e.MAX_NODES),this._closed=new Array(e.MAX_NODES)}return e.prototype.clear=function(){for(var e=0;e0},e.prototype.removeOpened=function(t){this._numOpened>0&&(this._opened[this._lastFoundOpened]=this._opened[this._numOpened-1]),this._numOpened--},e.prototype.removeClosed=function(t){this._numClosed>0&&(this._closed[this._lastFoundClosed]=this._closed[this._numClosed-1]),this._numClosed--},e.prototype.isOpen=function(t){return this._opened.indexOf(t)>-1},e.prototype.isClosed=function(t){return this._closed.indexOf(t)>-1},e.prototype.addToOpenList=function(t){this._opened[this._numOpened++]=t},e.prototype.addToClosedList=function(t){this._closed[this._numClosed++]=t},e.prototype.removeCheapestOpenNode=function(){var t=Number.MAX_VALUE;this._lastFoundOpened=-1;for(var e=0;e-1?e:(this._actions.push(t),this._actions.length-1)},e.MAX_CONDITIONS=64,e}();t.ActionPlanner=e}(es||(es={})),function(t){var e=function(){function e(){this._planner=new t.ActionPlanner}return e.prototype.plan=function(e){void 0===e&&(e=!1);var i=null;if(e&&(i=[]),this.actions=this._planner.plan(this.getWorldState(),this.getGoalState(),i),null!=i&&i.length>0){console.log("---- ActionPlanner plan ----"),console.log("plan cost = "+i[i.length-1].costSoFar),console.log(" start\t"+this.getWorldState().describe(this._planner));for(var n=0;n0},e}();t.Agent=e}(es||(es={})),function(t){var e=function(){function e(t,e,i){this.planner=t,this.values=e,this.dontCare=i}return e.create=function(t){return new e(t,0,-1)},e.prototype.set=function(t,e){return"string"==typeof t?this.set(this.planner.findConditionNameIndex(t),e):(this.values=e?this.values|1<0&&(i+=", "),i+=o?r.toUpperCase():r}return i},e}();t.WorldState=e}(es||(es={})),function(t){var e=function(e){function i(){var n=e.call(this)||this;return n._globalManagers=[],n._coroutineManager=new t.CoroutineManager,n._timerManager=new t.TimerManager,n._frameCounterElapsedTime=0,n._frameCounter=0,i._instance=n,i.emitter=new t.Emitter,i.content=new t.ContentManager,n.addEventListener(egret.Event.ADDED_TO_STAGE,n.onAddToStage,n),i.registerGlobalManager(n._coroutineManager),i.registerGlobalManager(n._timerManager),n}return __extends(i,e),Object.defineProperty(i,"Instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),Object.defineProperty(i,"scene",{get:function(){return this._instance?this._instance._scene:null},set:function(t){t?null==this._instance._scene?(this._instance.addChild(t),this._instance._scene=t,this._instance._scene.begin(),i.Instance.onSceneChanged()):this._instance._nextScene=t:console.error("场景不能为空")},enumerable:!0,configurable:!0}),i.startSceneTransition=function(t){if(!this._instance._sceneTransition)return this._instance._sceneTransition=t,t;console.warn("在前一个场景完成之前,不能开始一个新的场景转换。")},i.registerGlobalManager=function(t){this._instance._globalManagers.push(t),t.enabled=!0},i.unregisterGlobalManager=function(t){this._instance._globalManagers.remove(t),t.enabled=!1},i.getGlobalManager=function(t){for(var e=0;e=1&&(this._frameCounter=0,this._frameCounterElapsedTime-=1)},i.prototype.endDebugDraw=function(){t.TimeRuler.Instance.endMark("draw"),t.TimeRuler.Instance.render()},i.prototype.onSceneChanged=function(){i.emitter.emit(t.CoreEvents.SceneChanged),t.Time.sceneChanged()},i.prototype.onGraphicsDeviceReset=function(){i.emitter.emit(t.CoreEvents.GraphicsDeviceReset)},i.prototype.initialize=function(){t.Graphics.Instance=new t.Graphics},i.prototype.update=function(){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(i){switch(i.label){case 0:if(t.Time.update(egret.getTimer()),t.Input.update(),!this._scene)return[3,2];for(e=this._globalManagers.length-1;e>=0;e--)this._globalManagers[e].enabled&&this._globalManagers[e].update();return this._sceneTransition&&(!this._sceneTransition||this._sceneTransition.loadsNewScene&&!this._sceneTransition.isNewSceneLoaded)||this._scene.update(),this._nextScene?(this._scene.parent&&this._scene.parent.removeChild(this._scene),this._scene.end(),this._scene=this._nextScene,this._nextScene=null,this.onSceneChanged(),[4,this._scene.begin()]):[3,2];case 1:i.sent(),this.addChild(this._scene),i.label=2;case 2:return[4,this.draw()];case 3:return i.sent(),[2]}})})},i.prototype.onAddToStage=function(){i.graphicsDevice=new t.GraphicsDevice,this.addEventListener(egret.Event.RESIZE,this.onGraphicsDeviceReset,this),this.addEventListener(egret.StageOrientationEvent.ORIENTATION_CHANGE,this.onOrientationChanged,this),this.addEventListener(egret.Event.ENTER_FRAME,this.update,this),t.Input.initialize(),KeyboardUtils.init(),this.initialize()},i.debugRenderEndabled=!1,i}(egret.DisplayObjectContainer);t.Core=e}(es||(es={})),function(t){var e=function(){function t(){}return t.renderableBounds=16776960,t.renderableCenter=10040012,t.colliderBounds=5592405,t.colliderEdge=9109504,t.colliderPosition=16776960,t.colliderCenter=16711680,t}();t.Colors=e;var i=function(){function e(){}return Object.defineProperty(e,"lineSizeMultiplier",{get:function(){return Math.max(Math.ceil(t.Core.scene.x/t.Core.scene.width),1)},enumerable:!0,configurable:!0}),e}();t.Size=i;var n=function(){function e(){}return e.drawHollowRect=function(e,i,n){void 0===n&&(n=0),this._debugDrawItems.push(new t.DebugDrawItem(e,i,n))},e.render=function(){if(this._debugDrawItems.length>0){var e=new egret.Shape;t.Core.scene&&t.Core.scene.addChild(e);for(var i=this._debugDrawItems.length-1;i>=0;i--){this._debugDrawItems[i].draw(e)&&this._debugDrawItems.removeAt(i)}}},e._debugDrawItems=[],e}();t.Debug=n}(es||(es={})),function(t){var e=function(){function t(){}return t.verletParticle=14431326,t.verletConstraintEdge=4406838,t}();t.DebugDefaults=e}(es||(es={})),function(t){var e;!function(t){t[t.line=0]="line",t[t.hollowRectangle=1]="hollowRectangle",t[t.pixel=2]="pixel",t[t.text=3]="text"}(e=t.DebugDrawType||(t.DebugDrawType={}));var i=function(){function i(t,i,n){this.rectangle=t,this.color=i,this.duration=n,this.drawType=e.hollowRectangle}return i.prototype.draw=function(i){switch(this.drawType){case e.line:case e.hollowRectangle:case e.pixel:case e.text:}return this.duration-=t.Time.deltaTime,this.duration<0},i}();t.DebugDrawItem=i}(es||(es={})),function(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.updateInterval=1,e.debugDisplayObject=new egret.DisplayObjectContainer,e._enabled=!0,e._updateOrder=0,e}return __extends(e,t),Object.defineProperty(e.prototype,"transform",{get:function(){return this.entity.transform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.entity?this.entity.enabled&&this._enabled:this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOrder",{get:function(){return this._updateOrder},set:function(t){this.setUpdateOrder(t)},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){},e.prototype.onAddedToEntity=function(){},e.prototype.onRemovedFromEntity=function(){},e.prototype.onEntityTransformChanged=function(t){},e.prototype.debugRender=function(t){},e.prototype.onEnabled=function(){},e.prototype.onDisabled=function(){},e.prototype.update=function(){},e.prototype.setEnabled=function(t){return this._enabled!=t&&(this._enabled=t,this._enabled?this.onEnabled():this.onDisabled()),this},e.prototype.setUpdateOrder=function(t){return this._updateOrder!=t&&(this._updateOrder=t),this},e}(egret.HashObject);t.Component=e}(es||(es={})),function(t){!function(t){t[t.GraphicsDeviceReset=0]="GraphicsDeviceReset",t[t.SceneChanged=1]="SceneChanged",t[t.OrientationChanged=2]="OrientationChanged"}(t.CoreEvents||(t.CoreEvents={}))}(es||(es={})),function(t){var e=function(){function e(i){this.updateInterval=1,this._tag=0,this._enabled=!0,this._updateOrder=0,this.components=new t.ComponentList(this),this.transform=new t.Transform(this),this.name=i,this.id=e._idGenerator++,this.componentBits=new t.BitSet}return Object.defineProperty(e.prototype,"isDestroyed",{get:function(){return this._isDestroyed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tag",{get:function(){return this._tag},set:function(t){this.setTag(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOrder",{get:function(){return this._updateOrder},set:function(t){this.setUpdateOrder(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this.transform.parent},set:function(t){this.transform.setParent(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childCount",{get:function(){return this.transform.childCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.transform.position},set:function(t){this.transform.setPosition(t.x,t.y)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localPosition",{get:function(){return this.transform.localPosition},set:function(t){this.transform.setLocalPosition(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(t){this.transform.setRotation(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDegrees",{get:function(){return this.transform.rotationDegrees},set:function(t){this.transform.setRotationDegrees(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localRotation",{get:function(){return this.transform.localRotation},set:function(t){this.transform.setLocalRotation(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localRotationDegrees",{get:function(){return this.transform.localRotationDegrees},set:function(t){this.transform.setLocalRotationDegrees(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this.transform.scale},set:function(t){this.transform.setScale(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localScale",{get:function(){return this.transform.localScale},set:function(t){this.transform.setLocalScale(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"worldInverseTransform",{get:function(){return this.transform.worldInverseTransform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localToWorldTransform",{get:function(){return this.transform.localToWorldTransform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"worldToLocalTransform",{get:function(){return this.transform.worldToLocalTransform},enumerable:!0,configurable:!0}),e.prototype.onTransformChanged=function(t){this.components.onEntityTransformChanged(t)},e.prototype.setTag=function(t){return this._tag!=t&&(this.scene&&this.scene.entities.removeFromTagList(this),this._tag=t,this.scene&&this.scene.entities.addToTagList(this)),this},e.prototype.setEnabled=function(t){return this._enabled!=t&&(this._enabled=t,this._enabled?this.components.onEntityEnabled():this.components.onEntityDisabled()),this},e.prototype.setUpdateOrder=function(t){if(this._updateOrder!=t)return this._updateOrder=t,this.scene&&(this.scene.entities.markEntityListUnsorted(),this.scene.entities.markTagUnsorted(this.tag)),this},e.prototype.destroy=function(){this._isDestroyed=!0,this.scene.entities.remove(this),this.transform.parent=null;for(var t=this.transform.childCount-1;t>=0;t--){this.transform.getChild(t).entity.destroy()}},e.prototype.detachFromScene=function(){this.scene.entities.remove(this),this.components.deregisterAllComponents();for(var t=0;t=0;t--)this._sceneComponents[t].enabled&&this._sceneComponents[t].update();this.entityProcessors&&this.entityProcessors.update(),this.entities.update(),this.entityProcessors&&this.entityProcessors.lateUpdate(),this.renderableComponents.updateList()},i.prototype.render=function(){if(0!=this._renderers.length)for(var t=0;te.x?-1:1,n=t.Vector2.normalize(t.Vector2.subtract(this.position,e));this.rotation=i*Math.acos(t.Vector2.dot(n,t.Vector2.unitY))},n.prototype.setLocalRotation=function(t){return this._localRotation=t,this._localDirty=this._positionDirty=this._localPositionDirty=this._localRotationDirty=this._localScaleDirty=!0,this.setDirty(e.rotationDirty),this},n.prototype.setLocalRotationDegrees=function(e){return this.setLocalRotation(t.MathHelper.toRadians(e))},n.prototype.setScale=function(e){return this._scale=e,this.parent?this.localScale=t.Vector2.divide(e,this.parent._scale):this.localScale=e,this},n.prototype.setLocalScale=function(t){return this._localScale=t,this._localDirty=this._positionDirty=this._localScaleDirty=!0,this.setDirty(e.scaleDirty),this},n.prototype.roundPosition=function(){this.position=this._position.round()},n.prototype.updateTransform=function(){this.hierarchyDirty!=e.clean&&(this.parent&&this.parent.updateTransform(),this._localDirty&&(this._localPositionDirty&&(this._translationMatrix=t.Matrix2D.create().translate(this._localPosition.x,this._localPosition.y),this._localPositionDirty=!1),this._localRotationDirty&&(this._rotationMatrix=t.Matrix2D.create().rotate(this._localRotation),this._localRotationDirty=!1),this._localScaleDirty&&(this._scaleMatrix=t.Matrix2D.create().scale(this._localScale.x,this._localScale.y),this._localScaleDirty=!1),this._localTransform=this._scaleMatrix.multiply(this._rotationMatrix),this._localTransform=this._localTransform.multiply(this._translationMatrix),this.parent||(this._worldTransform=this._localTransform,this._rotation=this._localRotation,this._scale=this._localScale,this._worldInverseDirty=!0),this._localDirty=!1),this.parent&&(this._worldTransform=this._localTransform.multiply(this.parent._worldTransform),this._rotation=this._localRotation+this.parent._rotation,this._scale=t.Vector2.multiply(this.parent._scale,this._localScale),this._worldInverseDirty=!0),this._worldToLocalDirty=!0,this._positionDirty=!0,this.hierarchyDirty=e.clean)},n.prototype.setDirty=function(e){if(0==(this.hierarchyDirty&e)){switch(this.hierarchyDirty|=e,e){case t.DirtyType.positionDirty:this.entity.onTransformChanged(transform.Component.position);break;case t.DirtyType.rotationDirty:this.entity.onTransformChanged(transform.Component.rotation);break;case t.DirtyType.scaleDirty:this.entity.onTransformChanged(transform.Component.scale)}this._children||(this._children=[]);for(var i=0;it&&(this._zoom=t),this._maximumZoom=t,this;console.error("maximumZoom must be greater than zero")},i.prototype.forceMatrixUpdate=function(){this._areMatrixedDirty=!0},i.prototype.onEntityTransformChanged=function(t){this._areMatrixedDirty=!0},i.prototype.zoomIn=function(t){this.zoom+=t},i.prototype.zoomOut=function(t){this.zoom-=t},i.prototype.worldToScreenPoint=function(e){return this.updateMatrixes(),t.Vector2Ext.transformR(e,this._transformMatrix,e),e},i.prototype.screenToWorldPoint=function(e){return this.updateMatrixes(),t.Vector2Ext.transformR(e,this._inverseTransformMatrix,e),e},i.prototype.onSceneRenderTargetSizeChanged=function(e,i){this._isProjectionMatrixDirty=!0;var n=this._origin;this.origin=new t.Vector2(e/2,i/2),this.entity.transform.position.add(t.Vector2.subtract(this._origin,n))},i.prototype.mouseToWorldPoint=function(){return this.screenToWorldPoint(t.Input.touchPosition)},i.prototype.updateMatrixes=function(){var e;this._areMatrixedDirty&&(this._transformMatrix=t.Matrix2D.create().translate(-this.entity.transform.position.x,-this.entity.transform.position.y),1!=this._zoom&&(e=t.Matrix2D.create().scale(this._zoom,this._zoom),this._transformMatrix=this._transformMatrix.multiply(e)),0!=this.entity.transform.rotation&&(e=t.Matrix2D.create().rotate(this.entity.transform.rotation),this._transformMatrix=this._transformMatrix.multiply(e)),e=t.Matrix2D.create().translate(Math.floor(this._origin.x),Math.floor(this._origin.y)),this._transformMatrix=this._transformMatrix.multiply(e),this._inverseTransformMatrix=this._transformMatrix.invert(),this._areBoundsDirty=!0,this._areMatrixedDirty=!1)},i}(t.Component);t.Camera=e}(es||(es={})),function(t){var e=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._shakeDirection=t.Vector2.zero,i._shakeOffset=t.Vector2.zero,i._shakeIntensity=0,i._shakeDegredation=.95,i}return __extends(i,e),i.prototype.shake=function(e,i,n){void 0===e&&(e=15),void 0===i&&(i=.9),void 0===n&&(n=t.Vector2.zero),this.enabled=!0,this._shakeIntensity=1)&&(i=.95),this._shakeDegredation=i)},i.prototype.update=function(){Math.abs(this._shakeIntensity)>0&&(this._shakeOffset=this._shakeDirection,0!=this._shakeOffset.x||0!=this._shakeOffset.y?this._shakeOffset.normalize():(this._shakeOffset.x=this._shakeOffset.x+Math.random()-.5,this._shakeOffset.y=this._shakeOffset.y+Math.random()-.5),this._shakeOffset.multiply(new t.Vector2(this._shakeIntensity)),this._shakeIntensity*=-this._shakeDegredation,Math.abs(this._shakeIntensity)<=.01&&(this._shakeIntensity=0,this.enabled=!1)),this.entity.scene.camera.position.add(this._shakeOffset)},i}(t.Component);t.CameraShake=e}(es||(es={})),function(t){var e=function(){function t(t){this._type=t,this._cache=[]}return t.prototype.obtain=function(){try{return this._cache.length>0?this._cache.shift():new this._type}catch(t){throw new Error(this._type+t)}},t.prototype.free=function(t){t.reset(),this._cache.push(t)},t}();t.ComponentPool=e}(es||(es={})),function(t){var e;!function(t){t[t.lockOn=0]="lockOn",t[t.cameraWindow=1]="cameraWindow"}(e=t.CameraStyle||(t.CameraStyle={}));var i=function(i){function n(n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=e.lockOn);var s=i.call(this)||this;return s.followLerp=.1,s.deadzone=new t.Rectangle,s.focusOffset=t.Vector2.zero,s.mapLockEnabled=!1,s.mapSize=new t.Rectangle,s._desiredPositionDelta=new t.Vector2,s._worldSpaceDeadZone=new t.Rectangle,s.rectShape=new egret.Shape,s._targetEntity=n,s._cameraStyle=o,s.camera=r,s}return __extends(n,i),n.prototype.onAddedToEntity=function(){this.camera||(this.camera=this.entity.scene.camera),this.follow(this._targetEntity,this._cameraStyle),t.Core.emitter.addObserver(t.CoreEvents.GraphicsDeviceReset,this.onGraphicsDeviceReset,this)},n.prototype.onGraphicsDeviceReset=function(){t.Core.schedule(0,!1,this,function(t){var e=t.context;e.follow(e._targetEntity,e._cameraStyle)})},n.prototype.update=function(){var e=t.Vector2.multiply(this.camera.bounds.size,new t.Vector2(.5));this._worldSpaceDeadZone.x=this.camera.position.x-e.x*t.Core.scene.scaleX+this.deadzone.x+this.focusOffset.x,this._worldSpaceDeadZone.y=this.camera.position.y-e.y*t.Core.scene.scaleY+this.deadzone.y+this.focusOffset.y,this._worldSpaceDeadZone.width=this.deadzone.width,this._worldSpaceDeadZone.height=this.deadzone.height,this._targetEntity&&this.updateFollow(),this.camera.position=t.Vector2.lerp(this.camera.position,t.Vector2.add(this.camera.position,this._desiredPositionDelta),this.followLerp),this.entity.transform.roundPosition(),this.mapLockEnabled&&(this.camera.position=this.clampToMapSize(this.camera.position),this.entity.transform.roundPosition())},n.prototype.debugRender=function(t){this.rectShape||this.debugDisplayObject.addChild(this.rectShape),this.rectShape.graphics.clear(),this._cameraStyle==e.lockOn?(this.rectShape.graphics.beginFill(9109504,0),this.rectShape.graphics.lineStyle(1,9109504),this.rectShape.graphics.drawRect(this._worldSpaceDeadZone.x-5-t.bounds.x,this._worldSpaceDeadZone.y-5-t.bounds.y,this._worldSpaceDeadZone.width,this._worldSpaceDeadZone.height),this.rectShape.graphics.endFill()):(this.rectShape.graphics.beginFill(9109504,0),this.rectShape.graphics.lineStyle(1,9109504),this.rectShape.graphics.drawRect(this._worldSpaceDeadZone.x-t.bounds.x,this._worldSpaceDeadZone.y-t.bounds.y,this._worldSpaceDeadZone.width,this._worldSpaceDeadZone.height),this.rectShape.graphics.endFill())},n.prototype.clampToMapSize=function(e){var i=t.Vector2.multiply(this.camera.bounds.size,new t.Vector2(.5)).add(new t.Vector2(this.mapSize.x,this.mapSize.y)),n=new t.Vector2(this.mapSize.width-i.x,this.mapSize.height-i.y);return t.Vector2.clamp(e,i,n)},n.prototype.follow=function(i,n){void 0===n&&(n=e.cameraWindow),this._targetEntity=i,this._cameraStyle=n;var r=this.camera.bounds;switch(this._cameraStyle){case e.cameraWindow:var o=r.width/6,s=r.height/3;this.deadzone=new t.Rectangle((r.width-o)/2,(r.height-s)/2,o,s);break;case e.lockOn:this.deadzone=new t.Rectangle(r.width/2,r.height/2,10,10)}},n.prototype.updateFollow=function(){if(this._desiredPositionDelta.x=this._desiredPositionDelta.y=0,this._cameraStyle==e.lockOn){var i=this._targetEntity.transform.position.x,n=this._targetEntity.transform.position.y;this._worldSpaceDeadZone.x>i?this._desiredPositionDelta.x=i-this._worldSpaceDeadZone.x:this._worldSpaceDeadZone.xn&&(this._desiredPositionDelta.y=n-this._worldSpaceDeadZone.y)}else{if(!this._targetCollider&&(this._targetCollider=this._targetEntity.getComponent(t.Collider),!this._targetCollider))return;var r=this._targetEntity.getComponent(t.Collider).bounds;this._worldSpaceDeadZone.containsRect(r)||(this._worldSpaceDeadZone.left>r.left?this._desiredPositionDelta.x=r.left-this._worldSpaceDeadZone.left:this._worldSpaceDeadZone.rightr.top&&(this._desiredPositionDelta.y=r.top-this._worldSpaceDeadZone.top))}},n.prototype.setCenteredDeadzone=function(e,i){if(this.camera){var n=this.camera.bounds;this.deadzone=new t.Rectangle((n.width-e)/2,(n.height-i)/2,e,i)}else console.error("相机是null。我们不能得到它的边界。请等到该组件添加到实体之后")},n}(t.Component);t.FollowCamera=i}(es||(es={})),function(t){var e=function(){function t(){}return t.prototype.compare=function(t,e){return t.updateOrder-e.updateOrder},t}();t.IUpdatableComparer=e}(es||(es={})),function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(t.Component);t.PooledComponent=e}(es||(es={})),function(t){var e=function(){function e(){this.updateOrder=0,this._enabled=!0}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),e.prototype.onEnabled=function(){},e.prototype.onDisabled=function(){},e.prototype.onRemovedFromScene=function(){},e.prototype.update=function(){},e.prototype.setEnabled=function(t){return this._enabled!=t&&(this._enabled=t,this._enabled),this},e.prototype.setUpdateOrder=function(e){return this.updateOrder!=e&&(this.updateOrder=e,t.Core.scene._sceneComponents.sort(this.compareTo)),this},e.prototype.compareTo=function(t){return this.updateOrder-t.updateOrder},e}();t.SceneComponent=e}(es||(es={})),function(t){var e=function(){function t(){}return Object.defineProperty(t.prototype,"hasCollision",{get:function(){return this.below||this.right||this.left||this.above},enumerable:!0,configurable:!0}),t.prototype.reset=function(){this.becameGroundedThisFrame=this.isGroundedOnOnewayPlatform=this.right=this.left=this.above=this.below=!1,this.slopAngle=0},t.prototype.toString=function(){return"[CollisionState] r: "+this.right+", l: "+this.left+", a: "+this.above+", b: "+this.below+", angle: "+this.slopAngle+", wasGroundedLastFrame: "+this.wasGroundedLastFrame+", becameGroundedThisFrame: "+this.becameGroundedThisFrame},t}();t.CollisionState=e;var i=function(e){function i(){var t=e.call(this)||this;return t.colliderHorizontalInset=2,t.colliderVerticalInset=6,t}return __extends(i,e),i.prototype.testCollisions=function(e,i,n){this._boxColliderBounds=i,n.wasGroundedLastFrame=n.below,n.reset();var r=e.x;e.y;if(0!=r){var o=r>0?t.Edge.right:t.Edge.left,s=this.collisionRectForSide(o,r);this.testMapCollision(s,o,n,0)?(e.x=0-t.RectangleExt.getSide(i,o),n.left=o==t.Edge.left,n.right=o==t.Edge.right,n._movementRemainderX.reset()):(n.left=!1,n.right=!1)}},i.prototype.testMapCollision=function(e,i,n,r){var o=t.EdgeExt.oppositeEdge(i);t.EdgeExt.isVertical(o)?e.center.x:e.center.y,t.RectangleExt.getSide(e,i),t.EdgeExt.isVertical(o)},i.prototype.collisionRectForSide=function(e,i){var n;return n=t.EdgeExt.isHorizontal(e)?t.RectangleExt.getRectEdgePortion(this._boxColliderBounds,e):t.RectangleExt.getHalfRect(this._boxColliderBounds,e),t.EdgeExt.isVertical(e)?t.RectangleExt.contract(n,this.colliderHorizontalInset,0):t.RectangleExt.contract(n,0,this.colliderVerticalInset),t.RectangleExt.expandSide(n,e,i),n},i}(t.Component);t.TiledMapMover=i}(es||(es={})),function(t){var e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),i.prototype.onAddedToEntity=function(){this._triggerHelper=new t.ColliderTriggerHelper(this.entity)},i.prototype.calculateMovement=function(e,i){if(!this.entity.getComponent(t.Collider)||!this._triggerHelper)return!1;for(var n=this.entity.getComponents(t.Collider),r=0;r=2){this.polygonShape.graphics.beginFill(t.Colors.colliderEdge,0),this.polygonShape.graphics.lineStyle(t.Size.lineSizeMultiplier,t.Colors.colliderEdge);for(var n=0;no||this._loopMode==e.pingPongOnce&&s>2*o)return this.animationState=i.completed,this._elapsedTime=0,this.currentFrame=0,void(this.displayObject.texture=n.sprites[this.currentFrame].texture2D);var a=Math.floor(s/r),h=n.sprites.length;if(h>2&&(this._loopMode==e.pingPong||this._loopMode==e.pingPongOnce)){var c=h-1;this.currentFrame=c-Math.abs(c-a%(2*c))}else this.currentFrame=a%h;this.displayObject.texture=n.sprites[this.currentFrame].texture2D}},r.prototype.addAnimation=function(t,e){return!this.sprite&&e.sprites.length>0&&this.setSprite(e.sprites[0]),this._animations[t]=e,this},r.prototype.play=function(t,n){void 0===n&&(n=null),this.currentAnimation=this._animations[t],this.currentAnimationName=t,this.currentFrame=0,this.animationState=i.running,this.displayObject.texture=this.currentAnimation.sprites[0].texture2D,this._elapsedTime=0,this._loopMode=n||e.loop},r.prototype.isAnimationActive=function(t){return this.currentAnimation&&this.currentAnimationName==t},r.prototype.pause=function(){this.animationState=i.paused},r.prototype.unPause=function(){this.animationState=i.running},r.prototype.stop=function(){this.currentAnimation=null,this.currentAnimationName=null,this.currentFrame=0,this.animationState=i.none},r}(t.SpriteRenderer);t.SpriteAnimator=n}(es||(es={})),function(t){var e=egret.Bitmap,i=function(i){function n(e){void 0===e&&(e=null);var n=i.call(this)||this;n.displayObject=new egret.DisplayObjectContainer,n.displayObjectCache=new Map;for(var r=0,o=e;r>6;0!=(e&t.LONG_MASK)&&i++,this._bits=new Array(i)}return t.prototype.and=function(t){for(var e,i=Math.min(this._bits.length,t._bits.length),n=0;n=0;)this._bits[e]&=~t._bits[e]},t.prototype.cardinality=function(){for(var t=0,e=this._bits.length-1;e>=0;e--){var i=this._bits[e];if(0!=i)if(-1!=i){var n=((i=((i=(i>>1&0x5555555555555400)+(0x5555555555555400&i))>>2&0x3333333333333400)+(0x3333333333333400&i))>>32)+i;t+=((n=((n=(n>>4&252645135)+(252645135&n))>>8&16711935)+(16711935&n))>>16&65535)+(65535&n)}else t+=64}return t},t.prototype.clear=function(t){if(null!=t){var e=t>>6;this.ensure(e),this._bits[e]&=~(1<>6;return!(e>=this._bits.length)&&0!=(this._bits[e]&1<=0;)if(0!=(this._bits[e]&t._bits[e]))return!0;return!1},t.prototype.isEmpty=function(){for(var t=this._bits.length-1;t>=0;t--)if(this._bits[t])return!1;return!0},t.prototype.nextSetBit=function(t){for(var e=t>>6,i=1<>6;this.ensure(i),this._bits[i]|=1<=this._bits.length){var e=new Number[t+1];e=this._bits.copyWithin(0,0,this._bits.length),this._bits=e}},t.LONG_MASK=63,t}();t.BitSet=e}(es||(es={})),function(t){var e=function(){function e(e){this._components=new t.FastList,this._componentsToAdd=[],this._componentsToRemove=[],this._tempBufferList=[],this._entity=e}return Object.defineProperty(e.prototype,"count",{get:function(){return this._components.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._components.buffer},enumerable:!0,configurable:!0}),e.prototype.markEntityListUnsorted=function(){this._isComponentListUnsorted=!0},e.prototype.add=function(t){this._componentsToAdd.push(t)},e.prototype.remove=function(t){this._componentsToRemove.contains(t)&&console.warn("您正在尝试删除一个您已经删除的组件("+t+")"),this._componentsToAdd.contains(t)?this._componentsToAdd.remove(t):this._componentsToRemove.push(t)},e.prototype.removeAllComponents=function(){for(var t=0;t0){for(var i=0;i0){i=0;for(var n=this._componentsToAdd.length;i0){for(var e=0,i=this._entitiesToRemove;e0;){(n=this._addToSceneEntityList.shift()).onAddedToScene()}if(this._entitiesToAdded.length>0)if(this.frameAllocate&&this._entitiesToAdded.length>this.maxAllocate){for(var r=0;r0;)this.perEntityAddToScene();this._isEntityListUnsorted=!0}this._isEntityListUnsorted&&(this._entities.sort(function(t,e){return t.compareTo(e)}),this._isEntityListUnsorted=!1),0==this._addToSceneEntityList.length&&this._unsortedTags.size>0&&(this._unsortedTags.forEach(function(e){t._entityDict.get(e).sort(function(t,e){return t.compareTo(e)})}),this._unsortedTags.clear())},e.prototype.perEntityAddToScene=function(){var t=this._entitiesToAdded.shift();this._addToSceneEntityList.push(t),-1==this._entities.findIndex(function(e){return e.id==t.id})&&(this._entities.push(t),t.scene=this.scene,this.addToTagList(t),this.scene.entityProcessors.onEntityAdded(t))},e.prototype.findEntity=function(t){for(var e=0;ethis._buckets.length){this._buckets=new Array(t.HashHelpers.expandPrime(this._collisions)),this._collisions=0;for(var l=0;l=e?t%e:t},e}();t.FasterDictionary=e;var i=function(){return function(t,e,i){void 0===i&&(i=-1),this.key=t,this.hashcode=e,this.previous=i,this.next=-1}}();t.FastNode=i}(es||(es={})),function(t){var e=function(){function e(t){void 0===t&&(t=5),this.length=0,this.buffer=new Array(t)}return e.prototype.clear=function(){this.buffer.length=0,this.length=0},e.prototype.reset=function(){this.length=0},e.prototype.add=function(t){this.length==this.buffer.length&&(this.buffer.length=Math.max(this.buffer.length<<1,10)),this.buffer[this.length++]=t},e.prototype.remove=function(e){for(var i=t.EqualityComparer.default(),n=0;n=this.length)throw new Error("index超出范围!");this.length--,this.buffer.removeAt(t)},e.prototype.contains=function(e){for(var i=t.EqualityComparer.default(),n=0;n=this.buffer.length&&(this.buffer.length=Math.max(this.buffer.length<<1,this.length+t))},e.prototype.addRange=function(t){for(var e=0,i=t;e=t)return i}for(e=1|t;ethis.maxPrimeArrayLength&&this.maxPrimeArrayLength>t?this.maxPrimeArrayLength:this.getPrime(e)},t.getHashCode=function(t){var e,i=0;if(0==(e="object"==typeof t?JSON.stringify(t):t.toString()).length)return i;for(var n=0;n=0;e=this.allSet.nextSetBit(e+1))if(!t.componentBits.get(e))return!1;return!(!this.exclusionSet.isEmpty()&&this.exclusionSet.intersects(t.componentBits))&&!(!this.oneSet.isEmpty()&&!this.oneSet.intersects(t.componentBits))},e.prototype.all=function(){for(var e=this,i=[],n=0;n0){for(var t=0,i=this._unsortedRenderLayers.length;t=e)return t;var n=!1;"-"==t.substr(0,1)&&(n=!0,t=t.substr(1));for(var r=e-i,o=0;o1?this.reverse(t.substring(1))+t.substring(0,1):t},t.cutOff=function(t,e,i,n){void 0===n&&(n=!0),e=Math.floor(e),i=Math.floor(i);var r=t.length;e>r&&(e=r);var o,s=e,a=e+i;return n?o=t.substring(0,s)+t.substr(a,r):(a=(s=r-1-e-i)+i,o=t.substring(0,s+1)+t.substr(a+1,r)),o},t.strReplace=function(t,e){for(var i=0,n=e.length;i",">",'"',""","'","'","®","®","©","©","™","™"],t}();!function(t){var e=function(){function e(){}return e.convertImageToCanvas=function(e,i){this.sharedCanvas||(this.sharedCanvas=egret.sys.createCanvas(),this.sharedContext=this.sharedCanvas.getContext("2d"));var n=e.$getTextureWidth(),r=e.$getTextureHeight();i||((i=egret.$TempRectangle).x=0,i.y=0,i.width=n,i.height=r),i.x=Math.min(i.x,n-1),i.y=Math.min(i.y,r-1),i.width=Math.min(i.width,n-i.x),i.height=Math.min(i.height,r-i.y);var o=Math.floor(i.width),s=Math.floor(i.height),a=this.sharedCanvas;if(a.style.width=o+"px",a.style.height=s+"px",this.sharedCanvas.width=o,this.sharedCanvas.height=s,"webgl"==egret.Capabilities.renderMode){var h=void 0;e.$renderBuffer?h=e:(egret.sys.systemRenderer.renderClear&&egret.sys.systemRenderer.renderClear(),(h=new egret.RenderTexture).drawToTexture(new egret.Bitmap(e)));for(var c=h.$renderBuffer.getPixels(i.x,i.y,o,s),u=0,l=0,p=0;p=0?"png":"jpg"});return wx.getFileSystemManager().saveFile({tempFilePath:o,filePath:wx.env.USER_DATA_PATH+"/"+i,success:function(t){}}),o},e.getPixel32=function(t,e,i){return egret.$warn(1041,"getPixel32","getPixels"),t.getPixels(e,i)},e.getPixels=function(t,e,i,n,r){if(void 0===n&&(n=1),void 0===r&&(r=1),"webgl"==egret.Capabilities.renderMode){var o=void 0;return t.$renderBuffer?o=t:(o=new egret.RenderTexture).drawToTexture(new egret.Bitmap(t)),o.$renderBuffer.getPixels(e,i,n,r)}try{this.convertImageToCanvas(t);return this.sharedContext.getImageData(e,i,n,r).data}catch(t){egret.$error(1039)}},e}();t.TextureUtils=e}(es||(es={})),function(t){var e=function(){function t(){}return t.update=function(t){var e=(t-this._lastTime)/1e3;this.deltaTime=e*this.timeScale,this.unscaledDeltaTime=e,this._timeSinceSceneLoad+=e,this.frameCount++,this._lastTime=t},t.sceneChanged=function(){this._timeSinceSceneLoad=0},t.checkEvery=function(t){return Math.floor(this._timeSinceSceneLoad/t)>Math.floor((this._timeSinceSceneLoad-this.deltaTime)/t)},t.deltaTime=0,t.timeScale=1,t.frameCount=0,t._lastTime=0,t}();t.Time=e}(es||(es={}));var TimeUtils=function(){function t(){}return t.monthId=function(t){void 0===t&&(t=null);var e=(t=t||new Date).getFullYear(),i=t.getMonth()+1;return parseInt(e+(i<10?"0":"")+i)},t.dateId=function(t){void 0===t&&(t=null);var e=(t=t||new Date).getMonth()+1,i=e<10?"0":"",n=t.getDate(),r=n<10?"0":"";return parseInt(t.getFullYear()+i+e+r+n)},t.weekId=function(t,e){void 0===t&&(t=null),void 0===e&&(e=!0),t=t||new Date;var i=new Date;i.setTime(t.getTime()),i.setDate(1),i.setMonth(0);var n=i.getFullYear(),r=i.getDay();0==r&&(r=7);var o=!1;r<=4?(o=r>1,i.setDate(i.getDate()-(r-1))):i.setDate(i.getDate()+7-r+1);var s=this.diffDay(t,i,!1);if(s<0)return i.setDate(1),i.setMonth(0),i.setDate(i.getDate()-1),this.weekId(i,!1);var a=s/7,h=Math.floor(a)+1;if(53==h){i.setTime(t.getTime()),i.setDate(i.getDate()-1);var c=i.getDay();if(0==c&&(c=7),e&&(!o||c<4))return i.setFullYear(i.getFullYear()+1),i.setDate(1),i.setMonth(0),this.weekId(i,!1)}return parseInt(n+"00"+(h>9?"":"0")+h)},t.diffDay=function(t,e,i){void 0===i&&(i=!1);var n=(t.getTime()-e.getTime())/864e5;return i?Math.ceil(n):Math.floor(n)},t.getFirstDayOfWeek=function(t){var e=(t=t||new Date).getDay()||7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1-e,0,0,0,0)},t.getFirstOfDay=function(t){return(t=t||new Date).setHours(0,0,0,0),t},t.getNextFirstOfDay=function(t){return new Date(this.getFirstOfDay(t).getTime()+864e5)},t.formatDate=function(t){var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();return e+"-"+i+"-"+(n=n<10?"0"+n:n)},t.formatDateTime=function(t){var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var r=t.getHours(),o=t.getMinutes();o=o<10?"0"+o:o;var s=t.getSeconds();return e+"-"+i+"-"+n+" "+r+":"+o+":"+(s=s<10?"0"+s:s)},t.parseDate=function(t){var e=Date.parse(t);return isNaN(e)?new Date:new Date(Date.parse(t.replace(/-/g,"/")))},t.secondToTime=function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=":"),void 0===i&&(i=!0);var n=Math.floor(t/3600),r=Math.floor(t%3600/60),o=Math.floor(t%3600%60),s=n.toString(),a=r.toString(),h=o.toString();return n<10&&(s="0"+s),r<10&&(a="0"+a),o<10&&(h="0"+h),i?s+e+a+e+h:a+e+h},t.timeToMillisecond=function(t,e){void 0===e&&(e=":");for(var i=t.split(e),n=0,r=i.length,o=0;o-1?this.os="iOS":n.indexOf("android")>-1&&(this.os="Android");var r=i.language;r=r.indexOf("zh")>-1?"zh-CN":"en-US",this.language=r}},e}(egret.Capabilities);t.GraphicsCapabilities=e}(es||(es={})),function(t){var e=function(){function e(){this.setup(),this.graphicsCapabilities=new t.GraphicsCapabilities,this.graphicsCapabilities.initialize(this)}return Object.defineProperty(e.prototype,"viewport",{get:function(){return this._viewport},enumerable:!0,configurable:!0}),e.prototype.setup=function(){this._viewport=new t.Viewport(0,0,t.Core._instance.stage.stageWidth,t.Core._instance.stage.stageHeight)},e}();t.GraphicsDevice=e}(es||(es={})),function(t){var e=function(){function e(t,e,i,n){this._x=t,this._y=e,this._width=i,this._height=n,this._minDepth=0,this._maxDepth=1}return Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aspectRatio",{get:function(){return 0!=this._height&&0!=this._width?this._width/this._height:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bounds",{get:function(){return new t.Rectangle(this._x,this._y,this._width,this._height)},set:function(t){this._x=t.x,this._y=t.y,this._width=t.width,this._height=t.height},enumerable:!0,configurable:!0}),e}();t.Viewport=e}(es||(es={})),function(t){var e=function(e){function i(){return e.call(this,t.PostProcessor.default_vert,i.blur_frag,{screenWidth:t.Core.graphicsDevice.viewport.width,screenHeight:t.Core.graphicsDevice.viewport.height})||this}return __extends(i,e),i.blur_frag="precision mediump float;\nuniform sampler2D uSampler;\nuniform float screenWidth;\nuniform float screenHeight;\nfloat normpdf(in float x, in float sigma)\n{\nreturn 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;\n}\nvoid main()\n{\nvec3 c = texture2D(uSampler, gl_FragCoord.xy / vec2(screenWidth, screenHeight).xy).rgb;\nconst int mSize = 11;\nconst int kSize = (mSize - 1)/2;\nfloat kernel[mSize];\nvec3 final_colour = vec3(0.0);\nfloat sigma = 7.0;\nfloat z = 0.0;\nfor (int j = 0; j <= kSize; ++j)\n{\nkernel[kSize+j] = kernel[kSize-j] = normpdf(float(j),sigma);\n}\nfor (int j = 0; j < mSize; ++j)\n{\nz += kernel[j];\n}\nfor (int i = -kSize; i <= kSize; ++i)\n{\nfor (int j = -kSize; j <= kSize; ++j)\n{\nfinal_colour += kernel[kSize+j]*kernel[kSize+i]*texture2D(uSampler, (gl_FragCoord.xy+vec2(float(i),float(j))) / vec2(screenWidth, screenHeight).xy).rgb;\n}\n}\ngl_FragColor = vec4(final_colour/(z*z), 1.0);\n}",i}(egret.CustomFilter);t.GaussianBlurEffect=e}(es||(es={})),function(t){var e=function(t){function e(){return t.call(this,e.vertSrc,e.fragmentSrc)||this}return __extends(e,t),e.vertSrc="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform vec2 projectionVector;\nvarying vec2 vTextureCoord;\nconst vec2 center = vec2(-1.0, 1.0);\nvoid main(void) {\n gl_Position = vec4( (aVertexPosition / projectionVector) + center , 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",e.fragmentSrc="precision lowp float;\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n#define SAMPLE_COUNT 15\nuniform vec2 _sampleOffsets[SAMPLE_COUNT];\nuniform float _sampleWeights[SAMPLE_COUNT];\nvoid main(void) {\nvec4 c = vec4(0, 0, 0, 0);\nfor( int i = 0; i < SAMPLE_COUNT; i++ )\n c += texture2D( uSampler, vTextureCoord + _sampleOffsets[i] ) * _sampleWeights[i];\ngl_FragColor = c;\n}",e}(egret.CustomFilter);t.PolygonLightEffect=e}(es||(es={})),function(t){var e=function(){function e(t){void 0===t&&(t=null),this.enabled=!0,this.effect=t}return e.prototype.onAddedToScene=function(e){this.scene=e,this.shape=new egret.Shape,this.shape.graphics.beginFill(16777215,1),this.shape.graphics.drawRect(0,0,t.Core.graphicsDevice.viewport.width,t.Core.graphicsDevice.viewport.height),this.shape.graphics.endFill(),e.addChild(this.shape)},e.prototype.process=function(){this.drawFullscreenQuad()},e.prototype.onSceneBackBufferSizeChanged=function(t,e){},e.prototype.unload=function(){this.effect&&(this.effect=null),this.scene.removeChild(this.shape),this.scene=null},e.prototype.drawFullscreenQuad=function(){this.scene.filters=[this.effect]},e.default_vert="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec2 aColor;\nuniform vec2 projectionVector;\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nconst vec2 center = vec2(-1.0, 1.0);\nvoid main(void) {\ngl_Position = vec4( (aVertexPosition / projectionVector) + center , 0.0, 1.0);\nvTextureCoord = aTextureCoord;\nvColor = vec4(aColor.x, aColor.x, aColor.x, aColor.x);\n}",e}();t.PostProcessor=e}(es||(es={})),function(t){var e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),i.prototype.onAddedToScene=function(i){e.prototype.onAddedToScene.call(this,i),this.effect=new t.GaussianBlurEffect},i}(t.PostProcessor);t.GaussianBlurPostProcessor=e}(es||(es={})),function(t){var e=function(){function t(t,e){void 0===e&&(e=null),this.renderOrder=0,this.shouldDebugRender=!0,this.camera=e,this.renderOrder=t}return Object.defineProperty(t.prototype,"wantsToRenderToSceneRenderTarget",{get:function(){return!!this.renderTexture},enumerable:!0,configurable:!0}),t.prototype.onAddedToScene=function(t){},t.prototype.unload=function(){},t.prototype.onSceneBackBufferSizeChanged=function(t,e){},t.prototype.compareTo=function(t){return this.renderOrder-t.renderOrder},t.prototype.beginRender=function(t){},t.prototype.renderAfterStateCheck=function(t,e){t.render(e)},t.prototype.debugRender=function(t,e){for(var i=0;i=0&&h=0&&ci?i:t},e.pointOnCirlce=function(i,n,r){var o=e.toRadians(r);return new t.Vector2(Math.cos(o)*o+i.x,Math.sin(o)*o+i.y)},e.isEven=function(t){return t%2==0},e.clamp01=function(t){return t<0?0:t>1?1:t},e.angleBetweenVectors=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)},e.incrementWithWrap=function(t,e){return++t==e?0:t},e.approach=function(t,e,i){return tn&&(n=s.x),s.yr&&(r=s.y)}return this.fromMinMax(e,i,n,r)},i.prototype.intersects=function(t){return t.leftthis.x+this.width)return!1}else{var n=1/t.direction.x,r=(this.x-t.start.x)*n,o=(this.x+this.width-t.start.x)*n;if(r>o){var s=r;r=o,o=s}if(e.value=Math.max(r,e.value),i=Math.min(o,i),e.value>i)return!1}if(Math.abs(t.direction.y)<1e-6){if(t.start.ythis.y+this.height)return!1}else{var a=1/t.direction.y,h=(this.y-t.start.y)*a,c=(this.y+this.height-t.start.y)*a;if(h>c){var u=h;h=c,c=u}if(e.value=Math.max(h,e.value),i=Math.max(c,i),e.value>i)return!1}return!0},i.prototype.containsRect=function(t){return this.x<=t.x&&t.x1)return!1;var u=(h.x*o.y-h.y*o.x)/a;return!(u<0||u>1)},i.lineToLineIntersection=function(e,i,n,r){var o=new t.Vector2(0,0),s=t.Vector2.subtract(i,e),a=t.Vector2.subtract(r,n),h=s.x*a.y-s.y*a.x;if(0==h)return o;var c=t.Vector2.subtract(n,e),u=(c.x*a.y-c.y*a.x)/h;if(u<0||u>1)return o;var l=(c.x*s.y-c.y*s.x)/h;return l<0||l>1?o:o=t.Vector2.add(e,new t.Vector2(u*s.x,u*s.y))},i.closestPointOnLine=function(e,i,n){var r=t.Vector2.subtract(i,e),o=t.Vector2.subtract(n,e),s=t.Vector2.dot(o,r)/t.Vector2.dot(r,r);return s=t.MathHelper.clamp(s,0,1),t.Vector2.add(e,new t.Vector2(r.x*s,r.y*s))},i.circleToCircle=function(e,i,n,r){return t.Vector2.distanceSquared(e,n)<(i+r)*(i+r)},i.circleToLine=function(e,i,n,r){return t.Vector2.distanceSquared(e,this.closestPointOnLine(n,r,e))=t&&r.y>=e&&r.x=t+n&&(s|=e.right),o.y=i+r&&(s|=e.bottom),s},i}();t.Collisions=i}(es||(es={})),function(t){var e=function(){function e(e,i,n,r,o){this.fraction=0,this.distance=0,this.point=t.Vector2.zero,this.normal=t.Vector2.zero,this.collider=e,this.fraction=i,this.distance=n,this.point=r,this.centroid=t.Vector2.zero}return e.prototype.setValues=function(t,e,i,n){this.collider=t,this.fraction=e,this.distance=i,this.point=n},e.prototype.setValuesNonCollider=function(t,e,i,n){this.fraction=t,this.distance=e,this.point=i,this.normal=n},e.prototype.reset=function(){this.collider=null,this.fraction=this.distance=0},e.prototype.toString=function(){return"[RaycastHit] fraction: "+this.fraction+", distance: "+this.distance+", normal: "+this.normal+", centroid: "+this.centroid+", point: "+this.point},e}();t.RaycastHit=e}(es||(es={})),function(t){var e=function(){function e(){}return e.reset=function(){this._spatialHash=new t.SpatialHash(this.spatialHashCellSize)},e.clear=function(){this._spatialHash.clear()},e.overlapCircleAll=function(t,e,i,n){if(void 0===n&&(n=-1),0!=i.length)return this._spatialHash.overlapCircle(t,e,i,n);console.error("An empty results array was passed in. No results will ever be returned.")},e.boxcastBroadphase=function(t,e){return void 0===e&&(e=this.allLayers),this._spatialHash.aabbBroadphase(t,null,e)},e.boxcastBroadphaseExcludingSelf=function(t,e,i){return void 0===i&&(i=this.allLayers),this._spatialHash.aabbBroadphase(e,t,i)},e.addCollider=function(t){e._spatialHash.register(t)},e.removeCollider=function(t){e._spatialHash.remove(t)},e.updateCollider=function(t){this._spatialHash.remove(t),this._spatialHash.register(t)},e.linecast=function(t,i,n){return void 0===n&&(n=e.allLayers),this._hitArray[0].reset(),this.linecastAll(t,i,this._hitArray,n),this._hitArray[0]},e.linecastAll=function(t,i,n,r){return void 0===r&&(r=e.allLayers),0==n.length?(console.warn("传入了一个空的hits数组。没有点击会被返回"),0):this._spatialHash.linecast(t,i,n,r)},e.debugDraw=function(t){this._spatialHash.debugDraw(t,2)},e.spatialHashCellSize=100,e.allLayers=-1,e.raycastsHitTriggers=!1,e.raycastsStartInColliders=!1,e._hitArray=[new t.RaycastHit],e}();t.Physics=e}(es||(es={})),function(t){var e=function(){return function(e,i){this.start=e,this.end=i,this.direction=t.Vector2.subtract(this.end,this.start)}}();t.Ray2D=e}(es||(es={})),function(t){var e=function(){function e(e){void 0===e&&(e=100),this.gridBounds=new t.Rectangle,this._overlapTestCircle=new t.Circle(0),this._cellDict=new i,this._tempHashSet=[],this._cellSize=e,this._inverseCellSize=1/this._cellSize,this._raycastParser=new n}return e.prototype.register=function(e){var i=e.bounds;e.registeredPhysicsBounds=i;var n=this.cellCoords(i.x,i.y),r=this.cellCoords(i.right,i.bottom);this.gridBounds.contains(n.x,n.y)||(this.gridBounds=t.RectangleExt.union(this.gridBounds,n)),this.gridBounds.contains(r.x,r.y)||(this.gridBounds=t.RectangleExt.union(this.gridBounds,r));for(var o=n.x;o<=r.x;o++)for(var s=n.y;s<=r.y;s++){var a=this.cellAtPosition(o,s,!0);a.firstOrDefault(function(t){return t.hashCode==e.hashCode})||a.push(e)}},e.prototype.remove=function(t){for(var e=t.registeredPhysicsBounds,i=this.cellCoords(e.x,e.y),n=this.cellCoords(e.right,e.bottom),r=i.x;r<=n.x;r++)for(var o=i.y;o<=n.y;o++){var s=this.cellAtPosition(r,o);s?s.remove(t):console.log("从不存在碰撞器的单元格中移除碰撞器: ["+t+"]")}},e.prototype.removeWithBruteForce=function(t){this._cellDict.remove(t)},e.prototype.clear=function(){this._cellDict.clear()},e.prototype.debugDraw=function(t,e){void 0===e&&(e=1);for(var i=this.gridBounds.x;i<=this.gridBounds.right;i++)for(var n=this.gridBounds.y;n<=this.gridBounds.bottom;n++){var r=this.cellAtPosition(i,n);r&&r.length>0&&this.debugDrawCellDetails(i,n,r.length,t,e)}},e.prototype.aabbBroadphase=function(e,i,n){this._tempHashSet.length=0;for(var r=this.cellCoords(e.x,e.y),o=this.cellCoords(e.right,e.bottom),s=r.x;s<=o.x;s++)for(var a=r.y;a<=o.y;a++){var h=this.cellAtPosition(s,a);if(h)for(var c=function(r){var o=h[r];if(o==i||!t.Flags.isFlagSet(n,o.physicsLayer.value))return"continue";e.intersects(o.bounds)&&(u._tempHashSet.firstOrDefault(function(t){return t.hashCode==o.hashCode})||u._tempHashSet.push(o))},u=this,l=0;l=this.points.length?this.points[0]:this.points[n+1];var o=t.Vector2Ext.perpendicular(r,e);t.Vector2Ext.normalize(o),this._edgeNormals[n]=o}},i.buildSymmetricalPolygon=function(e,i){for(var n=new Array(e),r=0;rr&&(r=s,n=o)}return e[n]},i.getClosestPointOnPolygonToPoint=function(e,i,n,r){n.value=Number.MAX_VALUE,r.x=0,r.y=0;for(var o=new t.Vector2(0,0),s=0,a=0;at.y!=this.points[n].y>t.y&&t.x<(this.points[n].x-this.points[i].x)*(t.y-this.points[i].y)/(this.points[n].y-this.points[i].y)+this.points[i].x&&(e=!e);return e},i.prototype.pointCollidesWithShape=function(e,i){return t.ShapeCollisions.pointToPoly(e,this,i)},i}(t.Shape);t.Polygon=e}(es||(es={})),function(t){var e=function(e){function i(t,n){var r=e.call(this,i.buildBox(t,n),!0)||this;return r.width=t,r.height=n,r}return __extends(i,e),i.buildBox=function(e,i){var n=e/2,r=i/2,o=new Array(4);return o[0]=new t.Vector2(-n,-r),o[1]=new t.Vector2(n,-r),o[2]=new t.Vector2(n,r),o[3]=new t.Vector2(-n,r),o},i.prototype.updateBox=function(e,i){this.width=e,this.height=i;var n=e/2,r=i/2;this.points[0]=new t.Vector2(-n,-r),this.points[1]=new t.Vector2(n,-r),this.points[2]=new t.Vector2(n,r),this.points[3]=new t.Vector2(-n,r);for(var o=0;o1)return!1;var a,h=t.Vector2.add(s.start,t.Vector2.add(s.direction,new t.Vector2(r.value))),c=0;h.xi.bounds.right&&(c|=1),h.yi.bounds.bottom&&(c|=2);var u=a+c;return 3==u&&console.log("m == 3. corner "+t.Time.frameCount),!0},e}();t.RealtimeCollisions=e}(es||(es={})),function(t){var e=function(){function e(){}return e.polygonToPolygon=function(e,i,n){for(var r,o=!0,s=e.edgeNormals,a=i.edgeNormals,h=Number.POSITIVE_INFINITY,c=new t.Vector2,u=t.Vector2.subtract(e.position,i.position),l=0;l0&&(o=!1),!o)return!1;(y=Math.abs(y))r&&(r=o);return{min:n,max:r}},e.circleToPolygon=function(e,i,n){var r,o=t.Vector2.subtract(e.position,i.position),s=new t.Ref(0),a=t.Polygon.getClosestPointOnPolygonToPoint(i.points,o,s,n.normal),h=i.containsPoint(e.position);if(s.value>e.radius*e.radius&&!h)return!1;if(h)r=t.Vector2.multiply(n.normal,new t.Vector2(Math.sqrt(s.value)-e.radius));else if(0==s.value)r=t.Vector2.multiply(n.normal,new t.Vector2(e.radius));else{var c=Math.sqrt(s.value);r=t.Vector2.multiply(new t.Vector2(-t.Vector2.subtract(o,a)),new t.Vector2((e.radius-s.value)/c))}return n.minimumTranslationVector=r,n.point=t.Vector2.add(a,i.position),!0},e.circleToBox=function(e,i,n){var r=i.bounds.getClosestPointOnRectangleBorderToPoint(e.position,n.normal);if(i.containsPoint(e.position)){n.point=r;var o=t.Vector2.add(r,t.Vector2.multiply(n.normal,new t.Vector2(e.radius)));return n.minimumTranslationVector=t.Vector2.subtract(e.position,o),!0}var s=t.Vector2.distanceSquared(r,e.position);if(0==s)n.minimumTranslationVector=t.Vector2.multiply(n.normal,new t.Vector2(e.radius));else if(s<=e.radius*e.radius){n.normal=t.Vector2.subtract(e.position,r);var a=n.normal.length()-e.radius;return n.point=r,t.Vector2Ext.normalize(n.normal),n.minimumTranslationVector=t.Vector2.multiply(new t.Vector2(a),n.normal),!0}return!1},e.pointToCircle=function(e,i,n){var r=t.Vector2.distanceSquared(e,i.position),o=1+i.radius;if(r1)return!1;var l=(c.x*s.y-c.y*s.x)/h;return!(l<0||l>1)&&(o=o.add(e).add(t.Vector2.multiply(new t.Vector2(u),s)),!0)},e.lineToCircle=function(e,i,n,r){var o=t.Vector2.distance(e,i),s=t.Vector2.divide(t.Vector2.subtract(i,e),new t.Vector2(o)),a=t.Vector2.subtract(e,n.position),h=t.Vector2.dot(a,s),c=t.Vector2.dot(a,a)-n.radius*n.radius;if(c>0&&h>0)return!1;var u=h*h-c;return!(u<0)&&(r.fraction=-h-Math.sqrt(u),r.fraction<0&&(r.fraction=0),r.point=t.Vector2.add(e,t.Vector2.multiply(new t.Vector2(r.fraction),s)),r.distance=t.Vector2.distance(e,r.point),r.normal=t.Vector2.normalize(t.Vector2.subtract(r.point,n.position)),r.fraction=r.distance/o,!0)},e.boxToBoxCast=function(e,i,n,r){var o=this.minkowskiDifference(e,i);if(o.contains(0,0)){var s=o.getClosestPointOnBoundsToOrigin();return!s.equals(t.Vector2.zero)&&(r.normal=new t.Vector2(-s.x),r.normal.normalize(),r.distance=0,r.fraction=0,!0)}var a=new t.Ray2D(t.Vector2.zero,new t.Vector2(-n.x)),h=new t.Ref(0);return!!(o.rayIntersects(a,h)&&h.value<=1)&&(r.fraction=h.value,r.distance=n.length()*h.value,r.normal=new t.Vector2(-n.x,-n.y),r.normal.normalize(),r.centroid=t.Vector2.add(e.bounds.center,t.Vector2.multiply(n,new t.Vector2(h.value))),!0)},e}();t.ShapeCollisions=e}(es||(es={})),function(t){var e=function(){function e(){this.mass=1,this.radius=0,this.collidesWithColliders=!0}return e.prototype.applyForce=function(e){this.acceleration.add(t.Vector2.divide(e,new t.Vector2(this.mass)))},e}();t.Particle=e}(es||(es={})),function(t){var e=function(){function e(e){void 0===e&&(e=null),this.gravity=new t.Vector2(0,980),this.constraintIterations=3,this.maximumStepIterations=5,this.allowDragging=!0,this._composites=[],this._tempCircle=new t.Circle(1),this._leftOverTime=0,this._fixedDeltaTime=1/60,this._iterationSteps=0,this._fixedDeltaTimeSq=0,this.simulationBounds=e,this._fixedDeltaTimeSq=Math.pow(this._fixedDeltaTimeSq,2)}return e.prototype.update=function(){this.updateTiming(),this.allowDragging&&this.handleDragging();for(var t=1;t<=this._iterationSteps;t++)for(var e=this._composites.length-1;e>=0;e--){for(var i=this._composites[e],n=0;ni.height?e.y=i.height:e.yi.width&&(e.x=i.width)):(e.yi.height-t.radius&&(e.y=2*(i.height-t.radius)-e.y),e.x>i.width-t.radius&&(e.x=2*(i.width-t.radius)-e.x),e.x=0;t--)this._constraints[t].solve()},e.prototype.updateParticles=function(e,i){for(var n=0;n=0;t--)this._constraints[t].collidesWithColliders&&this._constraints[t].handleCollisions(this.collidesWithLayers)},e.prototype.debugRender=function(t){},e}();t.Composite=e}(es||(es={})),function(t){var e=function(){function t(){this.collidesWithColliders=!0}return t.prototype.handleCollisions=function(t){},t}();t.Constraint=e}(es||(es={})),function(t){var e=function(){return function(){}}();t.TmxGroup=e}(es||(es={})),function(t){var e=function(){return function(){}}();t.TmxImageLayer=e}(es||(es={})),function(t){var e=function(){function e(){}return Object.defineProperty(e.prototype,"offset",{get:function(){return new t.Vector2(this.offsetX,this.offsetY)},enumerable:!0,configurable:!0}),e.prototype.getTileWithGid=function(t){for(var e=0;e=0&&(e.push(this.findBoundsRect(i,o,r,t)),i=-1)}i>=0&&(e.push(this.findBoundsRect(i,this.map.width,r,t)),i=-1)}return e},e.prototype.findBoundsRect=function(e,i,n,r){for(var o=-1,s=n+1;sthis.tileHeight||this.maxTileWidth>this.tileWidth},enumerable:!0,configurable:!0}),i.prototype.getTilesetForTileGid=function(t){if(0==t)return null;for(var e=this.tilesets.length-1;e>=0;e--)if(this.tilesets[e].firstGid<=t)return this.tilesets[e];console.error("tile gid"+t+"未在任何tileset中找到")},i.prototype.worldToTilePositionX=function(e,i){void 0===i&&(i=!0);var n=Math.floor(e/this.tileWidth);return i?t.MathHelper.clamp(n,0,this.width-1):n},i.prototype.worldToTilePositionY=function(e,i){void 0===i&&(i=!0);var n=Math.floor(e/this.tileHeight);return i?t.MathHelper.clamp(n,0,this.height-1):n},i.prototype.getLayer=function(t){return this.layers[t]},i.prototype.update=function(){this.tilesets.forEach(function(t){t.update()})},i.prototype.dispose=function(t){void 0===t&&(t=!0),this._isDisposed||(t&&(this.tilesets.forEach(function(t){t.image&&t.image.dispose()}),this.imageLayers.forEach(function(t){t.image&&t.image.dispose()})),this._isDisposed=!0)},i}(t.TmxDocument);t.TmxMap=e,function(t){t[t.unknown=0]="unknown",t[t.orthogonal=1]="orthogonal",t[t.isometric=2]="isometric",t[t.staggered=3]="staggered",t[t.hexagonal=4]="hexagonal"}(t.OrientationType||(t.OrientationType={})),function(t){t[t.x=0]="x",t[t.y=1]="y"}(t.StaggerAxisType||(t.StaggerAxisType={})),function(t){t[t.odd=0]="odd",t[t.even=1]="even"}(t.StaggerIndexType||(t.StaggerIndexType={})),function(t){t[t.rightDown=0]="rightDown",t[t.rightUp=1]="rightUp",t[t.leftDown=2]="leftDown",t[t.leftUp=3]="leftUp"}(t.RenderOrderType||(t.RenderOrderType={}))}(es||(es={})),function(t){var e=function(){return function(){}}();t.TmxObjectGroup=e;var i=function(){return function(){this.shape=new egret.Shape,this.textField=new egret.TextField}}();t.TmxObject=i;var n=function(){return function(){}}();t.TmxText=n;var r=function(){return function(){}}();t.TmxAlignment=r,function(t){t[t.basic=0]="basic",t[t.point=1]="point",t[t.tile=2]="tile",t[t.ellipse=3]="ellipse",t[t.polygon=4]="polygon",t[t.polyline=5]="polyline",t[t.text=6]="text"}(t.TmxObjectType||(t.TmxObjectType={})),function(t){t[t.unkownOrder=-1]="unkownOrder",t[t.TopDown=0]="TopDown",t[t.IndexOrder=1]="IndexOrder"}(t.DrawOrderType||(t.DrawOrderType={})),function(t){t[t.left=0]="left",t[t.center=1]="center",t[t.right=2]="right",t[t.justify=3]="justify"}(t.TmxHorizontalAlignment||(t.TmxHorizontalAlignment={})),function(t){t[t.top=0]="top",t[t.center=1]="center",t[t.bottom=2]="bottom"}(t.TmxVerticalAlignment||(t.TmxVerticalAlignment={}))}(es||(es={})),function(t){var e=function(){function e(){}return e.loadTmxMap=function(t,e){var i=RES.getRes(e);return this.loadTmxMapData(t,i,RES.getResourceInfo(e))},e.loadTmxMapData=function(e,i,n){return __awaiter(this,void 0,void 0,function(){var r,o,s,a;return __generator(this,function(h){switch(h.label){case 0:e.version=i.version,e.tiledVersion=i.tiledversion,e.width=i.width,e.height=i.height,e.tileWidth=i.tilewidth,e.tileHeight=i.tileheight,e.hexSideLength=i.hexsidelength,e.orientation=this.parseOrientationType(i.orientation),e.staggerAxis=this.parseStaggerAxisType(i.staggeraxis),e.staggerIndex=this.parseStaggerIndexType(i.staggerindex),e.renderOrder=this.parseRenderOrderType(i.renderorder),e.nextObjectID=i.nextobjectid,e.backgroundColor=t.TmxUtils.color16ToUnit(i.color),e.properties=this.parsePropertyDict(i.properties),e.maxTileWidth=e.tileWidth,e.maxTileHeight=e.tileHeight,e.tmxDirectory=n.root+n.url.replace(".","_").replace(n.name,""),e.tilesets=[],r=0,o=i.tilesets,h.label=1;case 1:return rt.map.maxTileWidth&&(t.map.maxTileWidth=e.image.width),e.image.height>t.map.maxTileHeight&&(t.map.maxTileHeight=e.image.height))}),t.tileRegions.forEach(function(e){var i=e.width,n=e.height;i>t.map.maxTileWidth&&(t.map.maxTileWidth=i),i>t.map.maxTileHeight&&(t.map.maxTileHeight=n)})},e.parseOrientationType=function(e){return"unknown"==e?t.OrientationType.unknown:"orthogonal"==e?t.OrientationType.orthogonal:"isometric"==e?t.OrientationType.isometric:"staggered"==e?t.OrientationType.staggered:"hexagonal"==e?t.OrientationType.hexagonal:t.OrientationType.unknown},e.parseStaggerAxisType=function(e){return"y"==e?t.StaggerAxisType.y:t.StaggerAxisType.x},e.parseStaggerIndexType=function(e){return"even"==e?t.StaggerIndexType.even:t.StaggerIndexType.odd},e.parseRenderOrderType=function(e){return"right-up"==e?t.RenderOrderType.rightUp:"left-down"==e?t.RenderOrderType.leftDown:"left-up"==e?t.RenderOrderType.leftUp:t.RenderOrderType.rightDown},e.parsePropertyDict=function(e){if(!e)return null;for(var i=new Map,n=0,r=e;n=e.columns));m+=e.tileWidth+e.spacing);else e.tiles.forEach(function(i,n){e.tileRegions.set(n,new t.Rectangle(0,0,i.image.width,i.image.height))});return[2,e]}})})},e.loadTmxTilesetTile=function(e,i,n,r,o){return __awaiter(this,void 0,void 0,function(){var s,a,h,c,u,l,p,d,f,g,y,m,_;return __generator(this,function(v){switch(v.label){case 0:if(e.tileset=i,e.id=n.id,s=n.terrain)for(e.terrainEdges=new Array(4),a=0,h=0,c=s;h0){a.shape.x=h.x,a.shape.y=h.y,i.addChild(a.shape),a.shape.graphics.clear(),a.shape.graphics.lineStyle(1,10526884);for(l=0;l0&&(u=l.currentAnimationFrameGid);var p=i.tileset.tileRegions.get(u),d=Math.floor(i.x)*s,f=Math.floor(i.y)*a;i.horizontalFlip&&i.verticalFlip?(d+=a+(p.height*o.y-a),f-=p.width*o.x-s):i.horizontalFlip?d+=s+(p.height*o.y-a):i.verticalFlip?f+=s-p.width*o.x:f+=a-p.height*o.y;var g=new t.Vector2(d,f).add(r);if(i.tileset.image){if(n){var y=i.tileset.image.bitmap.getTexture(""+u);y||(y=i.tileset.image.bitmap.createTexture(""+u,p.x,p.y,p.width,p.height)),i.tileset.image.texture=new e(y),n.addChild(i.tileset.image.texture),i.tileset.image.texture.x!=g.x&&(i.tileset.image.texture.x=g.x),i.tileset.image.texture.y!=g.y&&(i.tileset.image.texture.y=g.y),i.verticalFlip&&i.horizontalFlip?(i.tileset.image.texture.scaleX=-1,i.tileset.image.texture.scaleY=-1):i.verticalFlip?(i.tileset.image.texture.scaleX=o.x,i.tileset.image.texture.scaleY=-1):i.horizontalFlip?(i.tileset.image.texture.scaleX=-1,i.tileset.image.texture.scaleY=o.y):(i.tileset.image.texture.scaleX=o.x,i.tileset.image.texture.scaleY=o.y),0!=i.tileset.image.texture.rotation&&(i.tileset.image.texture.rotation=0),0!=i.tileset.image.texture.anchorOffsetX&&(i.tileset.image.texture.anchorOffsetX=0),0!=i.tileset.image.texture.anchorOffsetY&&(i.tileset.image.texture.anchorOffsetY=0)}}else l.image.texture&&(l.image.bitmap.getTexture(u.toString())||(l.image.texture=new e(l.image.bitmap.createTexture(u.toString(),p.x,p.y,p.width,p.height)),n.addChild(l.image.texture)),l.image.texture.x=g.x,l.image.texture.y=g.y,l.image.texture.scaleX=o.x,l.image.texture.scaleY=o.y,l.image.texture.rotation=0,l.image.texture.anchorOffsetX=0,l.image.texture.anchorOffsetY=0,l.image.texture.filters=[h])},i}();t.TiledRendering=i}(es||(es={})),function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.update=function(){this.tiles.forEach(function(t){t.updateAnimatedTiles()})},e}(t.TmxDocument);t.TmxTileset=e;var i=function(){return function(){}}();t.TmxTileOffset=i;var n=function(){return function(){}}();t.TmxTerrain=n}(es||(es={})),function(t){var e=function(){function e(){}return Object.defineProperty(e.prototype,"currentAnimationFrameGid",{get:function(){return this.animationFrames[this._animationCurrentFrame].gid+this.tileset.firstGid},enumerable:!0,configurable:!0}),e.prototype.processProperties=function(){var t;(t=this.properties.get("engine.isDestructable"))&&(this.isDestructable=Boolean(t)),(t=this.properties.get("engine:isSlope"))&&(this.isSlope=Boolean(t)),(t=this.properties.get("engine:isOneWayPlatform"))&&(this.isOneWayPlatform=Boolean(t)),(t=this.properties.get("engine:slopeTopLeft"))&&(this.slopeTopLeft=Number(t)),(t=this.properties.get("engine:slopeTopRight"))&&(this.slopeTopRight=Number(t))},e.prototype.updateAnimatedTiles=function(){0!=this.animationFrames.length&&(this._animationElapsedTime+=t.Time.deltaTime,this._animationElapsedTime>this.animationFrames[this._animationCurrentFrame].duration&&(this._animationCurrentFrame=t.MathHelper.incrementWithWrap(this._animationCurrentFrame,this.animationFrames.length),this._animationElapsedTime=0))},e}();t.TmxTilesetTile=e;var i=function(){return function(){}}();t.TmxAnimationFrame=i}(es||(es={})),function(t){var e=function(){function e(){}return e.decode=function(e,i,n){switch(n=n||"none",i=i||"none"){case"base64":var r=t.Base64Utils.decodeBase64AsArray(e,4);return"none"===n?r:t.Base64Utils.decompress(e,r,n);case"csv":return t.Base64Utils.decodeCSV(e);case"none":for(var o=[],s=0;si;n--)if(t[n]0&&t[r-1]>n;r--)t[r]=t[r-1];t[r]=n}},t.binarySearch=function(t,e){for(var i=0,n=t.length,r=i+n>>1;i=t[r]&&(i=r+1),r=i+n>>1;return t[i]==e?i:-1},t.findElementIndex=function(t,e){for(var i=t.length,n=0;nt[e]&&(e=n);return e},t.getMinElementIndex=function(t){for(var e=0,i=t.length,n=1;n=0;--r)i.unshift(e[r]);return i},t.getDifferAry=function(t,e){t=this.getUniqueAry(t),e=this.getUniqueAry(e);for(var i=t.concat(e),n={},r=[],o=i.length,s=0;s=0;e-=1)t.splice(e,1)},t.cloneList=function(t){return t?t.slice(0,t.length):null},t.equals=function(t,e){if(t==e)return!0;var i=t.length;if(i!=e.length)return!1;for(;i--;)if(t[i]!=e[i])return!1;return!0},t.insert=function(t,e,i){if(!t)return null;var n=t.length;if(e>n&&(e=n),e<0&&(e=0),e==n)t.push(i);else if(0==e)t.unshift(i);else{for(var r=n-1;r>=e;r-=1)t[r+1]=t[r];t[e]=i}return i},t}();!function(t){var e=function(){function t(){}return Object.defineProperty(t,"nativeBase64",{get:function(){return"function"==typeof window.atob},enumerable:!0,configurable:!0}),t.decode=function(t){if(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),this.nativeBase64)return window.atob(t);for(var e,i,n,r,o,s,a=[],h=0;h>4,i=(15&r)<<4|(o=this._keyStr.indexOf(t.charAt(h++)))>>2,n=(3&o)<<6|(s=this._keyStr.indexOf(t.charAt(h++))),a.push(String.fromCharCode(e)),64!==o&&a.push(String.fromCharCode(i)),64!==s&&a.push(String.fromCharCode(n));return a=a.join("")},t.encode=function(t){if(t=t.replace(/\r\n/g,"\n"),!this.nativeBase64){for(var e,i,n,r,o,s,a,h=[],c=0;c>2,o=(3&e)<<4|(i=t.charCodeAt(c++))>>4,s=(15&i)<<2|(n=t.charCodeAt(c++))>>6,a=63&n,isNaN(i)?s=a=64:isNaN(n)&&(a=64),h.push(this._keyStr.charAt(r)),h.push(this._keyStr.charAt(o)),h.push(this._keyStr.charAt(s)),h.push(this._keyStr.charAt(a));return h=h.join("")}window.btoa(t)},t.decodeBase64AsArray=function(e,i){i=i||1;var n,r,o,s=t.decode(e),a=new Uint32Array(s.length/i);for(n=0,o=s.length/i;n=0;--r)a[n]+=s.charCodeAt(n*i+r)<<(r<<3);return a},t.decompress=function(t,e,i){throw new Error("GZIP/ZLIB compressed TMX Tile Map not supported!")},t.decodeCSV=function(t){for(var e=t.replace("\n","").trim().split(","),i=[],n=0;n>16},set:function(t){this._packedValue=4278255615&this._packedValue|t<<16},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this._packedValue>>8},set:function(t){this._packedValue=4294902015&this._packedValue|t<<8},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"r",{get:function(){return this._packedValue},set:function(t){this._packedValue=4294967040&this._packedValue|t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this._packedValue>>24},set:function(t){this._packedValue=16777215&this._packedValue|t<<24},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"packedValue",{get:function(){return this._packedValue},set:function(t){this._packedValue=t},enumerable:!0,configurable:!0}),e.prototype.equals=function(t){return this._packedValue==t._packedValue},e}();t.Color=e}(es||(es={})),function(t){var e=function(){function t(){this.loadedAssets=new Map}return t.prototype.loadRes=function(t,e){var i=this;return void 0===e&&(e=!0),new Promise(function(n,r){var o=i.loadedAssets.get(t);o?n(o):e?RES.getResAsync(t).then(function(e){i.loadedAssets.set(t,e),n(e)}).catch(function(e){console.error("资源加载错误:",t,e),r(e)}):RES.getResByUrl(t).then(function(e){i.loadedAssets.set(t,e),n(e)}).catch(function(e){console.error("资源加载错误:",t,e),r(e)})})},t.prototype.dispose=function(){this.loadedAssets.forEach(function(t){var e=t;RES.destroyRes(e)&&e.dispose()}),this.loadedAssets.clear()},t}();t.ContentManager=e}(es||(es={})),function(t){var e=function(){function t(){}return t.getColorMatrix=function(t){var e=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];return e[0]=Math.floor(t/256/256)/255,e[6]=Math.floor(t/256%256)/255,e[12]=t%256/255,new egret.ColorMatrixFilter(e)},t}();t.DrawUtils=e}(es||(es={})),function(t){var e=function(){function e(){}return e.oppositeEdge=function(e){switch(e){case t.Edge.bottom:return t.Edge.top;case t.Edge.top:return t.Edge.bottom;case t.Edge.left:return t.Edge.right;case t.Edge.right:return t.Edge.left}},e.isHorizontal=function(e){return e==t.Edge.right||e==t.Edge.left},e.isVertical=function(e){return e==t.Edge.top||e==t.Edge.bottom},e}();t.EdgeExt=e}(es||(es={})),function(t){var e=function(){return function(t,e){this.func=t,this.context=e}}();t.FuncPack=e;var i=function(){function t(){this._messageTable=new Map}return t.prototype.addObserver=function(t,i,n){var r=this._messageTable.get(t);r||(r=[],this._messageTable.set(t,r)),-1!=r.findIndex(function(t){return t.func==i})&&console.warn("您试图添加相同的观察者两次"),r.push(new e(i,n))},t.prototype.removeObserver=function(t,e){var i=this._messageTable.get(t),n=i.findIndex(function(t){return t.func==e});-1!=n&&i.removeAt(n)},t.prototype.emit=function(t,e){var i=this._messageTable.get(t);if(i)for(var n=i.length-1;n>=0;n--)i[n].func.call(i[n].context,e)},t}();t.Emitter=i}(es||(es={})),function(t){!function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.left=2]="left",t[t.right=3]="right"}(t.Edge||(t.Edge={}))}(es||(es={})),function(t){var e=function(){function t(){}return t.repeat=function(t,e){for(var i=[];e--;)i.push(t);return i},t}();t.Enumerable=e}(es||(es={})),function(t){var e=function(){function t(){}return t.default=function(){return new t},t.prototype.equals=function(t,e){return"function"==typeof t.equals?t.equals(e):t===e},t}();t.EqualityComparer=e}(es||(es={})),function(t){var e=function(){function t(){}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),t.prototype.setEnabled=function(t){this._enabled!=t&&(this._enabled=t,this._enabled?this.onEnabled():this.onDisabled())},t.prototype.onEnabled=function(){},t.prototype.onDisabled=function(){},t.prototype.update=function(){},t}();t.GlobalManager=e}(es||(es={})),function(t){var e=function(){function t(){}return t.warmCache=function(t){if((t-=this._objectQueue.length)>0)for(var e=0;ethis._objectQueue.length;)this._objectQueue.shift()},t.clearCache=function(){this._objectQueue.length=0},t.obtain=function(){return this._objectQueue.length>0?this._objectQueue.shift():[]},t.free=function(t){this._objectQueue.unshift(t),t.length=0},t._objectQueue=[],t}();t.ListPool=e}(es||(es={})),function(t){var e=function(){function t(){}return t.toNumber=function(t){return null==t?0:Number(t)},t}();t.NumberExtension=e}(es||(es={})),function(t){var e=function(){function t(t,e){this.first=t,this.second=e}return t.prototype.clear=function(){this.first=this.second=null},t.prototype.equals=function(t){return this.first==t.first&&this.second==t.second},t}();t.Pair=e}(es||(es={})),function(t){var e=function(){function t(){}return t.warmCache=function(t,e){if((e-=this._objectQueue.length)>0)for(var i=0;ithis._objectQueue.length;)this._objectQueue.shift()},t.clearCache=function(){this._objectQueue.length=0},t.obtain=function(t){return this._objectQueue.length>0?this._objectQueue.shift():new t},t.free=function(t){this._objectQueue.unshift(t),egret.is(t,"IPoolable")&&t.reset()},t._objectQueue=[],t}();t.Pool=e}(es||(es={}));var RandomUtils=function(){function t(){}return t.randrange=function(t,e,i){if(void 0===i&&(i=1),0==i)throw new Error("step 不能为 0");var n=e-t;if(0==n)throw new Error("没有可用的范围("+t+","+e+")");n<0&&(n=t-e);var r=Math.floor((n+i-1)/i);return Math.floor(this.random()*r)*i+Math.min(t,e)},t.randint=function(t,e){return(t=Math.floor(t))>(e=Math.floor(e))?t++:e++,this.randrange(t,e)},t.randnum=function(t,e){return this.random()*(e-t)+t},t.shuffle=function(t){return t.sort(this._randomCompare),t},t.choice=function(t){if(!t.hasOwnProperty("length"))throw new Error("无法对此对象执行此操作");var e=Math.floor(this.random()*t.length);return t instanceof String?String(t).charAt(e):t[e]},t.sample=function(t,e){var i=t.length;if(e<=0||i=0;)s=Math.floor(this.random()*i);n.push(t[s]),r.push(s)}return n},t.random=function(){return Math.random()},t.boolean=function(t){return void 0===t&&(t=.5),this.random().5?1:-1},t}();!function(t){var e=function(){function e(){}return e.getSide=function(e,i){switch(i){case t.Edge.top:return e.top;case t.Edge.bottom:return e.bottom;case t.Edge.left:return e.left;case t.Edge.right:return e.right}},e.union=function(e,i){var n=new t.Rectangle(i.x,i.y,0,0),r=new t.Rectangle;return r.x=Math.min(e.x,n.x),r.y=Math.min(e.y,n.y),r.width=Math.max(e.right,n.right)-r.x,r.height=Math.max(e.bottom,r.bottom)-r.y,r},e.getHalfRect=function(e,i){switch(i){case t.Edge.top:return new t.Rectangle(e.x,e.y,e.width,e.height/2);case t.Edge.bottom:return new t.Rectangle(e.x,e.y+e.height/2,e.width,e.height/2);case t.Edge.left:return new t.Rectangle(e.x,e.y,e.width/2,e.height);case t.Edge.right:return new t.Rectangle(e.x+e.width/2,e.y,e.width/2,e.height)}},e.getRectEdgePortion=function(e,i,n){switch(void 0===n&&(n=1),i){case t.Edge.top:return new t.Rectangle(e.x,e.y,e.width,n);case t.Edge.bottom:return new t.Rectangle(e.x,e.y+e.height-n,e.width,n);case t.Edge.left:return new t.Rectangle(e.x,e.y,n,e.height);case t.Edge.right:return new t.Rectangle(e.x+e.width-n,e.y,n,e.height)}},e.expandSide=function(e,i,n){switch(n=Math.abs(n),i){case t.Edge.top:e.y-=n,e.height+=n;break;case t.Edge.bottom:e.height+=n;break;case t.Edge.left:e.x-=n,e.width+=n;break;case t.Edge.right:e.width+=n}},e.contract=function(t,e,i){t.x+=e,t.y+=i,t.width-=2*e,t.height-=2*i},e}();t.RectangleExt=e}(es||(es={})),function(t){var e=function(){return function(t){this.value=t}}();t.Ref=e}(es||(es={})),function(t){var e=function(){function t(){}return t.prototype.update=function(t){this.remainder+=t;var e=Math.trunc(this.remainder);return this.remainder-=e,e},t.prototype.reset=function(){this.remainder=0},t}();t.SubpixelNumber=e}(es||(es={})),function(t){var e=function(){function e(){this.triangleIndices=[],this._triPrev=new Array(12),this._triNext=new Array(12)}return e.testPointTriangle=function(e,i,n,r){return!(t.Vector2Ext.cross(t.Vector2.subtract(e,i),t.Vector2.subtract(n,i))<0)&&(!(t.Vector2Ext.cross(t.Vector2.subtract(e,n),t.Vector2.subtract(r,n))<0)&&!(t.Vector2Ext.cross(t.Vector2.subtract(e,r),t.Vector2.subtract(i,r))<0))},e.prototype.triangulate=function(i,n){void 0===n&&(n=!0);var r=i.length;this.initialize(r);for(var o=0,s=0;r>3&&o<500;){o++;var a=!0,h=i[this._triPrev[s]],c=i[s],u=i[this._triNext[s]];if(t.Vector2Ext.isTriangleCCW(h,c,u)){var l=this._triNext[this._triNext[s]];do{if(e.testPointTriangle(i[l],h,c,u)){a=!1;break}l=this._triNext[l]}while(l!=this._triPrev[s])}else a=!1;a?(this.triangleIndices.push(this._triPrev[s]),this.triangleIndices.push(s),this.triangleIndices.push(this._triNext[s]),this._triNext[this._triPrev[s]]=this._triNext[s],this._triPrev[this._triNext[s]]=this._triPrev[s],r--,s=this._triPrev[s]):s=this._triNext[s]}this.triangleIndices.push(this._triPrev[s]),this.triangleIndices.push(s),this.triangleIndices.push(this._triNext[s]),n||this.triangleIndices.reverse()},e.prototype.initialize=function(t){this.triangleIndices.length=0,this._triNext.lengtht.MathHelper.Epsilon?e.divide(new t.Vector2(i)):e.x=e.y=0},e.transformA=function(t,e,i,n,r,o){for(var s=0;sthis.safeArea.right&&(s.x=this.safeArea.right-s.width),s.topthis.safeArea.bottom&&(s.y=this.safeArea.bottom-s.height),s},i}();t.Layout=i,function(t){t[t.none=0]="none",t[t.left=1]="left",t[t.right=2]="right",t[t.horizontalCenter=4]="horizontalCenter",t[t.top=8]="top",t[t.bottom=16]="bottom",t[t.verticalCenter=32]="verticalCenter",t[t.topLeft=9]="topLeft",t[t.topRight=10]="topRight",t[t.topCenter=12]="topCenter",t[t.bottomLeft=17]="bottomLeft",t[t.bottomRight=18]="bottomRight",t[t.bottomCenter=20]="bottomCenter",t[t.centerLeft=33]="centerLeft",t[t.centerRight=34]="centerRight",t[t.center=36]="center"}(e=t.Alignment||(t.Alignment={}))}(es||(es={})),function(t){var e,i=function(){function t(t){void 0===t&&(t=n),this.getSystemTime=t,this._stopDuration=0,this._completeSlices=[]}return t.prototype.getState=function(){return void 0===this._startSystemTime?e.IDLE:void 0===this._stopSystemTime?e.RUNNING:e.STOPPED},t.prototype.isIdle=function(){return this.getState()===e.IDLE},t.prototype.isRunning=function(){return this.getState()===e.RUNNING},t.prototype.isStopped=function(){return this.getState()===e.STOPPED},t.prototype.slice=function(){return this.recordPendingSlice()},t.prototype.getCompletedSlices=function(){return Array.from(this._completeSlices)},t.prototype.getCompletedAndPendingSlices=function(){return this._completeSlices.concat([this.getPendingSlice()])},t.prototype.getPendingSlice=function(){return this.calculatePendingSlice()},t.prototype.getTime=function(){return this.caculateStopwatchTime()},t.prototype.reset=function(){this._startSystemTime=this._pendingSliceStartStopwatchTime=this._stopSystemTime=void 0,this._stopDuration=0,this._completeSlices=[]},t.prototype.start=function(t){if(void 0===t&&(t=!1),t&&this.reset(),void 0!==this._stopSystemTime){var e=(i=this.getSystemTime())-this._stopSystemTime;this._stopDuration+=e,this._stopSystemTime=void 0}else if(void 0===this._startSystemTime){var i=this.getSystemTime();this._startSystemTime=i,this._pendingSliceStartStopwatchTime=0}},t.prototype.stop=function(t){if(void 0===t&&(t=!1),void 0===this._startSystemTime)return 0;var e=this.getSystemTimeOfCurrentStopwatchTime();return t&&this.recordPendingSlice(this.caculateStopwatchTime(e)),this._stopSystemTime=e,this.getTime()},t.prototype.calculatePendingSlice=function(t){return void 0===this._pendingSliceStartStopwatchTime?Object.freeze({startTime:0,endTime:0,duration:0}):(void 0===t&&(t=this.getTime()),Object.freeze({startTime:this._pendingSliceStartStopwatchTime,endTime:t,duration:t-this._pendingSliceStartStopwatchTime}))},t.prototype.caculateStopwatchTime=function(t){return void 0===this._startSystemTime?0:(void 0===t&&(t=this.getSystemTimeOfCurrentStopwatchTime()),t-this._startSystemTime-this._stopDuration)},t.prototype.getSystemTimeOfCurrentStopwatchTime=function(){return void 0===this._stopSystemTime?this.getSystemTime():this._stopSystemTime},t.prototype.recordPendingSlice=function(t){if(void 0!==this._pendingSliceStartStopwatchTime){void 0===t&&(t=this.getTime());var e=this.calculatePendingSlice(t);return this._pendingSliceStartStopwatchTime=e.endTime,this._completeSlices.push(e),e}return this.calculatePendingSlice()},t}();t.Stopwatch=i,function(t){t.IDLE="IDLE",t.RUNNING="RUNNING",t.STOPPED="STOPPED"}(e||(e={})),t.setDefaultSystemTimeGetter=function(t){void 0===t&&(t=Date.now),n=t};var n=Date.now}(stopwatch||(stopwatch={})),function(t){var e=function(){function e(){this.showLog=!1,this.markers=[],this.stopwacth=new stopwatch.Stopwatch,this._markerNameToIdMap=new Map,this._rectShape1=new egret.Shape,this._rectShape2=new egret.Shape,this._rectShape3=new egret.Shape,this._rectShape4=new egret.Shape,this._rectShape5=new egret.Shape,this._rectShape6=new egret.Shape,this.logs=new Array(2);for(var e=0;e=e.logSnapDuration&&(u.logs[n].snapMin=u.logs[n].min,u.logs[n].snapMax=u.logs[n].max,u.logs[n].snapAvg=u.logs[n].avg,u.logs[n].samples=0)):(u.logs[n].min=h,u.logs[n].max=h,u.logs[n].avg=h,u.logs[n].initialized=!0)}o.markCount=r.nestCount,o.nestCount=r.nestCount}this.stopwacth.reset(),this.stopwacth.start()}},e.prototype.beginMark=function(t,i,n){if(void 0===n&&(n=0),n<0||n>=e.maxBars)throw new Error("barIndex argument out of range");var r=this.curLog.bars[n];if(r.markCount>=e.maxSamples)throw new Error("超出采样次数,可以设置更大的数字为timeruler.maxsaple,或者降低采样次数");if(r.nestCount>=e.maxNestCall)throw new Error("超出采样次数,可以设置更大的数字为timeruler.maxsaple,或者降低采样次数");var s=this._markerNameToIdMap.get(t);isNaN(s)&&(s=this.markers.length,this._markerNameToIdMap.set(t,s),this.markers.push(new o(t))),r.markerNests[r.nestCount++]=r.markCount,r.markers[r.markCount].markerId=s,r.markers[r.markCount].color=i,r.markers[r.markCount].beginTime=this.stopwacth.getTime(),r.markers[r.markCount].endTime=-1,r.markCount++},e.prototype.endMark=function(t,i){if(void 0===i&&(i=0),i<0||i>=e.maxBars)throw new Error("barIndex参数超出范围");var n=this.curLog.bars[i];if(n.nestCount<=0)throw new Error("先调用beginMark方法,再调用endMark方法");var r=this._markerNameToIdMap.get(t);if(isNaN(r))throw new Error("标记 "+t+" 未注册。请确认您指定的名称与 beginMark 方法使用的名称相同");var o=n.markerNests[--n.nestCount];if(n.markers[o].markerId!=r)throw new Error("beginMark/endMark方法的调用顺序不正确,beginMark(A),beginMark(B),endMark(B),endMark(A),但你不能像beginMark(A),beginMark(B),endMark(A),endMark(B)这样调用。");n.markers[o].endTime=this.stopwacth.getTime()},e.prototype.getAverageTime=function(t,i){if(t<0||t>=e.maxBars)throw new Error("barIndex参数超出范围");var n=0,r=this._markerNameToIdMap.get(i);return r&&(n=this.markers[r].logs[t].avg),n},e.prototype.resetLog=function(){this.markers.forEach(function(t){for(var e=0;e0&&(r+=e.barHeight+2*e.barPadding,o=Math.max(o,t.markers[t.markCount-1].endTime))});var s=this.sampleFrames*(1/60*1e3);this._frameAdjust=o>s?Math.max(0,this._frameAdjust)+1:Math.min(0,this._frameAdjust)-1,Math.max(this._frameAdjust)>e.autoAdjustDelay&&(this.sampleFrames=Math.min(e.maxSampleFrames,this.sampleFrames),this.sampleFrames=Math.max(this.targetSampleFrames,Math.floor(o/(1/60*1e3))+1),this._frameAdjust=0);var a=n/s,h=i.y-(r-e.barHeight),c=h,u=new t.Rectangle(i.x,c,n,r);this._rectShape1.graphics.clear(),this._rectShape1.graphics.beginFill(0,128/255),this._rectShape1.graphics.drawRect(u.x,u.y,u.width,u.height),this._rectShape1.graphics.endFill(),u.height=e.barHeight,this._rectShape2.graphics.clear();for(var l=0,p=this.prevLog.bars;l0)for(var f=0;f0?(i.waitTimer-=i.useUnscaledDeltaTime?t.Time.unscaledDeltaTime:t.Time.deltaTime,this._shouldRunNextFrame.push(i)):this.tickCoroutine(i)&&this._shouldRunNextFrame.push(i)}}this._unblockedCoroutines.length=0,this._unblockedCoroutines.concat(this._shouldRunNextFrame),this._shouldRunNextFrame.length=0,this._isInUpdate=!1},n.prototype.tickCoroutine=function(i){var n=i.enumerator.next();return!n.value||n.done?(t.Pool.free(i),!1):!n.value||(n.value instanceof t.WaitForSeconds?(i.waitTimer=n.value.waitTime,!0):n.value instanceof Number?(console.warn("协同程序检查返回一个Number类型,请不要在生产环境使用"),i.waitTimer=Number(n),!0):!(n.value instanceof e)||(i.waitForCoroutine=n.value,!0))},n}(t.GlobalManager);t.CoroutineManager=i}(es||(es={})),function(t){var e=function(){function e(){this.x=0,this.y=0,this.touchPoint=-1,this.touchDown=!1}return Object.defineProperty(e.prototype,"position",{get:function(){return new t.Vector2(this.x,this.y)},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.x=0,this.y=0,this.touchDown=!1,this.touchPoint=-1},e}();t.TouchState=e;var i=function(){function i(){}return Object.defineProperty(i,"gameTouchs",{get:function(){return this._gameTouchs},enumerable:!0,configurable:!0}),Object.defineProperty(i,"resolutionScale",{get:function(){return this._resolutionScale},enumerable:!0,configurable:!0}),Object.defineProperty(i,"totalTouchCount",{get:function(){return this._totalTouchCount},enumerable:!0,configurable:!0}),Object.defineProperty(i,"touchPosition",{get:function(){return this._gameTouchs[0]?this._gameTouchs[0].position:t.Vector2.zero},enumerable:!0,configurable:!0}),Object.defineProperty(i,"maxSupportedTouch",{get:function(){return t.Core._instance.stage.maxTouches},set:function(e){t.Core._instance.stage.maxTouches=e,this.initTouchCache()},enumerable:!0,configurable:!0}),Object.defineProperty(i,"touchPositionDelta",{get:function(){var e=t.Vector2.subtract(this.touchPosition,this._previousTouchState.position);return e.length()>0&&this.setpreviousTouchState(this._gameTouchs[0]),e},enumerable:!0,configurable:!0}),i.initialize=function(){this._init||(this._init=!0,t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_BEGIN,this.touchBegin,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_MOVE,this.touchMove,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_END,this.touchEnd,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_CANCEL,this.touchEnd,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_RELEASE_OUTSIDE,this.touchEnd,this),this.initTouchCache())},i.update=function(){KeyboardUtils.update();for(var t=0;t0,this._willRepeat||(this.isRepeating=!1)},i.prototype.update=function(){this._bufferCounter-=t.Time.unscaledDeltaTime,this.isRepeating=!1;for(var e=!1,i=0;i0||this.isRepeating)return!0;for(var t=0,e=this.nodes;ta||i[c].height>a)throw new Error("一个纹理的大小比图集的大小大");h.push(new t.Rectangle(0,0,i[c].width,i[c].height))}for(;h.length>0;){var u=new egret.RenderTexture,l=new t.RectanglePacker(a,a,1);for(c=0;c0){for(var p=new t.IntegerRectangle,d=[],f=[],g=[],y=[],m=0;m0;)this.freeRectangle(this._insertedRectangles.pop());for(;this._freeAreas.length>0;)this.freeRectangle(this._freeAreas.pop());for(this._width=t,this._height=e,this._packedWidth=0,this._packedHeight=0,this._freeAreas.push(this.allocateRectangle(0,0,this._width,this._height));this._insertedRectangles.length>0;)this.freeSize(this._insertList.pop());this._padding=i},e.prototype.insertRectangle=function(t,e,i){var n=this.allocateSize(t,e,i);this._insertList.push(n)},e.prototype.packRectangles=function(t){for(void 0===t&&(t=!0),t&&this._insertList.sort(function(t,e){return t.width-e.width});this._insertList.length>0;){var e=this._insertList.pop(),i=e.width,n=e.height,r=this.getFreeAreaIndex(i,n);if(r>=0){var o=this._freeAreas[r],s=this.allocateRectangle(o.x,o.y,i,n);for(s.id=e.id,this.generateNewFreeAreas(s,this._freeAreas,this._newFreeAreas);this._newFreeAreas.length>0;)this._freeAreas.push(this._newFreeAreas.pop());this._insertedRectangles.push(s),s.right>this._packedWidth&&(this._packedWidth=s.right),s.bottom>this._packedHeight&&(this._packedHeight=s.bottom)}this.freeSize(e)}return this.rectangleCount},e.prototype.getRectangle=function(t,e){var i=this._insertedRectangles[t];return e.x=i.x,e.y=i.y,e.width=i.width,e.height=i.height,e},e.prototype.getRectangleId=function(t){return this._insertedRectangles[t].id},e.prototype.generateNewFreeAreas=function(t,e,i){var n=t.x,r=t.y,o=t.right+1+this._padding,s=t.bottom+1+this._padding,a=null;0==this._padding&&(a=t);for(var h=e.length-1;h>=0;h--){var c=e[h];if(!(n>=c.right||o<=c.x||r>=c.bottom||s<=c.y)){null==a&&(a=this.allocateRectangle(t.x,t.y,t.width+this._padding,t.height+this._padding)),this.generateDividedAreas(a,c,i);var u=e.pop();h=0;e--)for(var i=t[e],n=t.length-1;n>=0;n--)if(e!=n){var r=t[n];if(i.x>=r.x&&i.y>=r.y&&i.right<=r.right&&i.bottom<=r.bottom){this.freeRectangle(i);var o=t.pop();e0&&(i.push(this.allocateRectangle(t.right,e.y,r,e.height)),n++);var o=t.x-e.x;o>0&&(i.push(this.allocateRectangle(e.x,e.y,o,e.height)),n++);var s=e.bottom-t.bottom;s>0&&(i.push(this.allocateRectangle(e.x,t.bottom,e.width,s)),n++);var a=t.y-e.y;a>0&&(i.push(this.allocateRectangle(e.x,e.y,e.width,a)),n++),0==n&&(t.width=0;s--){var a=this._freeAreas[s];if(a.x0){var r=this._sortableSizeStack.pop();return r.width=e,r.height=i,r.id=n,r}return new t.SortableSize(e,i,n)},e.prototype.freeSize=function(t){this._sortableSizeStack.push(t)},e.prototype.allocateRectangle=function(e,i,n,r){if(this._rectangleStack.length>0){var o=this._rectangleStack.pop();return o.x=e,o.y=i,o.width=n,o.height=r,o.right=e+n,o.bottom=i+r,o}return new t.IntegerRectangle(e,i,n,r)},e.prototype.freeRectangle=function(t){this._rectangleStack.push(t)},e}();t.RectanglePacker=e}(es||(es={})),function(t){var e=function(){return function(t,e,i){this.width=t,this.height=e,this.id=i}}();t.SortableSize=e}(es||(es={})),function(t){var e=function(){return function(t){this.assets=t}}();t.TextureAssets=e;var i=function(){return function(){}}();t.TextureAsset=i}(es||(es={})),function(t){var e=function(){return function(t,e){this.texture=t,this.id=e}}();t.TextureToPack=e}(es||(es={})),function(t){var e=function(){function e(){this._timeInSeconds=0,this._repeats=!1,this._isDone=!1,this._elapsedTime=0}return e.prototype.getContext=function(){return this.context},e.prototype.reset=function(){this._elapsedTime=0},e.prototype.stop=function(){this._isDone=!0},e.prototype.tick=function(){return!this._isDone&&this._elapsedTime>this._timeInSeconds&&(this._elapsedTime-=this._timeInSeconds,this._onTime(this),this._isDone||this._repeats||(this._isDone=!0)),this._elapsedTime+=t.Time.deltaTime,this._isDone},e.prototype.initialize=function(t,e,i,n){this._timeInSeconds=t,this._repeats=e,this.context=i,this._onTime=n},e.prototype.unload=function(){this.context=null,this._onTime=null},e}();t.Timer=e}(es||(es={})),function(t){var e=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t._timers=[],t}return __extends(i,e),i.prototype.update=function(){for(var t=this._timers.length-1;t>=0;t--)this._timers[t].tick()&&(this._timers[t].unload(),this._timers.removeAt(t))},i.prototype.schedule=function(e,i,n,r){var o=new t.Timer;return o.initialize(e,i,n,r),this._timers.push(o),o},i}(t.GlobalManager);t.TimerManager=e}(es||(es={})); \ No newline at end of file +window.es={},window.__extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();var transform,__awaiter=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(r,o){function s(t){try{h(n.next(t))}catch(t){o(t)}}function a(t){try{h(n.throw(t))}catch(t){o(t)}}function h(t){t.done?r(t.value):new i(function(e){e(t.value)}).then(s,a)}h((n=n.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]-1}(this,t)},Array.prototype.firstOrDefault=function(t){return function(t,e){var i=t.findIndex(e);return-1==i?null:t[i]}(this,t)},Array.prototype.find=function(t){return function(t,e){return t.firstOrDefault(e)}(this,t)},Array.prototype.where=function(t){return function(t,e){if("function"==typeof t.reduce)return t.reduce(function(i,n,r){return e.call(arguments[2],n,r,t)&&i.push(n),i},[]);for(var i=[],n=0,r=t.length;n=0&&t.splice(i,1)}while(i>=0)}(this,t)},Array.prototype.remove=function(t){return function(t,e){var i=t.findIndex(function(t){return t===e});return i>=0&&(t.splice(i,1),!0)}(this,t)},Array.prototype.removeAt=function(t){return function(t,e){t.splice(e,1)}(this,t)},Array.prototype.removeRange=function(t,e){return function(t,e,i){t.splice(e,i)}(this,t,e)},Array.prototype.select=function(t){return function(t,e){if("function"==typeof t.reduce)return t.reduce(function(i,n,r){return i.push(e.call(arguments[2],n,r,t)),i},[]);for(var i=[],n=0,r=t.length;no?1:-1}),t}(this,t,e)},Array.prototype.orderByDescending=function(t,e){return function(t,e,i){return t.sort(function(t,n){var r=e(t),o=e(n);return i?-i(r,o):r0;){if("break"===u())break}return s?this.recontructPath(a,n,r):null},e.recontructPath=function(t,e,i){var n=[],r=i;for(n.push(i);r!=e;)r=this.getKey(t,r),n.push(r);return n.reverse(),n},e.hasKey=function(e,i){for(var n,r=e.keys();!(n=r.next()).done;){if(n.value instanceof t.Vector2&&i instanceof t.Vector2&&n.value.equals(i))return!0;if(n.value==i)return!0}return!1},e.getKey=function(e,i){for(var n,r,o=e.keys(),s=e.values();n=o.next(),r=s.next(),!n.done;){if(n.value instanceof t.Vector2&&i instanceof t.Vector2&&n.value.equals(i))return r.value;if(n.value==i)return r.value}return null},e}();t.AStarPathfinder=e;var i=function(t){function e(e){var i=t.call(this)||this;return i.data=e,i}return __extends(e,t),e}(t.PriorityQueueNode)}(es||(es={})),function(t){var e=function(){function e(e,i){this.dirs=[new t.Vector2(1,0),new t.Vector2(0,-1),new t.Vector2(-1,0),new t.Vector2(0,1)],this.walls=[],this.weightedNodes=[],this.defaultWeight=1,this.weightedNodeWeight=5,this._neighbors=new Array(4),this._width=e,this._height=i}return e.prototype.isNodeInBounds=function(t){return 0<=t.x&&t.x=this._nodes.length?(console.error("node.QueueIndex has been corrupted. Did you change it manually? Or add this node to another queue?"),!1):this._nodes[t.queueIndex]==t:(console.error("node cannot be null"),!1)},t.prototype.enqueue=function(t,e){t.priority=e,this._numNodes++,this._nodes[this._numNodes]=t,t.queueIndex=this._numNodes,t.insertionIndex=this._numNodesEverEnqueued++,this.cascadeUp(this._nodes[this._numNodes])},t.prototype.dequeue=function(){var t=this._nodes[1];return this.remove(t),t},t.prototype.remove=function(t){if(t.queueIndex==this._numNodes)return this._nodes[this._numNodes]=null,void this._numNodes--;var e=this._nodes[this._numNodes];this.swap(t,e),delete this._nodes[this._numNodes],this._numNodes--,this.onNodeUpdated(e)},t.prototype.isValidQueue=function(){for(var t=1;t0&&this.hasHigherPriority(t,i)?this.cascadeUp(t):this.cascadeDown(t)},t.prototype.cascadeDown=function(t){for(var e,i=t.queueIndex;;){e=t;var n=2*i;if(n>this._numNodes){t.queueIndex=i,this._nodes[i]=t;break}var r=this._nodes[n];this.hasHigherPriority(r,e)&&(e=r);var o=n+1;if(o<=this._numNodes){var s=this._nodes[o];this.hasHigherPriority(s,e)&&(e=s)}if(e==t){t.queueIndex=i,this._nodes[i]=t;break}this._nodes[i]=e;var a=e.queueIndex;e.queueIndex=i,i=a}},t.prototype.cascadeUp=function(t){for(var e=Math.floor(t.queueIndex/2);e>=1;){var i=this._nodes[e];if(this.hasHigherPriority(i,t))break;this.swap(t,i),e=Math.floor(t.queueIndex/2)}},t.prototype.swap=function(t,e){this._nodes[t.queueIndex]=e,this._nodes[e.queueIndex]=t;var i=t.queueIndex;t.queueIndex=e.queueIndex,e.queueIndex=i},t.prototype.hasHigherPriority=function(t,e){return t.priority0;){if("break"===h())break}return o?t.AStarPathfinder.recontructPath(a,i,n):null},e.hasKey=function(t,e){for(var i,n=t.keys();!(i=n.next()).done;)if(JSON.stringify(i.value)==JSON.stringify(e))return!0;return!1},e}();t.BreadthFirstPathfinder=e}(es||(es={})),function(t){var e=function(){function t(){this.edges=new Map}return t.prototype.addEdgesForNode=function(t,e){return this.edges.set(t,e),this},t.prototype.getNeighbors=function(t){return this.edges.get(t)},t}();t.UnweightedGraph=e}(es||(es={})),function(t){var e=function(){function e(t,e){this.x=0,this.y=0,this.x=t||0,this.y=null!=e?e:this.x}return Object.defineProperty(e,"zero",{get:function(){return new e(0,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"one",{get:function(){return new e(1,1)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"unitX",{get:function(){return new e(1,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"unitY",{get:function(){return new e(0,1)},enumerable:!0,configurable:!0}),e.add=function(t,i){var n=new e(0,0);return n.x=t.x+i.x,n.y=t.y+i.y,n},e.divide=function(t,i){var n=new e(0,0);return n.x=t.x/i.x,n.y=t.y/i.y,n},e.multiply=function(t,i){var n=new e(0,0);return n.x=t.x*i.x,n.y=t.y*i.y,n},e.subtract=function(t,i){var n=new e(0,0);return n.x=t.x-i.x,n.y=t.y-i.y,n},e.normalize=function(t){var i=new e(t.x,t.y),n=1/Math.sqrt(i.x*i.x+i.y*i.y);return i.x*=n,i.y*=n,i},e.dot=function(t,e){return t.x*e.x+t.y*e.y},e.distanceSquared=function(t,e){var i=t.x-e.x,n=t.y-e.y;return i*i+n*n},e.clamp=function(i,n,r){return new e(t.MathHelper.clamp(i.x,n.x,r.x),t.MathHelper.clamp(i.y,n.y,r.y))},e.lerp=function(i,n,r){return new e(t.MathHelper.lerp(i.x,n.x,r),t.MathHelper.lerp(i.y,n.y,r))},e.transform=function(t,i){return new e(t.x*i.m11+t.y*i.m21+i.m31,t.x*i.m12+t.y*i.m22+i.m32)},e.distance=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)},e.angle=function(i,n){return i=e.normalize(i),n=e.normalize(n),Math.acos(t.MathHelper.clamp(e.dot(i,n),-1,1))*t.MathHelper.Rad2Deg},e.negate=function(t){return t.x=-t.x,t.y=-t.y,t},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.divide=function(t){return this.x/=t.x,this.y/=t.y,this},e.prototype.multiply=function(t){return this.x*=t.x,this.y*=t.y,this},e.prototype.subtract=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.normalize=function(){var t=1/Math.sqrt(this.x*this.x+this.y*this.y);this.x*=t,this.y*=t},e.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lengthSquared=function(){return this.x*this.x+this.y*this.y},e.prototype.round=function(){return new e(Math.round(this.x),Math.round(this.y))},e.prototype.equals=function(t){return t instanceof e&&(t.x==this.x&&t.y==this.y)},e}();t.Vector2=e}(es||(es={})),function(t){var e=function(){function e(t,i,n){void 0===n&&(n=!1),this.walls=[],this._neighbors=new Array(4),this._width=t,this._hegiht=i,this._dirs=n?e.COMPASS_DIRS:e.CARDINAL_DIRS}return e.prototype.isNodeInBounds=function(t){return 0<=t.x&&t.x0;){if("break"===u())break}return s?this.recontructPath(a,n,r):null},i.recontructPath=function(t,e,i){var n=[],r=i;for(n.push(i);r!=e;)r=this.getKey(t,r),n.push(r);return n.reverse(),n},i.hasKey=function(t,e){for(var i,n=t.keys();!(i=n.next()).done;)if(JSON.stringify(i.value)==JSON.stringify(e))return!0;return!1},i.getKey=function(t,e){for(var i,n,r=t.keys(),o=t.values();i=r.next(),n=o.next(),!i.done;)if(JSON.stringify(i.value)==JSON.stringify(e))return n.value;return null},i}();t.WeightedPathfinder=i}(es||(es={})),function(t){var e=function(){function e(){this._opened=new Array(e.MAX_NODES),this._closed=new Array(e.MAX_NODES)}return e.prototype.clear=function(){for(var e=0;e0},e.prototype.removeOpened=function(t){this._numOpened>0&&(this._opened[this._lastFoundOpened]=this._opened[this._numOpened-1]),this._numOpened--},e.prototype.removeClosed=function(t){this._numClosed>0&&(this._closed[this._lastFoundClosed]=this._closed[this._numClosed-1]),this._numClosed--},e.prototype.isOpen=function(t){return this._opened.indexOf(t)>-1},e.prototype.isClosed=function(t){return this._closed.indexOf(t)>-1},e.prototype.addToOpenList=function(t){this._opened[this._numOpened++]=t},e.prototype.addToClosedList=function(t){this._closed[this._numClosed++]=t},e.prototype.removeCheapestOpenNode=function(){var t=Number.MAX_VALUE;this._lastFoundOpened=-1;for(var e=0;e-1?e:(this._actions.push(t),this._actions.length-1)},e.MAX_CONDITIONS=64,e}();t.ActionPlanner=e}(es||(es={})),function(t){var e=function(){function e(){this._planner=new t.ActionPlanner}return e.prototype.plan=function(e){void 0===e&&(e=!1);var i=null;if(e&&(i=[]),this.actions=this._planner.plan(this.getWorldState(),this.getGoalState(),i),null!=i&&i.length>0){console.log("---- ActionPlanner plan ----"),console.log("plan cost = "+i[i.length-1].costSoFar),console.log(" start\t"+this.getWorldState().describe(this._planner));for(var n=0;n0},e}();t.Agent=e}(es||(es={})),function(t){var e=function(){function e(t,e,i){this.planner=t,this.values=e,this.dontCare=i}return e.create=function(t){return new e(t,0,-1)},e.prototype.set=function(t,e){return"string"==typeof t?this.set(this.planner.findConditionNameIndex(t),e):(this.values=e?this.values|1<0&&(i+=", "),i+=o?r.toUpperCase():r}return i},e}();t.WorldState=e}(es||(es={})),function(t){var e=function(e){function i(){var n=e.call(this)||this;return n._globalManagers=[],n._coroutineManager=new t.CoroutineManager,n._timerManager=new t.TimerManager,n._frameCounterElapsedTime=0,n._frameCounter=0,i._instance=n,i.emitter=new t.Emitter,i.content=new t.ContentManager,n.addEventListener(egret.Event.ADDED_TO_STAGE,n.onAddToStage,n),i.registerGlobalManager(n._coroutineManager),i.registerGlobalManager(n._timerManager),n}return __extends(i,e),Object.defineProperty(i,"Instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),Object.defineProperty(i,"scene",{get:function(){return this._instance?this._instance._scene:null},set:function(t){t?null==this._instance._scene?(this._instance.addChild(t),this._instance._scene=t,this._instance._scene.begin(),i.Instance.onSceneChanged()):this._instance._nextScene=t:console.error("场景不能为空")},enumerable:!0,configurable:!0}),i.startSceneTransition=function(t){if(!this._instance._sceneTransition)return this._instance._sceneTransition=t,t;console.warn("在前一个场景完成之前,不能开始一个新的场景转换。")},i.registerGlobalManager=function(t){this._instance._globalManagers.push(t),t.enabled=!0},i.unregisterGlobalManager=function(t){this._instance._globalManagers.remove(t),t.enabled=!1},i.getGlobalManager=function(t){for(var e=0;e=1&&(this._frameCounter=0,this._frameCounterElapsedTime-=1)},i.prototype.endDebugDraw=function(){t.TimeRuler.Instance.endMark("draw"),t.TimeRuler.Instance.render()},i.prototype.onSceneChanged=function(){i.emitter.emit(t.CoreEvents.SceneChanged),t.Time.sceneChanged()},i.prototype.onGraphicsDeviceReset=function(){i.emitter.emit(t.CoreEvents.GraphicsDeviceReset)},i.prototype.initialize=function(){t.Graphics.Instance=new t.Graphics},i.prototype.update=function(){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(i){switch(i.label){case 0:if(t.Time.update(egret.getTimer()),t.Input.update(),!this._scene)return[3,2];for(e=this._globalManagers.length-1;e>=0;e--)this._globalManagers[e].enabled&&this._globalManagers[e].update();return this._sceneTransition&&(!this._sceneTransition||this._sceneTransition.loadsNewScene&&!this._sceneTransition.isNewSceneLoaded)||this._scene.update(),this._nextScene?(this._scene.parent&&this._scene.parent.removeChild(this._scene),this._scene.end(),this._scene=this._nextScene,this._nextScene=null,this.onSceneChanged(),[4,this._scene.begin()]):[3,2];case 1:i.sent(),this.addChild(this._scene),i.label=2;case 2:return[4,this.draw()];case 3:return i.sent(),[2]}})})},i.prototype.onAddToStage=function(){i.graphicsDevice=new t.GraphicsDevice,this.addEventListener(egret.Event.RESIZE,this.onGraphicsDeviceReset,this),this.addEventListener(egret.StageOrientationEvent.ORIENTATION_CHANGE,this.onOrientationChanged,this),this.addEventListener(egret.Event.ENTER_FRAME,this.update,this),t.Input.initialize(),KeyboardUtils.init(),this.initialize()},i.debugRenderEndabled=!1,i}(egret.DisplayObjectContainer);t.Core=e}(es||(es={})),function(t){var e=function(){function t(){}return t.renderableBounds=16776960,t.renderableCenter=10040012,t.colliderBounds=5592405,t.colliderEdge=9109504,t.colliderPosition=16776960,t.colliderCenter=16711680,t}();t.Colors=e;var i=function(){function e(){}return Object.defineProperty(e,"lineSizeMultiplier",{get:function(){return Math.max(Math.ceil(t.Core.scene.x/t.Core.scene.width),1)},enumerable:!0,configurable:!0}),e}();t.Size=i;var n=function(){function e(){}return e.drawHollowRect=function(e,i,n){void 0===n&&(n=0),this._debugDrawItems.push(new t.DebugDrawItem(e,i,n))},e.render=function(){if(this._debugDrawItems.length>0){var e=new egret.Shape;t.Core.scene&&t.Core.scene.addChild(e);for(var i=this._debugDrawItems.length-1;i>=0;i--){this._debugDrawItems[i].draw(e)&&this._debugDrawItems.removeAt(i)}}},e._debugDrawItems=[],e}();t.Debug=n}(es||(es={})),function(t){var e=function(){function t(){}return t.verletParticle=14431326,t.verletConstraintEdge=4406838,t}();t.DebugDefaults=e}(es||(es={})),function(t){var e;!function(t){t[t.line=0]="line",t[t.hollowRectangle=1]="hollowRectangle",t[t.pixel=2]="pixel",t[t.text=3]="text"}(e=t.DebugDrawType||(t.DebugDrawType={}));var i=function(){function i(t,i,n){this.rectangle=t,this.color=i,this.duration=n,this.drawType=e.hollowRectangle}return i.prototype.draw=function(i){switch(this.drawType){case e.line:case e.hollowRectangle:case e.pixel:case e.text:}return this.duration-=t.Time.deltaTime,this.duration<0},i}();t.DebugDrawItem=i}(es||(es={})),function(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.updateInterval=1,e.debugDisplayObject=new egret.DisplayObjectContainer,e._enabled=!0,e._updateOrder=0,e}return __extends(e,t),Object.defineProperty(e.prototype,"transform",{get:function(){return this.entity.transform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.entity?this.entity.enabled&&this._enabled:this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOrder",{get:function(){return this._updateOrder},set:function(t){this.setUpdateOrder(t)},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){},e.prototype.onAddedToEntity=function(){},e.prototype.onRemovedFromEntity=function(){},e.prototype.onEntityTransformChanged=function(t){},e.prototype.debugRender=function(t){},e.prototype.onEnabled=function(){},e.prototype.onDisabled=function(){},e.prototype.update=function(){},e.prototype.setEnabled=function(t){return this._enabled!=t&&(this._enabled=t,this._enabled?this.onEnabled():this.onDisabled()),this},e.prototype.setUpdateOrder=function(t){return this._updateOrder!=t&&(this._updateOrder=t),this},e}(egret.HashObject);t.Component=e}(es||(es={})),function(t){!function(t){t[t.GraphicsDeviceReset=0]="GraphicsDeviceReset",t[t.SceneChanged=1]="SceneChanged",t[t.OrientationChanged=2]="OrientationChanged"}(t.CoreEvents||(t.CoreEvents={}))}(es||(es={})),function(t){var e=function(){function e(i){this.updateInterval=1,this._tag=0,this._enabled=!0,this._updateOrder=0,this.components=new t.ComponentList(this),this.transform=new t.Transform(this),this.name=i,this.id=e._idGenerator++,this.componentBits=new t.BitSet}return Object.defineProperty(e.prototype,"isDestroyed",{get:function(){return this._isDestroyed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tag",{get:function(){return this._tag},set:function(t){this.setTag(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOrder",{get:function(){return this._updateOrder},set:function(t){this.setUpdateOrder(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this.transform.parent},set:function(t){this.transform.setParent(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childCount",{get:function(){return this.transform.childCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.transform.position},set:function(t){this.transform.setPosition(t.x,t.y)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localPosition",{get:function(){return this.transform.localPosition},set:function(t){this.transform.setLocalPosition(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(t){this.transform.setRotation(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDegrees",{get:function(){return this.transform.rotationDegrees},set:function(t){this.transform.setRotationDegrees(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localRotation",{get:function(){return this.transform.localRotation},set:function(t){this.transform.setLocalRotation(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localRotationDegrees",{get:function(){return this.transform.localRotationDegrees},set:function(t){this.transform.setLocalRotationDegrees(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this.transform.scale},set:function(t){this.transform.setScale(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localScale",{get:function(){return this.transform.localScale},set:function(t){this.transform.setLocalScale(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"worldInverseTransform",{get:function(){return this.transform.worldInverseTransform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localToWorldTransform",{get:function(){return this.transform.localToWorldTransform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"worldToLocalTransform",{get:function(){return this.transform.worldToLocalTransform},enumerable:!0,configurable:!0}),e.prototype.onTransformChanged=function(t){this.components.onEntityTransformChanged(t)},e.prototype.setTag=function(t){return this._tag!=t&&(this.scene&&this.scene.entities.removeFromTagList(this),this._tag=t,this.scene&&this.scene.entities.addToTagList(this)),this},e.prototype.setEnabled=function(t){return this._enabled!=t&&(this._enabled=t,this._enabled?this.components.onEntityEnabled():this.components.onEntityDisabled()),this},e.prototype.setUpdateOrder=function(t){if(this._updateOrder!=t)return this._updateOrder=t,this.scene&&(this.scene.entities.markEntityListUnsorted(),this.scene.entities.markTagUnsorted(this.tag)),this},e.prototype.destroy=function(){this._isDestroyed=!0,this.scene.entities.remove(this),this.transform.parent=null;for(var t=this.transform.childCount-1;t>=0;t--){this.transform.getChild(t).entity.destroy()}},e.prototype.detachFromScene=function(){this.scene.entities.remove(this),this.components.deregisterAllComponents();for(var t=0;t=0;t--)this._sceneComponents[t].enabled&&this._sceneComponents[t].update();this.entityProcessors&&this.entityProcessors.update(),this.entities.update(),this.entityProcessors&&this.entityProcessors.lateUpdate(),this.renderableComponents.updateList()},i.prototype.render=function(){if(0!=this._renderers.length)for(var t=0;te.x?-1:1,n=t.Vector2.normalize(t.Vector2.subtract(this.position,e));this.rotation=i*Math.acos(t.Vector2.dot(n,t.Vector2.unitY))},n.prototype.setLocalRotation=function(t){return this._localRotation=t,this._localDirty=this._positionDirty=this._localPositionDirty=this._localRotationDirty=this._localScaleDirty=!0,this.setDirty(e.rotationDirty),this},n.prototype.setLocalRotationDegrees=function(e){return this.setLocalRotation(t.MathHelper.toRadians(e))},n.prototype.setScale=function(e){return this._scale=e,this.parent?this.localScale=t.Vector2.divide(e,this.parent._scale):this.localScale=e,this},n.prototype.setLocalScale=function(t){return this._localScale=t,this._localDirty=this._positionDirty=this._localScaleDirty=!0,this.setDirty(e.scaleDirty),this},n.prototype.roundPosition=function(){this.position=this._position.round()},n.prototype.updateTransform=function(){this.hierarchyDirty!=e.clean&&(this.parent&&this.parent.updateTransform(),this._localDirty&&(this._localPositionDirty&&(this._translationMatrix=t.Matrix2D.create().translate(this._localPosition.x,this._localPosition.y),this._localPositionDirty=!1),this._localRotationDirty&&(this._rotationMatrix=t.Matrix2D.create().rotate(this._localRotation),this._localRotationDirty=!1),this._localScaleDirty&&(this._scaleMatrix=t.Matrix2D.create().scale(this._localScale.x,this._localScale.y),this._localScaleDirty=!1),this._localTransform=this._scaleMatrix.multiply(this._rotationMatrix),this._localTransform=this._localTransform.multiply(this._translationMatrix),this.parent||(this._worldTransform=this._localTransform,this._rotation=this._localRotation,this._scale=this._localScale,this._worldInverseDirty=!0),this._localDirty=!1),this.parent&&(this._worldTransform=this._localTransform.multiply(this.parent._worldTransform),this._rotation=this._localRotation+this.parent._rotation,this._scale=t.Vector2.multiply(this.parent._scale,this._localScale),this._worldInverseDirty=!0),this._worldToLocalDirty=!0,this._positionDirty=!0,this.hierarchyDirty=e.clean)},n.prototype.setDirty=function(e){if(0==(this.hierarchyDirty&e)){switch(this.hierarchyDirty|=e,e){case t.DirtyType.positionDirty:this.entity.onTransformChanged(transform.Component.position);break;case t.DirtyType.rotationDirty:this.entity.onTransformChanged(transform.Component.rotation);break;case t.DirtyType.scaleDirty:this.entity.onTransformChanged(transform.Component.scale)}this._children||(this._children=[]);for(var i=0;it&&(this._zoom=t),this._maximumZoom=t,this;console.error("maximumZoom must be greater than zero")},i.prototype.forceMatrixUpdate=function(){this._areMatrixedDirty=!0},i.prototype.onEntityTransformChanged=function(t){this._areMatrixedDirty=!0},i.prototype.zoomIn=function(t){this.zoom+=t},i.prototype.zoomOut=function(t){this.zoom-=t},i.prototype.worldToScreenPoint=function(e){return this.updateMatrixes(),t.Vector2Ext.transformR(e,this._transformMatrix,e),e},i.prototype.screenToWorldPoint=function(e){return this.updateMatrixes(),t.Vector2Ext.transformR(e,this._inverseTransformMatrix,e),e},i.prototype.onSceneRenderTargetSizeChanged=function(e,i){this._isProjectionMatrixDirty=!0;var n=this._origin;this.origin=new t.Vector2(e/2,i/2),this.entity.transform.position.add(t.Vector2.subtract(this._origin,n))},i.prototype.mouseToWorldPoint=function(){return this.screenToWorldPoint(t.Input.touchPosition)},i.prototype.updateMatrixes=function(){var e;this._areMatrixedDirty&&(this._transformMatrix=t.Matrix2D.create().translate(-this.entity.transform.position.x,-this.entity.transform.position.y),1!=this._zoom&&(e=t.Matrix2D.create().scale(this._zoom,this._zoom),this._transformMatrix=this._transformMatrix.multiply(e)),0!=this.entity.transform.rotation&&(e=t.Matrix2D.create().rotate(this.entity.transform.rotation),this._transformMatrix=this._transformMatrix.multiply(e)),e=t.Matrix2D.create().translate(Math.floor(this._origin.x),Math.floor(this._origin.y)),this._transformMatrix=this._transformMatrix.multiply(e),this._inverseTransformMatrix=this._transformMatrix.invert(),this._areBoundsDirty=!0,this._areMatrixedDirty=!1)},i}(t.Component);t.Camera=e}(es||(es={})),function(t){var e=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._shakeDirection=t.Vector2.zero,i._shakeOffset=t.Vector2.zero,i._shakeIntensity=0,i._shakeDegredation=.95,i}return __extends(i,e),i.prototype.shake=function(e,i,n){void 0===e&&(e=15),void 0===i&&(i=.9),void 0===n&&(n=t.Vector2.zero),this.enabled=!0,this._shakeIntensity=1)&&(i=.95),this._shakeDegredation=i)},i.prototype.update=function(){Math.abs(this._shakeIntensity)>0&&(this._shakeOffset=this._shakeDirection,0!=this._shakeOffset.x||0!=this._shakeOffset.y?this._shakeOffset.normalize():(this._shakeOffset.x=this._shakeOffset.x+Math.random()-.5,this._shakeOffset.y=this._shakeOffset.y+Math.random()-.5),this._shakeOffset.multiply(new t.Vector2(this._shakeIntensity)),this._shakeIntensity*=-this._shakeDegredation,Math.abs(this._shakeIntensity)<=.01&&(this._shakeIntensity=0,this.enabled=!1)),this.entity.scene.camera.position.add(this._shakeOffset)},i}(t.Component);t.CameraShake=e}(es||(es={})),function(t){var e=function(){function t(t){this._type=t,this._cache=[]}return t.prototype.obtain=function(){try{return this._cache.length>0?this._cache.shift():new this._type}catch(t){throw new Error(this._type+t)}},t.prototype.free=function(t){t.reset(),this._cache.push(t)},t}();t.ComponentPool=e}(es||(es={})),function(t){var e;!function(t){t[t.lockOn=0]="lockOn",t[t.cameraWindow=1]="cameraWindow"}(e=t.CameraStyle||(t.CameraStyle={}));var i=function(i){function n(n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=e.lockOn);var s=i.call(this)||this;return s.followLerp=.1,s.deadzone=new t.Rectangle,s.focusOffset=t.Vector2.zero,s.mapLockEnabled=!1,s.mapSize=new t.Rectangle,s._desiredPositionDelta=new t.Vector2,s._worldSpaceDeadZone=new t.Rectangle,s.rectShape=new egret.Shape,s._targetEntity=n,s._cameraStyle=o,s.camera=r,s}return __extends(n,i),n.prototype.onAddedToEntity=function(){this.camera||(this.camera=this.entity.scene.camera),this.follow(this._targetEntity,this._cameraStyle),t.Core.emitter.addObserver(t.CoreEvents.GraphicsDeviceReset,this.onGraphicsDeviceReset,this)},n.prototype.onGraphicsDeviceReset=function(){t.Core.schedule(0,!1,this,function(t){var e=t.context;e.follow(e._targetEntity,e._cameraStyle)})},n.prototype.update=function(){var e=t.Vector2.multiply(this.camera.bounds.size,new t.Vector2(.5));this._worldSpaceDeadZone.x=this.camera.position.x-e.x*t.Core.scene.scaleX+this.deadzone.x+this.focusOffset.x,this._worldSpaceDeadZone.y=this.camera.position.y-e.y*t.Core.scene.scaleY+this.deadzone.y+this.focusOffset.y,this._worldSpaceDeadZone.width=this.deadzone.width,this._worldSpaceDeadZone.height=this.deadzone.height,this._targetEntity&&this.updateFollow(),this.camera.position=t.Vector2.lerp(this.camera.position,t.Vector2.add(this.camera.position,this._desiredPositionDelta),this.followLerp),this.entity.transform.roundPosition(),this.mapLockEnabled&&(this.camera.position=this.clampToMapSize(this.camera.position),this.entity.transform.roundPosition())},n.prototype.debugRender=function(t){this.rectShape||this.debugDisplayObject.addChild(this.rectShape),this.rectShape.graphics.clear(),this._cameraStyle==e.lockOn?(this.rectShape.graphics.beginFill(9109504,0),this.rectShape.graphics.lineStyle(1,9109504),this.rectShape.graphics.drawRect(this._worldSpaceDeadZone.x-5-t.bounds.x,this._worldSpaceDeadZone.y-5-t.bounds.y,this._worldSpaceDeadZone.width,this._worldSpaceDeadZone.height),this.rectShape.graphics.endFill()):(this.rectShape.graphics.beginFill(9109504,0),this.rectShape.graphics.lineStyle(1,9109504),this.rectShape.graphics.drawRect(this._worldSpaceDeadZone.x-t.bounds.x,this._worldSpaceDeadZone.y-t.bounds.y,this._worldSpaceDeadZone.width,this._worldSpaceDeadZone.height),this.rectShape.graphics.endFill())},n.prototype.clampToMapSize=function(e){var i=t.Vector2.multiply(this.camera.bounds.size,new t.Vector2(.5)).add(new t.Vector2(this.mapSize.x,this.mapSize.y)),n=new t.Vector2(this.mapSize.width-i.x,this.mapSize.height-i.y);return t.Vector2.clamp(e,i,n)},n.prototype.follow=function(i,n){void 0===n&&(n=e.cameraWindow),this._targetEntity=i,this._cameraStyle=n;var r=this.camera.bounds;switch(this._cameraStyle){case e.cameraWindow:var o=r.width/6,s=r.height/3;this.deadzone=new t.Rectangle((r.width-o)/2,(r.height-s)/2,o,s);break;case e.lockOn:this.deadzone=new t.Rectangle(r.width/2,r.height/2,10,10)}},n.prototype.updateFollow=function(){if(this._desiredPositionDelta.x=this._desiredPositionDelta.y=0,this._cameraStyle==e.lockOn){var i=this._targetEntity.transform.position.x,n=this._targetEntity.transform.position.y;this._worldSpaceDeadZone.x>i?this._desiredPositionDelta.x=i-this._worldSpaceDeadZone.x:this._worldSpaceDeadZone.xn&&(this._desiredPositionDelta.y=n-this._worldSpaceDeadZone.y)}else{if(!this._targetCollider&&(this._targetCollider=this._targetEntity.getComponent(t.Collider),!this._targetCollider))return;var r=this._targetEntity.getComponent(t.Collider).bounds;this._worldSpaceDeadZone.containsRect(r)||(this._worldSpaceDeadZone.left>r.left?this._desiredPositionDelta.x=r.left-this._worldSpaceDeadZone.left:this._worldSpaceDeadZone.rightr.top&&(this._desiredPositionDelta.y=r.top-this._worldSpaceDeadZone.top))}},n.prototype.setCenteredDeadzone=function(e,i){if(this.camera){var n=this.camera.bounds;this.deadzone=new t.Rectangle((n.width-e)/2,(n.height-i)/2,e,i)}else console.error("相机是null。我们不能得到它的边界。请等到该组件添加到实体之后")},n}(t.Component);t.FollowCamera=i}(es||(es={})),function(t){var e=function(){function t(){}return t.prototype.compare=function(t,e){return t.updateOrder-e.updateOrder},t}();t.IUpdatableComparer=e}(es||(es={})),function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(t.Component);t.PooledComponent=e}(es||(es={})),function(t){var e=function(){function e(){this.updateOrder=0,this._enabled=!0}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),e.prototype.onEnabled=function(){},e.prototype.onDisabled=function(){},e.prototype.onRemovedFromScene=function(){},e.prototype.update=function(){},e.prototype.setEnabled=function(t){return this._enabled!=t&&(this._enabled=t,this._enabled),this},e.prototype.setUpdateOrder=function(e){return this.updateOrder!=e&&(this.updateOrder=e,t.Core.scene._sceneComponents.sort(this.compareTo)),this},e.prototype.compareTo=function(t){return this.updateOrder-t.updateOrder},e}();t.SceneComponent=e}(es||(es={})),function(t){var e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),i.prototype.onAddedToEntity=function(){this._triggerHelper=new t.ColliderTriggerHelper(this.entity)},i.prototype.calculateMovement=function(e,i){if(!this.entity.getComponent(t.Collider)||!this._triggerHelper)return!1;for(var n=this.entity.getComponents(t.Collider),r=0;r=2){this.polygonShape.graphics.beginFill(t.Colors.colliderEdge,0),this.polygonShape.graphics.lineStyle(t.Size.lineSizeMultiplier,t.Colors.colliderEdge);for(var n=0;no||this._loopMode==e.pingPongOnce&&s>2*o)return this.animationState=i.completed,this._elapsedTime=0,this.currentFrame=0,void(this.displayObject.texture=n.sprites[this.currentFrame].texture2D);var a=Math.floor(s/r),h=n.sprites.length;if(h>2&&(this._loopMode==e.pingPong||this._loopMode==e.pingPongOnce)){var c=h-1;this.currentFrame=c-Math.abs(c-a%(2*c))}else this.currentFrame=a%h;this.displayObject.texture=n.sprites[this.currentFrame].texture2D}},r.prototype.addAnimation=function(t,e){return!this.sprite&&e.sprites.length>0&&this.setSprite(e.sprites[0]),this._animations[t]=e,this},r.prototype.play=function(t,n){void 0===n&&(n=null),this.currentAnimation=this._animations[t],this.currentAnimationName=t,this.currentFrame=0,this.animationState=i.running,this.displayObject.texture=this.currentAnimation.sprites[0].texture2D,this._elapsedTime=0,this._loopMode=n||e.loop},r.prototype.isAnimationActive=function(t){return this.currentAnimation&&this.currentAnimationName==t},r.prototype.pause=function(){this.animationState=i.paused},r.prototype.unPause=function(){this.animationState=i.running},r.prototype.stop=function(){this.currentAnimation=null,this.currentAnimationName=null,this.currentFrame=0,this.animationState=i.none},r}(t.SpriteRenderer);t.SpriteAnimator=n}(es||(es={})),function(t){var e=egret.Bitmap,i=function(i){function n(e){void 0===e&&(e=null);var n=i.call(this)||this;n.displayObject=new egret.DisplayObjectContainer,n.displayObjectCache=new Map;for(var r=0,o=e;r>6;0!=(e&t.LONG_MASK)&&i++,this._bits=new Array(i)}return t.prototype.and=function(t){for(var e,i=Math.min(this._bits.length,t._bits.length),n=0;n=0;)this._bits[e]&=~t._bits[e]},t.prototype.cardinality=function(){for(var t=0,e=this._bits.length-1;e>=0;e--){var i=this._bits[e];if(0!=i)if(-1!=i){var n=((i=((i=(i>>1&0x5555555555555400)+(0x5555555555555400&i))>>2&0x3333333333333400)+(0x3333333333333400&i))>>32)+i;t+=((n=((n=(n>>4&252645135)+(252645135&n))>>8&16711935)+(16711935&n))>>16&65535)+(65535&n)}else t+=64}return t},t.prototype.clear=function(t){if(null!=t){var e=t>>6;this.ensure(e),this._bits[e]&=~(1<>6;return!(e>=this._bits.length)&&0!=(this._bits[e]&1<=0;)if(0!=(this._bits[e]&t._bits[e]))return!0;return!1},t.prototype.isEmpty=function(){for(var t=this._bits.length-1;t>=0;t--)if(this._bits[t])return!1;return!0},t.prototype.nextSetBit=function(t){for(var e=t>>6,i=1<>6;this.ensure(i),this._bits[i]|=1<=this._bits.length){var e=new Number[t+1];e=this._bits.copyWithin(0,0,this._bits.length),this._bits=e}},t.LONG_MASK=63,t}();t.BitSet=e}(es||(es={})),function(t){var e=function(){function e(e){this._components=new t.FastList,this._componentsToAdd=[],this._componentsToRemove=[],this._tempBufferList=[],this._entity=e}return Object.defineProperty(e.prototype,"count",{get:function(){return this._components.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._components.buffer},enumerable:!0,configurable:!0}),e.prototype.markEntityListUnsorted=function(){this._isComponentListUnsorted=!0},e.prototype.add=function(t){this._componentsToAdd.push(t)},e.prototype.remove=function(t){this._componentsToRemove.contains(t)&&console.warn("您正在尝试删除一个您已经删除的组件("+t+")"),this._componentsToAdd.contains(t)?this._componentsToAdd.remove(t):this._componentsToRemove.push(t)},e.prototype.removeAllComponents=function(){for(var t=0;t0){for(var i=0;i0){i=0;for(var n=this._componentsToAdd.length;i0){for(var e=0,i=this._entitiesToRemove;e0;){(n=this._addToSceneEntityList.shift()).onAddedToScene()}if(this._entitiesToAdded.length>0)if(this.frameAllocate&&this._entitiesToAdded.length>this.maxAllocate){for(var r=0;r0;)this.perEntityAddToScene();this._isEntityListUnsorted=!0}this._isEntityListUnsorted&&(this._entities.sort(function(t,e){return t.compareTo(e)}),this._isEntityListUnsorted=!1),0==this._addToSceneEntityList.length&&this._unsortedTags.size>0&&(this._unsortedTags.forEach(function(e){t._entityDict.get(e).sort(function(t,e){return t.compareTo(e)})}),this._unsortedTags.clear())},e.prototype.perEntityAddToScene=function(){var t=this._entitiesToAdded.shift();this._addToSceneEntityList.push(t),-1==this._entities.findIndex(function(e){return e.id==t.id})&&(this._entities.push(t),t.scene=this.scene,this.addToTagList(t),this.scene.entityProcessors.onEntityAdded(t))},e.prototype.findEntity=function(t){for(var e=0;ethis._buckets.length){this._buckets=new Array(t.HashHelpers.expandPrime(this._collisions)),this._collisions=0;for(var l=0;l=e?t%e:t},e}();t.FasterDictionary=e;var i=function(){return function(t,e,i){void 0===i&&(i=-1),this.key=t,this.hashcode=e,this.previous=i,this.next=-1}}();t.FastNode=i}(es||(es={})),function(t){var e=function(){function e(t){void 0===t&&(t=5),this.length=0,this.buffer=new Array(t)}return e.prototype.clear=function(){this.buffer.length=0,this.length=0},e.prototype.reset=function(){this.length=0},e.prototype.add=function(t){this.length==this.buffer.length&&(this.buffer.length=Math.max(this.buffer.length<<1,10)),this.buffer[this.length++]=t},e.prototype.remove=function(e){for(var i=t.EqualityComparer.default(),n=0;n=this.length)throw new Error("index超出范围!");this.length--,this.buffer.removeAt(t)},e.prototype.contains=function(e){for(var i=t.EqualityComparer.default(),n=0;n=this.buffer.length&&(this.buffer.length=Math.max(this.buffer.length<<1,this.length+t))},e.prototype.addRange=function(t){for(var e=0,i=t;e=t)return i}for(e=1|t;ethis.maxPrimeArrayLength&&this.maxPrimeArrayLength>t?this.maxPrimeArrayLength:this.getPrime(e)},t.getHashCode=function(t){var e,i=0;if(0==(e="object"==typeof t?JSON.stringify(t):t.toString()).length)return i;for(var n=0;n=0;e=this.allSet.nextSetBit(e+1))if(!t.componentBits.get(e))return!1;return!(!this.exclusionSet.isEmpty()&&this.exclusionSet.intersects(t.componentBits))&&!(!this.oneSet.isEmpty()&&!this.oneSet.intersects(t.componentBits))},e.prototype.all=function(){for(var e=this,i=[],n=0;n0){for(var t=0,i=this._unsortedRenderLayers.length;t=e)return t;var n=!1;"-"==t.substr(0,1)&&(n=!0,t=t.substr(1));for(var r=e-i,o=0;o1?this.reverse(t.substring(1))+t.substring(0,1):t},t.cutOff=function(t,e,i,n){void 0===n&&(n=!0),e=Math.floor(e),i=Math.floor(i);var r=t.length;e>r&&(e=r);var o,s=e,a=e+i;return n?o=t.substring(0,s)+t.substr(a,r):(a=(s=r-1-e-i)+i,o=t.substring(0,s+1)+t.substr(a+1,r)),o},t.strReplace=function(t,e){for(var i=0,n=e.length;i",">",'"',""","'","'","®","®","©","©","™","™"],t}();!function(t){var e=function(){function e(){}return e.convertImageToCanvas=function(e,i){this.sharedCanvas||(this.sharedCanvas=egret.sys.createCanvas(),this.sharedContext=this.sharedCanvas.getContext("2d"));var n=e.$getTextureWidth(),r=e.$getTextureHeight();i||((i=egret.$TempRectangle).x=0,i.y=0,i.width=n,i.height=r),i.x=Math.min(i.x,n-1),i.y=Math.min(i.y,r-1),i.width=Math.min(i.width,n-i.x),i.height=Math.min(i.height,r-i.y);var o=Math.floor(i.width),s=Math.floor(i.height),a=this.sharedCanvas;if(a.style.width=o+"px",a.style.height=s+"px",this.sharedCanvas.width=o,this.sharedCanvas.height=s,"webgl"==egret.Capabilities.renderMode){var h=void 0;e.$renderBuffer?h=e:(egret.sys.systemRenderer.renderClear&&egret.sys.systemRenderer.renderClear(),(h=new egret.RenderTexture).drawToTexture(new egret.Bitmap(e)));for(var c=h.$renderBuffer.getPixels(i.x,i.y,o,s),u=0,l=0,p=0;p=0?"png":"jpg"});return wx.getFileSystemManager().saveFile({tempFilePath:o,filePath:wx.env.USER_DATA_PATH+"/"+i,success:function(t){}}),o},e.getPixel32=function(t,e,i){return egret.$warn(1041,"getPixel32","getPixels"),t.getPixels(e,i)},e.getPixels=function(t,e,i,n,r){if(void 0===n&&(n=1),void 0===r&&(r=1),"webgl"==egret.Capabilities.renderMode){var o=void 0;return t.$renderBuffer?o=t:(o=new egret.RenderTexture).drawToTexture(new egret.Bitmap(t)),o.$renderBuffer.getPixels(e,i,n,r)}try{this.convertImageToCanvas(t);return this.sharedContext.getImageData(e,i,n,r).data}catch(t){egret.$error(1039)}},e}();t.TextureUtils=e}(es||(es={})),function(t){var e=function(){function t(){}return t.update=function(t){var e=(t-this._lastTime)/1e3;this.deltaTime=e*this.timeScale,this.unscaledDeltaTime=e,this._timeSinceSceneLoad+=e,this.frameCount++,this._lastTime=t},t.sceneChanged=function(){this._timeSinceSceneLoad=0},t.checkEvery=function(t){return Math.floor(this._timeSinceSceneLoad/t)>Math.floor((this._timeSinceSceneLoad-this.deltaTime)/t)},t.deltaTime=0,t.timeScale=1,t.frameCount=0,t._lastTime=0,t}();t.Time=e}(es||(es={}));var TimeUtils=function(){function t(){}return t.monthId=function(t){void 0===t&&(t=null);var e=(t=t||new Date).getFullYear(),i=t.getMonth()+1;return parseInt(e+(i<10?"0":"")+i)},t.dateId=function(t){void 0===t&&(t=null);var e=(t=t||new Date).getMonth()+1,i=e<10?"0":"",n=t.getDate(),r=n<10?"0":"";return parseInt(t.getFullYear()+i+e+r+n)},t.weekId=function(t,e){void 0===t&&(t=null),void 0===e&&(e=!0),t=t||new Date;var i=new Date;i.setTime(t.getTime()),i.setDate(1),i.setMonth(0);var n=i.getFullYear(),r=i.getDay();0==r&&(r=7);var o=!1;r<=4?(o=r>1,i.setDate(i.getDate()-(r-1))):i.setDate(i.getDate()+7-r+1);var s=this.diffDay(t,i,!1);if(s<0)return i.setDate(1),i.setMonth(0),i.setDate(i.getDate()-1),this.weekId(i,!1);var a=s/7,h=Math.floor(a)+1;if(53==h){i.setTime(t.getTime()),i.setDate(i.getDate()-1);var c=i.getDay();if(0==c&&(c=7),e&&(!o||c<4))return i.setFullYear(i.getFullYear()+1),i.setDate(1),i.setMonth(0),this.weekId(i,!1)}return parseInt(n+"00"+(h>9?"":"0")+h)},t.diffDay=function(t,e,i){void 0===i&&(i=!1);var n=(t.getTime()-e.getTime())/864e5;return i?Math.ceil(n):Math.floor(n)},t.getFirstDayOfWeek=function(t){var e=(t=t||new Date).getDay()||7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1-e,0,0,0,0)},t.getFirstOfDay=function(t){return(t=t||new Date).setHours(0,0,0,0),t},t.getNextFirstOfDay=function(t){return new Date(this.getFirstOfDay(t).getTime()+864e5)},t.formatDate=function(t){var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();return e+"-"+i+"-"+(n=n<10?"0"+n:n)},t.formatDateTime=function(t){var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var r=t.getHours(),o=t.getMinutes();o=o<10?"0"+o:o;var s=t.getSeconds();return e+"-"+i+"-"+n+" "+r+":"+o+":"+(s=s<10?"0"+s:s)},t.parseDate=function(t){var e=Date.parse(t);return isNaN(e)?new Date:new Date(Date.parse(t.replace(/-/g,"/")))},t.secondToTime=function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=":"),void 0===i&&(i=!0);var n=Math.floor(t/3600),r=Math.floor(t%3600/60),o=Math.floor(t%3600%60),s=n.toString(),a=r.toString(),h=o.toString();return n<10&&(s="0"+s),r<10&&(a="0"+a),o<10&&(h="0"+h),i?s+e+a+e+h:a+e+h},t.timeToMillisecond=function(t,e){void 0===e&&(e=":");for(var i=t.split(e),n=0,r=i.length,o=0;o-1?this.os="iOS":n.indexOf("android")>-1&&(this.os="Android");var r=i.language;r=r.indexOf("zh")>-1?"zh-CN":"en-US",this.language=r}},e}(egret.Capabilities);t.GraphicsCapabilities=e}(es||(es={})),function(t){var e=function(){function e(){this.setup(),this.graphicsCapabilities=new t.GraphicsCapabilities,this.graphicsCapabilities.initialize(this)}return Object.defineProperty(e.prototype,"viewport",{get:function(){return this._viewport},enumerable:!0,configurable:!0}),e.prototype.setup=function(){this._viewport=new t.Viewport(0,0,t.Core._instance.stage.stageWidth,t.Core._instance.stage.stageHeight)},e}();t.GraphicsDevice=e}(es||(es={})),function(t){var e=function(){function e(t,e,i,n){this._x=t,this._y=e,this._width=i,this._height=n,this._minDepth=0,this._maxDepth=1}return Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aspectRatio",{get:function(){return 0!=this._height&&0!=this._width?this._width/this._height:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bounds",{get:function(){return new t.Rectangle(this._x,this._y,this._width,this._height)},set:function(t){this._x=t.x,this._y=t.y,this._width=t.width,this._height=t.height},enumerable:!0,configurable:!0}),e}();t.Viewport=e}(es||(es={})),function(t){var e=function(e){function i(){return e.call(this,t.PostProcessor.default_vert,i.blur_frag,{screenWidth:t.Core.graphicsDevice.viewport.width,screenHeight:t.Core.graphicsDevice.viewport.height})||this}return __extends(i,e),i.blur_frag="precision mediump float;\nuniform sampler2D uSampler;\nuniform float screenWidth;\nuniform float screenHeight;\nfloat normpdf(in float x, in float sigma)\n{\nreturn 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;\n}\nvoid main()\n{\nvec3 c = texture2D(uSampler, gl_FragCoord.xy / vec2(screenWidth, screenHeight).xy).rgb;\nconst int mSize = 11;\nconst int kSize = (mSize - 1)/2;\nfloat kernel[mSize];\nvec3 final_colour = vec3(0.0);\nfloat sigma = 7.0;\nfloat z = 0.0;\nfor (int j = 0; j <= kSize; ++j)\n{\nkernel[kSize+j] = kernel[kSize-j] = normpdf(float(j),sigma);\n}\nfor (int j = 0; j < mSize; ++j)\n{\nz += kernel[j];\n}\nfor (int i = -kSize; i <= kSize; ++i)\n{\nfor (int j = -kSize; j <= kSize; ++j)\n{\nfinal_colour += kernel[kSize+j]*kernel[kSize+i]*texture2D(uSampler, (gl_FragCoord.xy+vec2(float(i),float(j))) / vec2(screenWidth, screenHeight).xy).rgb;\n}\n}\ngl_FragColor = vec4(final_colour/(z*z), 1.0);\n}",i}(egret.CustomFilter);t.GaussianBlurEffect=e}(es||(es={})),function(t){var e=function(t){function e(){return t.call(this,e.vertSrc,e.fragmentSrc)||this}return __extends(e,t),e.vertSrc="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform vec2 projectionVector;\nvarying vec2 vTextureCoord;\nconst vec2 center = vec2(-1.0, 1.0);\nvoid main(void) {\n gl_Position = vec4( (aVertexPosition / projectionVector) + center , 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",e.fragmentSrc="precision lowp float;\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n#define SAMPLE_COUNT 15\nuniform vec2 _sampleOffsets[SAMPLE_COUNT];\nuniform float _sampleWeights[SAMPLE_COUNT];\nvoid main(void) {\nvec4 c = vec4(0, 0, 0, 0);\nfor( int i = 0; i < SAMPLE_COUNT; i++ )\n c += texture2D( uSampler, vTextureCoord + _sampleOffsets[i] ) * _sampleWeights[i];\ngl_FragColor = c;\n}",e}(egret.CustomFilter);t.PolygonLightEffect=e}(es||(es={})),function(t){var e=function(){function e(t){void 0===t&&(t=null),this.enabled=!0,this.effect=t}return e.prototype.onAddedToScene=function(e){this.scene=e,this.shape=new egret.Shape,this.shape.graphics.beginFill(16777215,1),this.shape.graphics.drawRect(0,0,t.Core.graphicsDevice.viewport.width,t.Core.graphicsDevice.viewport.height),this.shape.graphics.endFill(),e.addChild(this.shape)},e.prototype.process=function(){this.drawFullscreenQuad()},e.prototype.onSceneBackBufferSizeChanged=function(t,e){},e.prototype.unload=function(){this.effect&&(this.effect=null),this.scene.removeChild(this.shape),this.scene=null},e.prototype.drawFullscreenQuad=function(){this.scene.filters=[this.effect]},e.default_vert="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec2 aColor;\nuniform vec2 projectionVector;\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nconst vec2 center = vec2(-1.0, 1.0);\nvoid main(void) {\ngl_Position = vec4( (aVertexPosition / projectionVector) + center , 0.0, 1.0);\nvTextureCoord = aTextureCoord;\nvColor = vec4(aColor.x, aColor.x, aColor.x, aColor.x);\n}",e}();t.PostProcessor=e}(es||(es={})),function(t){var e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),i.prototype.onAddedToScene=function(i){e.prototype.onAddedToScene.call(this,i),this.effect=new t.GaussianBlurEffect},i}(t.PostProcessor);t.GaussianBlurPostProcessor=e}(es||(es={})),function(t){var e=function(){function t(t,e){void 0===e&&(e=null),this.renderOrder=0,this.shouldDebugRender=!0,this.camera=e,this.renderOrder=t}return Object.defineProperty(t.prototype,"wantsToRenderToSceneRenderTarget",{get:function(){return!!this.renderTexture},enumerable:!0,configurable:!0}),t.prototype.onAddedToScene=function(t){},t.prototype.unload=function(){},t.prototype.onSceneBackBufferSizeChanged=function(t,e){},t.prototype.compareTo=function(t){return this.renderOrder-t.renderOrder},t.prototype.beginRender=function(t){},t.prototype.renderAfterStateCheck=function(t,e){t.render(e)},t.prototype.debugRender=function(t,e){for(var i=0;i=0&&h=0&&ci?i:t},e.pointOnCirlce=function(i,n,r){var o=e.toRadians(r);return new t.Vector2(Math.cos(o)*o+i.x,Math.sin(o)*o+i.y)},e.isEven=function(t){return t%2==0},e.clamp01=function(t){return t<0?0:t>1?1:t},e.angleBetweenVectors=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)},e.incrementWithWrap=function(t,e){return++t==e?0:t},e.approach=function(t,e,i){return tn&&(n=s.x),s.yr&&(r=s.y)}return this.fromMinMax(e,i,n,r)},i.prototype.intersects=function(t){return t.leftthis.x+this.width)return!1}else{var n=1/t.direction.x,r=(this.x-t.start.x)*n,o=(this.x+this.width-t.start.x)*n;if(r>o){var s=r;r=o,o=s}if(e.value=Math.max(r,e.value),i=Math.min(o,i),e.value>i)return!1}if(Math.abs(t.direction.y)<1e-6){if(t.start.ythis.y+this.height)return!1}else{var a=1/t.direction.y,h=(this.y-t.start.y)*a,c=(this.y+this.height-t.start.y)*a;if(h>c){var u=h;h=c,c=u}if(e.value=Math.max(h,e.value),i=Math.max(c,i),e.value>i)return!1}return!0},i.prototype.containsRect=function(t){return this.x<=t.x&&t.x1)return!1;var u=(h.x*o.y-h.y*o.x)/a;return!(u<0||u>1)},i.lineToLineIntersection=function(e,i,n,r){var o=new t.Vector2(0,0),s=t.Vector2.subtract(i,e),a=t.Vector2.subtract(r,n),h=s.x*a.y-s.y*a.x;if(0==h)return o;var c=t.Vector2.subtract(n,e),u=(c.x*a.y-c.y*a.x)/h;if(u<0||u>1)return o;var l=(c.x*s.y-c.y*s.x)/h;return l<0||l>1?o:o=t.Vector2.add(e,new t.Vector2(u*s.x,u*s.y))},i.closestPointOnLine=function(e,i,n){var r=t.Vector2.subtract(i,e),o=t.Vector2.subtract(n,e),s=t.Vector2.dot(o,r)/t.Vector2.dot(r,r);return s=t.MathHelper.clamp(s,0,1),t.Vector2.add(e,new t.Vector2(r.x*s,r.y*s))},i.circleToCircle=function(e,i,n,r){return t.Vector2.distanceSquared(e,n)<(i+r)*(i+r)},i.circleToLine=function(e,i,n,r){return t.Vector2.distanceSquared(e,this.closestPointOnLine(n,r,e))=t&&r.y>=e&&r.x=t+n&&(s|=e.right),o.y=i+r&&(s|=e.bottom),s},i}();t.Collisions=i}(es||(es={})),function(t){var e=function(){function e(e,i,n,r,o){this.fraction=0,this.distance=0,this.point=t.Vector2.zero,this.normal=t.Vector2.zero,this.collider=e,this.fraction=i,this.distance=n,this.point=r,this.centroid=t.Vector2.zero}return e.prototype.setValues=function(t,e,i,n){this.collider=t,this.fraction=e,this.distance=i,this.point=n},e.prototype.setValuesNonCollider=function(t,e,i,n){this.fraction=t,this.distance=e,this.point=i,this.normal=n},e.prototype.reset=function(){this.collider=null,this.fraction=this.distance=0},e.prototype.toString=function(){return"[RaycastHit] fraction: "+this.fraction+", distance: "+this.distance+", normal: "+this.normal+", centroid: "+this.centroid+", point: "+this.point},e}();t.RaycastHit=e}(es||(es={})),function(t){var e=function(){function e(){}return e.reset=function(){this._spatialHash=new t.SpatialHash(this.spatialHashCellSize)},e.clear=function(){this._spatialHash.clear()},e.overlapCircleAll=function(t,e,i,n){if(void 0===n&&(n=-1),0!=i.length)return this._spatialHash.overlapCircle(t,e,i,n);console.error("An empty results array was passed in. No results will ever be returned.")},e.boxcastBroadphase=function(t,e){return void 0===e&&(e=this.allLayers),this._spatialHash.aabbBroadphase(t,null,e)},e.boxcastBroadphaseExcludingSelf=function(t,e,i){return void 0===i&&(i=this.allLayers),this._spatialHash.aabbBroadphase(e,t,i)},e.addCollider=function(t){e._spatialHash.register(t)},e.removeCollider=function(t){e._spatialHash.remove(t)},e.updateCollider=function(t){this._spatialHash.remove(t),this._spatialHash.register(t)},e.linecast=function(t,i,n){return void 0===n&&(n=e.allLayers),this._hitArray[0].reset(),this.linecastAll(t,i,this._hitArray,n),this._hitArray[0]},e.linecastAll=function(t,i,n,r){return void 0===r&&(r=e.allLayers),0==n.length?(console.warn("传入了一个空的hits数组。没有点击会被返回"),0):this._spatialHash.linecast(t,i,n,r)},e.debugDraw=function(t){this._spatialHash.debugDraw(t,2)},e.spatialHashCellSize=100,e.allLayers=-1,e.raycastsHitTriggers=!1,e.raycastsStartInColliders=!1,e._hitArray=[new t.RaycastHit],e}();t.Physics=e}(es||(es={})),function(t){var e=function(){return function(e,i){this.start=e,this.end=i,this.direction=t.Vector2.subtract(this.end,this.start)}}();t.Ray2D=e}(es||(es={})),function(t){var e=function(){function e(e){void 0===e&&(e=100),this.gridBounds=new t.Rectangle,this._overlapTestCircle=new t.Circle(0),this._cellDict=new i,this._tempHashSet=[],this._cellSize=e,this._inverseCellSize=1/this._cellSize,this._raycastParser=new n}return e.prototype.register=function(e){var i=e.bounds;e.registeredPhysicsBounds=i;var n=this.cellCoords(i.x,i.y),r=this.cellCoords(i.right,i.bottom);this.gridBounds.contains(n.x,n.y)||(this.gridBounds=t.RectangleExt.union(this.gridBounds,n)),this.gridBounds.contains(r.x,r.y)||(this.gridBounds=t.RectangleExt.union(this.gridBounds,r));for(var o=n.x;o<=r.x;o++)for(var s=n.y;s<=r.y;s++){var a=this.cellAtPosition(o,s,!0);a.firstOrDefault(function(t){return t.hashCode==e.hashCode})||a.push(e)}},e.prototype.remove=function(t){for(var e=t.registeredPhysicsBounds,i=this.cellCoords(e.x,e.y),n=this.cellCoords(e.right,e.bottom),r=i.x;r<=n.x;r++)for(var o=i.y;o<=n.y;o++){var s=this.cellAtPosition(r,o);s?s.remove(t):console.log("从不存在碰撞器的单元格中移除碰撞器: ["+t+"]")}},e.prototype.removeWithBruteForce=function(t){this._cellDict.remove(t)},e.prototype.clear=function(){this._cellDict.clear()},e.prototype.debugDraw=function(t,e){void 0===e&&(e=1);for(var i=this.gridBounds.x;i<=this.gridBounds.right;i++)for(var n=this.gridBounds.y;n<=this.gridBounds.bottom;n++){var r=this.cellAtPosition(i,n);r&&r.length>0&&this.debugDrawCellDetails(i,n,r.length,t,e)}},e.prototype.aabbBroadphase=function(e,i,n){this._tempHashSet.length=0;for(var r=this.cellCoords(e.x,e.y),o=this.cellCoords(e.right,e.bottom),s=r.x;s<=o.x;s++)for(var a=r.y;a<=o.y;a++){var h=this.cellAtPosition(s,a);if(h)for(var c=function(r){var o=h[r];if(o==i||!t.Flags.isFlagSet(n,o.physicsLayer.value))return"continue";e.intersects(o.bounds)&&(u._tempHashSet.firstOrDefault(function(t){return t.hashCode==o.hashCode})||u._tempHashSet.push(o))},u=this,l=0;l=this.points.length?this.points[0]:this.points[n+1];var o=t.Vector2Ext.perpendicular(r,e);t.Vector2Ext.normalize(o),this._edgeNormals[n]=o}},i.buildSymmetricalPolygon=function(e,i){for(var n=new Array(e),r=0;rr&&(r=s,n=o)}return e[n]},i.getClosestPointOnPolygonToPoint=function(e,i,n,r){n.value=Number.MAX_VALUE,r.x=0,r.y=0;for(var o=new t.Vector2(0,0),s=0,a=0;at.y!=this.points[n].y>t.y&&t.x<(this.points[n].x-this.points[i].x)*(t.y-this.points[i].y)/(this.points[n].y-this.points[i].y)+this.points[i].x&&(e=!e);return e},i.prototype.pointCollidesWithShape=function(e,i){return t.ShapeCollisions.pointToPoly(e,this,i)},i}(t.Shape);t.Polygon=e}(es||(es={})),function(t){var e=function(e){function i(t,n){var r=e.call(this,i.buildBox(t,n),!0)||this;return r.width=t,r.height=n,r}return __extends(i,e),i.buildBox=function(e,i){var n=e/2,r=i/2,o=new Array(4);return o[0]=new t.Vector2(-n,-r),o[1]=new t.Vector2(n,-r),o[2]=new t.Vector2(n,r),o[3]=new t.Vector2(-n,r),o},i.prototype.updateBox=function(e,i){this.width=e,this.height=i;var n=e/2,r=i/2;this.points[0]=new t.Vector2(-n,-r),this.points[1]=new t.Vector2(n,-r),this.points[2]=new t.Vector2(n,r),this.points[3]=new t.Vector2(-n,r);for(var o=0;o1)return!1;var a,h=t.Vector2.add(s.start,t.Vector2.add(s.direction,new t.Vector2(r.value))),c=0;h.xi.bounds.right&&(c|=1),h.yi.bounds.bottom&&(c|=2);var u=a+c;return 3==u&&console.log("m == 3. corner "+t.Time.frameCount),!0},e}();t.RealtimeCollisions=e}(es||(es={})),function(t){var e=function(){function e(){}return e.polygonToPolygon=function(e,i,n){for(var r,o=!0,s=e.edgeNormals,a=i.edgeNormals,h=Number.POSITIVE_INFINITY,c=new t.Vector2,u=t.Vector2.subtract(e.position,i.position),l=0;l0&&(o=!1),!o)return!1;(y=Math.abs(y))r&&(r=o);return{min:n,max:r}},e.circleToPolygon=function(e,i,n){var r,o=t.Vector2.subtract(e.position,i.position),s=new t.Ref(0),a=t.Polygon.getClosestPointOnPolygonToPoint(i.points,o,s,n.normal),h=i.containsPoint(e.position);if(s.value>e.radius*e.radius&&!h)return!1;if(h)r=t.Vector2.multiply(n.normal,new t.Vector2(Math.sqrt(s.value)-e.radius));else if(0==s.value)r=t.Vector2.multiply(n.normal,new t.Vector2(e.radius));else{var c=Math.sqrt(s.value);r=t.Vector2.multiply(new t.Vector2(-t.Vector2.subtract(o,a)),new t.Vector2((e.radius-s.value)/c))}return n.minimumTranslationVector=r,n.point=t.Vector2.add(a,i.position),!0},e.circleToBox=function(e,i,n){var r=i.bounds.getClosestPointOnRectangleBorderToPoint(e.position,n.normal);if(i.containsPoint(e.position)){n.point=r;var o=t.Vector2.add(r,t.Vector2.multiply(n.normal,new t.Vector2(e.radius)));return n.minimumTranslationVector=t.Vector2.subtract(e.position,o),!0}var s=t.Vector2.distanceSquared(r,e.position);if(0==s)n.minimumTranslationVector=t.Vector2.multiply(n.normal,new t.Vector2(e.radius));else if(s<=e.radius*e.radius){n.normal=t.Vector2.subtract(e.position,r);var a=n.normal.length()-e.radius;return n.point=r,t.Vector2Ext.normalize(n.normal),n.minimumTranslationVector=t.Vector2.multiply(new t.Vector2(a),n.normal),!0}return!1},e.pointToCircle=function(e,i,n){var r=t.Vector2.distanceSquared(e,i.position),o=1+i.radius;if(r1)return!1;var l=(c.x*s.y-c.y*s.x)/h;return!(l<0||l>1)&&(o=o.add(e).add(t.Vector2.multiply(new t.Vector2(u),s)),!0)},e.lineToCircle=function(e,i,n,r){var o=t.Vector2.distance(e,i),s=t.Vector2.divide(t.Vector2.subtract(i,e),new t.Vector2(o)),a=t.Vector2.subtract(e,n.position),h=t.Vector2.dot(a,s),c=t.Vector2.dot(a,a)-n.radius*n.radius;if(c>0&&h>0)return!1;var u=h*h-c;return!(u<0)&&(r.fraction=-h-Math.sqrt(u),r.fraction<0&&(r.fraction=0),r.point=t.Vector2.add(e,t.Vector2.multiply(new t.Vector2(r.fraction),s)),r.distance=t.Vector2.distance(e,r.point),r.normal=t.Vector2.normalize(t.Vector2.subtract(r.point,n.position)),r.fraction=r.distance/o,!0)},e.boxToBoxCast=function(e,i,n,r){var o=this.minkowskiDifference(e,i);if(o.contains(0,0)){var s=o.getClosestPointOnBoundsToOrigin();return!s.equals(t.Vector2.zero)&&(r.normal=new t.Vector2(-s.x),r.normal.normalize(),r.distance=0,r.fraction=0,!0)}var a=new t.Ray2D(t.Vector2.zero,new t.Vector2(-n.x)),h=new t.Ref(0);return!!(o.rayIntersects(a,h)&&h.value<=1)&&(r.fraction=h.value,r.distance=n.length()*h.value,r.normal=new t.Vector2(-n.x,-n.y),r.normal.normalize(),r.centroid=t.Vector2.add(e.bounds.center,t.Vector2.multiply(n,new t.Vector2(h.value))),!0)},e}();t.ShapeCollisions=e}(es||(es={})),function(t){var e=function(){function e(){this.mass=1,this.radius=0,this.collidesWithColliders=!0}return e.prototype.applyForce=function(e){this.acceleration.add(t.Vector2.divide(e,new t.Vector2(this.mass)))},e}();t.Particle=e}(es||(es={})),function(t){var e=function(){function e(e){void 0===e&&(e=null),this.gravity=new t.Vector2(0,980),this.constraintIterations=3,this.maximumStepIterations=5,this.allowDragging=!0,this._composites=[],this._tempCircle=new t.Circle(1),this._leftOverTime=0,this._fixedDeltaTime=1/60,this._iterationSteps=0,this._fixedDeltaTimeSq=0,this.simulationBounds=e,this._fixedDeltaTimeSq=Math.pow(this._fixedDeltaTimeSq,2)}return e.prototype.update=function(){this.updateTiming(),this.allowDragging&&this.handleDragging();for(var t=1;t<=this._iterationSteps;t++)for(var e=this._composites.length-1;e>=0;e--){for(var i=this._composites[e],n=0;ni.height?e.y=i.height:e.yi.width&&(e.x=i.width)):(e.yi.height-t.radius&&(e.y=2*(i.height-t.radius)-e.y),e.x>i.width-t.radius&&(e.x=2*(i.width-t.radius)-e.x),e.x=0;t--)this._constraints[t].solve()},e.prototype.updateParticles=function(e,i){for(var n=0;n=0;t--)this._constraints[t].collidesWithColliders&&this._constraints[t].handleCollisions(this.collidesWithLayers)},e.prototype.debugRender=function(t){},e}();t.Composite=e}(es||(es={})),function(t){var e=function(){function t(){this.collidesWithColliders=!0}return t.prototype.handleCollisions=function(t){},t}();t.Constraint=e}(es||(es={})),function(t){var e=function(){return function(){}}();t.TmxGroup=e}(es||(es={})),function(t){var e=function(){return function(){}}();t.TmxImageLayer=e}(es||(es={})),function(t){var e=function(){function e(){}return Object.defineProperty(e.prototype,"offset",{get:function(){return new t.Vector2(this.offsetX,this.offsetY)},enumerable:!0,configurable:!0}),e.prototype.getTileWithGid=function(t){for(var e=0;e=0&&(e.push(this.findBoundsRect(i,o,r,t)),i=-1)}i>=0&&(e.push(this.findBoundsRect(i,this.map.width,r,t)),i=-1)}return e},e.prototype.findBoundsRect=function(e,i,n,r){for(var o=-1,s=n+1;sthis.tileHeight||this.maxTileWidth>this.tileWidth},enumerable:!0,configurable:!0}),i.prototype.getTilesetForTileGid=function(t){if(0==t)return null;for(var e=this.tilesets.length-1;e>=0;e--)if(this.tilesets[e].firstGid<=t)return this.tilesets[e];console.error("tile gid"+t+"未在任何tileset中找到")},i.prototype.worldToTilePositionX=function(e,i){void 0===i&&(i=!0);var n=Math.floor(e/this.tileWidth);return i?t.MathHelper.clamp(n,0,this.width-1):n},i.prototype.worldToTilePositionY=function(e,i){void 0===i&&(i=!0);var n=Math.floor(e/this.tileHeight);return i?t.MathHelper.clamp(n,0,this.height-1):n},i.prototype.getLayer=function(t){return this.layers[t]},i.prototype.update=function(){this.tilesets.forEach(function(t){t.update()})},i.prototype.dispose=function(t){void 0===t&&(t=!0),this._isDisposed||(t&&(this.tilesets.forEach(function(t){t.image&&t.image.dispose()}),this.imageLayers.forEach(function(t){t.image&&t.image.dispose()})),this._isDisposed=!0)},i}(t.TmxDocument);t.TmxMap=e,function(t){t[t.unknown=0]="unknown",t[t.orthogonal=1]="orthogonal",t[t.isometric=2]="isometric",t[t.staggered=3]="staggered",t[t.hexagonal=4]="hexagonal"}(t.OrientationType||(t.OrientationType={})),function(t){t[t.x=0]="x",t[t.y=1]="y"}(t.StaggerAxisType||(t.StaggerAxisType={})),function(t){t[t.odd=0]="odd",t[t.even=1]="even"}(t.StaggerIndexType||(t.StaggerIndexType={})),function(t){t[t.rightDown=0]="rightDown",t[t.rightUp=1]="rightUp",t[t.leftDown=2]="leftDown",t[t.leftUp=3]="leftUp"}(t.RenderOrderType||(t.RenderOrderType={}))}(es||(es={})),function(t){var e=function(){return function(){}}();t.TmxObjectGroup=e;var i=function(){return function(){this.shape=new egret.Shape,this.textField=new egret.TextField}}();t.TmxObject=i;var n=function(){return function(){}}();t.TmxText=n;var r=function(){return function(){}}();t.TmxAlignment=r,function(t){t[t.basic=0]="basic",t[t.point=1]="point",t[t.tile=2]="tile",t[t.ellipse=3]="ellipse",t[t.polygon=4]="polygon",t[t.polyline=5]="polyline",t[t.text=6]="text"}(t.TmxObjectType||(t.TmxObjectType={})),function(t){t[t.unkownOrder=-1]="unkownOrder",t[t.TopDown=0]="TopDown",t[t.IndexOrder=1]="IndexOrder"}(t.DrawOrderType||(t.DrawOrderType={})),function(t){t[t.left=0]="left",t[t.center=1]="center",t[t.right=2]="right",t[t.justify=3]="justify"}(t.TmxHorizontalAlignment||(t.TmxHorizontalAlignment={})),function(t){t[t.top=0]="top",t[t.center=1]="center",t[t.bottom=2]="bottom"}(t.TmxVerticalAlignment||(t.TmxVerticalAlignment={}))}(es||(es={})),function(t){var e=function(){function e(){}return e.loadTmxMap=function(t,e){var i=RES.getRes(e);return this.loadTmxMapData(t,i,RES.getResourceInfo(e))},e.loadTmxMapData=function(e,i,n){return __awaiter(this,void 0,void 0,function(){var r,o,s,a;return __generator(this,function(h){switch(h.label){case 0:e.version=i.version,e.tiledVersion=i.tiledversion,e.width=i.width,e.height=i.height,e.tileWidth=i.tilewidth,e.tileHeight=i.tileheight,e.hexSideLength=i.hexsidelength,e.orientation=this.parseOrientationType(i.orientation),e.staggerAxis=this.parseStaggerAxisType(i.staggeraxis),e.staggerIndex=this.parseStaggerIndexType(i.staggerindex),e.renderOrder=this.parseRenderOrderType(i.renderorder),e.nextObjectID=i.nextobjectid,e.backgroundColor=t.TmxUtils.color16ToUnit(i.color),e.properties=this.parsePropertyDict(i.properties),e.maxTileWidth=e.tileWidth,e.maxTileHeight=e.tileHeight,e.tmxDirectory=n.root+n.url.replace(".","_").replace(n.name,""),e.tilesets=[],r=0,o=i.tilesets,h.label=1;case 1:return rt.map.maxTileWidth&&(t.map.maxTileWidth=e.image.width),e.image.height>t.map.maxTileHeight&&(t.map.maxTileHeight=e.image.height))}),t.tileRegions.forEach(function(e){var i=e.width,n=e.height;i>t.map.maxTileWidth&&(t.map.maxTileWidth=i),i>t.map.maxTileHeight&&(t.map.maxTileHeight=n)})},e.parseOrientationType=function(e){return"unknown"==e?t.OrientationType.unknown:"orthogonal"==e?t.OrientationType.orthogonal:"isometric"==e?t.OrientationType.isometric:"staggered"==e?t.OrientationType.staggered:"hexagonal"==e?t.OrientationType.hexagonal:t.OrientationType.unknown},e.parseStaggerAxisType=function(e){return"y"==e?t.StaggerAxisType.y:t.StaggerAxisType.x},e.parseStaggerIndexType=function(e){return"even"==e?t.StaggerIndexType.even:t.StaggerIndexType.odd},e.parseRenderOrderType=function(e){return"right-up"==e?t.RenderOrderType.rightUp:"left-down"==e?t.RenderOrderType.leftDown:"left-up"==e?t.RenderOrderType.leftUp:t.RenderOrderType.rightDown},e.parsePropertyDict=function(e){if(!e)return null;for(var i=new Map,n=0,r=e;n=e.columns));m+=e.tileWidth+e.spacing);else e.tiles.forEach(function(i,n){e.tileRegions.set(n,new t.Rectangle(0,0,i.image.width,i.image.height))});return[2,e]}})})},e.loadTmxTilesetTile=function(e,i,n,r,o){return __awaiter(this,void 0,void 0,function(){var s,a,h,c,u,l,p,d,f,g,y,m,_;return __generator(this,function(v){switch(v.label){case 0:if(e.tileset=i,e.id=n.id,s=n.terrain)for(e.terrainEdges=new Array(4),a=0,h=0,c=s;h0){a.shape.x=h.x,a.shape.y=h.y,i.addChild(a.shape),a.shape.graphics.clear(),a.shape.graphics.lineStyle(1,10526884);for(l=0;l0&&(u=l.currentAnimationFrameGid);var p=i.tileset.tileRegions.get(u),d=Math.floor(i.x)*s,f=Math.floor(i.y)*a;i.horizontalFlip&&i.verticalFlip?(d+=a+(p.height*o.y-a),f-=p.width*o.x-s):i.horizontalFlip?d+=s+(p.height*o.y-a):i.verticalFlip?f+=s-p.width*o.x:f+=a-p.height*o.y;var g=new t.Vector2(d,f).add(r);if(i.tileset.image){if(n){var y=i.tileset.image.bitmap.getTexture(""+u);y||(y=i.tileset.image.bitmap.createTexture(""+u,p.x,p.y,p.width,p.height)),i.tileset.image.texture=new e(y),n.addChild(i.tileset.image.texture),i.tileset.image.texture.x!=g.x&&(i.tileset.image.texture.x=g.x),i.tileset.image.texture.y!=g.y&&(i.tileset.image.texture.y=g.y),i.verticalFlip&&i.horizontalFlip?(i.tileset.image.texture.scaleX=-1,i.tileset.image.texture.scaleY=-1):i.verticalFlip?(i.tileset.image.texture.scaleX=o.x,i.tileset.image.texture.scaleY=-1):i.horizontalFlip?(i.tileset.image.texture.scaleX=-1,i.tileset.image.texture.scaleY=o.y):(i.tileset.image.texture.scaleX=o.x,i.tileset.image.texture.scaleY=o.y),0!=i.tileset.image.texture.rotation&&(i.tileset.image.texture.rotation=0),0!=i.tileset.image.texture.anchorOffsetX&&(i.tileset.image.texture.anchorOffsetX=0),0!=i.tileset.image.texture.anchorOffsetY&&(i.tileset.image.texture.anchorOffsetY=0)}}else l.image.texture&&(l.image.bitmap.getTexture(u.toString())||(l.image.texture=new e(l.image.bitmap.createTexture(u.toString(),p.x,p.y,p.width,p.height)),n.addChild(l.image.texture)),l.image.texture.x=g.x,l.image.texture.y=g.y,l.image.texture.scaleX=o.x,l.image.texture.scaleY=o.y,l.image.texture.rotation=0,l.image.texture.anchorOffsetX=0,l.image.texture.anchorOffsetY=0,l.image.texture.filters=[h])},i}();t.TiledRendering=i}(es||(es={})),function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.update=function(){this.tiles.forEach(function(t){t.updateAnimatedTiles()})},e}(t.TmxDocument);t.TmxTileset=e;var i=function(){return function(){}}();t.TmxTileOffset=i;var n=function(){return function(){}}();t.TmxTerrain=n}(es||(es={})),function(t){var e=function(){function e(){}return Object.defineProperty(e.prototype,"currentAnimationFrameGid",{get:function(){return this.animationFrames[this._animationCurrentFrame].gid+this.tileset.firstGid},enumerable:!0,configurable:!0}),e.prototype.processProperties=function(){var t;(t=this.properties.get("engine.isDestructable"))&&(this.isDestructable=Boolean(t)),(t=this.properties.get("engine:isSlope"))&&(this.isSlope=Boolean(t)),(t=this.properties.get("engine:isOneWayPlatform"))&&(this.isOneWayPlatform=Boolean(t)),(t=this.properties.get("engine:slopeTopLeft"))&&(this.slopeTopLeft=Number(t)),(t=this.properties.get("engine:slopeTopRight"))&&(this.slopeTopRight=Number(t))},e.prototype.updateAnimatedTiles=function(){0!=this.animationFrames.length&&(this._animationElapsedTime+=t.Time.deltaTime,this._animationElapsedTime>this.animationFrames[this._animationCurrentFrame].duration&&(this._animationCurrentFrame=t.MathHelper.incrementWithWrap(this._animationCurrentFrame,this.animationFrames.length),this._animationElapsedTime=0))},e}();t.TmxTilesetTile=e;var i=function(){return function(){}}();t.TmxAnimationFrame=i}(es||(es={})),function(t){var e=function(){function e(){}return e.decode=function(e,i,n){switch(n=n||"none",i=i||"none"){case"base64":var r=t.Base64Utils.decodeBase64AsArray(e,4);return"none"===n?r:t.Base64Utils.decompress(e,r,n);case"csv":return t.Base64Utils.decodeCSV(e);case"none":for(var o=[],s=0;si;n--)if(t[n]0&&t[r-1]>n;r--)t[r]=t[r-1];t[r]=n}},t.binarySearch=function(t,e){for(var i=0,n=t.length,r=i+n>>1;i=t[r]&&(i=r+1),r=i+n>>1;return t[i]==e?i:-1},t.findElementIndex=function(t,e){for(var i=t.length,n=0;nt[e]&&(e=n);return e},t.getMinElementIndex=function(t){for(var e=0,i=t.length,n=1;n=0;--r)i.unshift(e[r]);return i},t.getDifferAry=function(t,e){t=this.getUniqueAry(t),e=this.getUniqueAry(e);for(var i=t.concat(e),n={},r=[],o=i.length,s=0;s=0;e-=1)t.splice(e,1)},t.cloneList=function(t){return t?t.slice(0,t.length):null},t.equals=function(t,e){if(t==e)return!0;var i=t.length;if(i!=e.length)return!1;for(;i--;)if(t[i]!=e[i])return!1;return!0},t.insert=function(t,e,i){if(!t)return null;var n=t.length;if(e>n&&(e=n),e<0&&(e=0),e==n)t.push(i);else if(0==e)t.unshift(i);else{for(var r=n-1;r>=e;r-=1)t[r+1]=t[r];t[e]=i}return i},t}();!function(t){var e=function(){function t(){}return Object.defineProperty(t,"nativeBase64",{get:function(){return"function"==typeof window.atob},enumerable:!0,configurable:!0}),t.decode=function(t){if(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),this.nativeBase64)return window.atob(t);for(var e,i,n,r,o,s,a=[],h=0;h>4,i=(15&r)<<4|(o=this._keyStr.indexOf(t.charAt(h++)))>>2,n=(3&o)<<6|(s=this._keyStr.indexOf(t.charAt(h++))),a.push(String.fromCharCode(e)),64!==o&&a.push(String.fromCharCode(i)),64!==s&&a.push(String.fromCharCode(n));return a=a.join("")},t.encode=function(t){if(t=t.replace(/\r\n/g,"\n"),!this.nativeBase64){for(var e,i,n,r,o,s,a,h=[],c=0;c>2,o=(3&e)<<4|(i=t.charCodeAt(c++))>>4,s=(15&i)<<2|(n=t.charCodeAt(c++))>>6,a=63&n,isNaN(i)?s=a=64:isNaN(n)&&(a=64),h.push(this._keyStr.charAt(r)),h.push(this._keyStr.charAt(o)),h.push(this._keyStr.charAt(s)),h.push(this._keyStr.charAt(a));return h=h.join("")}window.btoa(t)},t.decodeBase64AsArray=function(e,i){i=i||1;var n,r,o,s=t.decode(e),a=new Uint32Array(s.length/i);for(n=0,o=s.length/i;n=0;--r)a[n]+=s.charCodeAt(n*i+r)<<(r<<3);return a},t.decompress=function(t,e,i){throw new Error("GZIP/ZLIB compressed TMX Tile Map not supported!")},t.decodeCSV=function(t){for(var e=t.replace("\n","").trim().split(","),i=[],n=0;n>16},set:function(t){this._packedValue=4278255615&this._packedValue|t<<16},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this._packedValue>>8},set:function(t){this._packedValue=4294902015&this._packedValue|t<<8},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"r",{get:function(){return this._packedValue},set:function(t){this._packedValue=4294967040&this._packedValue|t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this._packedValue>>24},set:function(t){this._packedValue=16777215&this._packedValue|t<<24},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"packedValue",{get:function(){return this._packedValue},set:function(t){this._packedValue=t},enumerable:!0,configurable:!0}),e.prototype.equals=function(t){return this._packedValue==t._packedValue},e}();t.Color=e}(es||(es={})),function(t){var e=function(){function t(){this.loadedAssets=new Map}return t.prototype.loadRes=function(t,e){var i=this;return void 0===e&&(e=!0),new Promise(function(n,r){var o=i.loadedAssets.get(t);o?n(o):e?RES.getResAsync(t).then(function(e){i.loadedAssets.set(t,e),n(e)}).catch(function(e){console.error("资源加载错误:",t,e),r(e)}):RES.getResByUrl(t).then(function(e){i.loadedAssets.set(t,e),n(e)}).catch(function(e){console.error("资源加载错误:",t,e),r(e)})})},t.prototype.dispose=function(){this.loadedAssets.forEach(function(t){var e=t;RES.destroyRes(e)&&e.dispose()}),this.loadedAssets.clear()},t}();t.ContentManager=e}(es||(es={})),function(t){var e=function(){function t(){}return t.getColorMatrix=function(t){var e=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];return e[0]=Math.floor(t/256/256)/255,e[6]=Math.floor(t/256%256)/255,e[12]=t%256/255,new egret.ColorMatrixFilter(e)},t}();t.DrawUtils=e}(es||(es={})),function(t){var e=function(){function e(){}return e.oppositeEdge=function(e){switch(e){case t.Edge.bottom:return t.Edge.top;case t.Edge.top:return t.Edge.bottom;case t.Edge.left:return t.Edge.right;case t.Edge.right:return t.Edge.left}},e.isHorizontal=function(e){return e==t.Edge.right||e==t.Edge.left},e.isVertical=function(e){return e==t.Edge.top||e==t.Edge.bottom},e}();t.EdgeExt=e}(es||(es={})),function(t){var e=function(){return function(t,e){this.func=t,this.context=e}}();t.FuncPack=e;var i=function(){function t(){this._messageTable=new Map}return t.prototype.addObserver=function(t,i,n){var r=this._messageTable.get(t);r||(r=[],this._messageTable.set(t,r)),-1!=r.findIndex(function(t){return t.func==i})&&console.warn("您试图添加相同的观察者两次"),r.push(new e(i,n))},t.prototype.removeObserver=function(t,e){var i=this._messageTable.get(t),n=i.findIndex(function(t){return t.func==e});-1!=n&&i.removeAt(n)},t.prototype.emit=function(t,e){var i=this._messageTable.get(t);if(i)for(var n=i.length-1;n>=0;n--)i[n].func.call(i[n].context,e)},t}();t.Emitter=i}(es||(es={})),function(t){!function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.left=2]="left",t[t.right=3]="right"}(t.Edge||(t.Edge={}))}(es||(es={})),function(t){var e=function(){function t(){}return t.repeat=function(t,e){for(var i=[];e--;)i.push(t);return i},t}();t.Enumerable=e}(es||(es={})),function(t){var e=function(){function t(){}return t.default=function(){return new t},t.prototype.equals=function(t,e){return"function"==typeof t.equals?t.equals(e):t===e},t}();t.EqualityComparer=e}(es||(es={})),function(t){var e=function(){function t(){}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),t.prototype.setEnabled=function(t){this._enabled!=t&&(this._enabled=t,this._enabled?this.onEnabled():this.onDisabled())},t.prototype.onEnabled=function(){},t.prototype.onDisabled=function(){},t.prototype.update=function(){},t}();t.GlobalManager=e}(es||(es={})),function(t){var e=function(){function t(){}return t.warmCache=function(t){if((t-=this._objectQueue.length)>0)for(var e=0;ethis._objectQueue.length;)this._objectQueue.shift()},t.clearCache=function(){this._objectQueue.length=0},t.obtain=function(){return this._objectQueue.length>0?this._objectQueue.shift():[]},t.free=function(t){this._objectQueue.unshift(t),t.length=0},t._objectQueue=[],t}();t.ListPool=e}(es||(es={})),function(t){var e=function(){function t(){}return t.toNumber=function(t){return null==t?0:Number(t)},t}();t.NumberExtension=e}(es||(es={})),function(t){var e=function(){function t(t,e){this.first=t,this.second=e}return t.prototype.clear=function(){this.first=this.second=null},t.prototype.equals=function(t){return this.first==t.first&&this.second==t.second},t}();t.Pair=e}(es||(es={})),function(t){var e=function(){function t(){}return t.warmCache=function(t,e){if((e-=this._objectQueue.length)>0)for(var i=0;ithis._objectQueue.length;)this._objectQueue.shift()},t.clearCache=function(){this._objectQueue.length=0},t.obtain=function(t){return this._objectQueue.length>0?this._objectQueue.shift():new t},t.free=function(t){this._objectQueue.unshift(t),egret.is(t,"IPoolable")&&t.reset()},t._objectQueue=[],t}();t.Pool=e}(es||(es={}));var RandomUtils=function(){function t(){}return t.randrange=function(t,e,i){if(void 0===i&&(i=1),0==i)throw new Error("step 不能为 0");var n=e-t;if(0==n)throw new Error("没有可用的范围("+t+","+e+")");n<0&&(n=t-e);var r=Math.floor((n+i-1)/i);return Math.floor(this.random()*r)*i+Math.min(t,e)},t.randint=function(t,e){return(t=Math.floor(t))>(e=Math.floor(e))?t++:e++,this.randrange(t,e)},t.randnum=function(t,e){return this.random()*(e-t)+t},t.shuffle=function(t){return t.sort(this._randomCompare),t},t.choice=function(t){if(!t.hasOwnProperty("length"))throw new Error("无法对此对象执行此操作");var e=Math.floor(this.random()*t.length);return t instanceof String?String(t).charAt(e):t[e]},t.sample=function(t,e){var i=t.length;if(e<=0||i=0;)s=Math.floor(this.random()*i);n.push(t[s]),r.push(s)}return n},t.random=function(){return Math.random()},t.boolean=function(t){return void 0===t&&(t=.5),this.random().5?1:-1},t}();!function(t){var e=function(){function e(){}return e.getSide=function(e,i){switch(i){case t.Edge.top:return e.top;case t.Edge.bottom:return e.bottom;case t.Edge.left:return e.left;case t.Edge.right:return e.right}},e.union=function(e,i){var n=new t.Rectangle(i.x,i.y,0,0),r=new t.Rectangle;return r.x=Math.min(e.x,n.x),r.y=Math.min(e.y,n.y),r.width=Math.max(e.right,n.right)-r.x,r.height=Math.max(e.bottom,r.bottom)-r.y,r},e.getHalfRect=function(e,i){switch(i){case t.Edge.top:return new t.Rectangle(e.x,e.y,e.width,e.height/2);case t.Edge.bottom:return new t.Rectangle(e.x,e.y+e.height/2,e.width,e.height/2);case t.Edge.left:return new t.Rectangle(e.x,e.y,e.width/2,e.height);case t.Edge.right:return new t.Rectangle(e.x+e.width/2,e.y,e.width/2,e.height)}},e.getRectEdgePortion=function(e,i,n){switch(void 0===n&&(n=1),i){case t.Edge.top:return new t.Rectangle(e.x,e.y,e.width,n);case t.Edge.bottom:return new t.Rectangle(e.x,e.y+e.height-n,e.width,n);case t.Edge.left:return new t.Rectangle(e.x,e.y,n,e.height);case t.Edge.right:return new t.Rectangle(e.x+e.width-n,e.y,n,e.height)}},e.expandSide=function(e,i,n){switch(n=Math.abs(n),i){case t.Edge.top:e.y-=n,e.height+=n;break;case t.Edge.bottom:e.height+=n;break;case t.Edge.left:e.x-=n,e.width+=n;break;case t.Edge.right:e.width+=n}},e.contract=function(t,e,i){t.x+=e,t.y+=i,t.width-=2*e,t.height-=2*i},e}();t.RectangleExt=e}(es||(es={})),function(t){var e=function(){return function(t){this.value=t}}();t.Ref=e}(es||(es={})),function(t){var e=function(){function t(){}return t.prototype.update=function(t){this.remainder+=t;var e=Math.trunc(this.remainder);return this.remainder-=e,e},t.prototype.reset=function(){this.remainder=0},t}();t.SubpixelNumber=e}(es||(es={})),function(t){var e=function(){function e(){this.triangleIndices=[],this._triPrev=new Array(12),this._triNext=new Array(12)}return e.testPointTriangle=function(e,i,n,r){return!(t.Vector2Ext.cross(t.Vector2.subtract(e,i),t.Vector2.subtract(n,i))<0)&&(!(t.Vector2Ext.cross(t.Vector2.subtract(e,n),t.Vector2.subtract(r,n))<0)&&!(t.Vector2Ext.cross(t.Vector2.subtract(e,r),t.Vector2.subtract(i,r))<0))},e.prototype.triangulate=function(i,n){void 0===n&&(n=!0);var r=i.length;this.initialize(r);for(var o=0,s=0;r>3&&o<500;){o++;var a=!0,h=i[this._triPrev[s]],c=i[s],u=i[this._triNext[s]];if(t.Vector2Ext.isTriangleCCW(h,c,u)){var l=this._triNext[this._triNext[s]];do{if(e.testPointTriangle(i[l],h,c,u)){a=!1;break}l=this._triNext[l]}while(l!=this._triPrev[s])}else a=!1;a?(this.triangleIndices.push(this._triPrev[s]),this.triangleIndices.push(s),this.triangleIndices.push(this._triNext[s]),this._triNext[this._triPrev[s]]=this._triNext[s],this._triPrev[this._triNext[s]]=this._triPrev[s],r--,s=this._triPrev[s]):s=this._triNext[s]}this.triangleIndices.push(this._triPrev[s]),this.triangleIndices.push(s),this.triangleIndices.push(this._triNext[s]),n||this.triangleIndices.reverse()},e.prototype.initialize=function(t){this.triangleIndices.length=0,this._triNext.lengtht.MathHelper.Epsilon?e.divide(new t.Vector2(i)):e.x=e.y=0},e.transformA=function(t,e,i,n,r,o){for(var s=0;sthis.safeArea.right&&(s.x=this.safeArea.right-s.width),s.topthis.safeArea.bottom&&(s.y=this.safeArea.bottom-s.height),s},i}();t.Layout=i,function(t){t[t.none=0]="none",t[t.left=1]="left",t[t.right=2]="right",t[t.horizontalCenter=4]="horizontalCenter",t[t.top=8]="top",t[t.bottom=16]="bottom",t[t.verticalCenter=32]="verticalCenter",t[t.topLeft=9]="topLeft",t[t.topRight=10]="topRight",t[t.topCenter=12]="topCenter",t[t.bottomLeft=17]="bottomLeft",t[t.bottomRight=18]="bottomRight",t[t.bottomCenter=20]="bottomCenter",t[t.centerLeft=33]="centerLeft",t[t.centerRight=34]="centerRight",t[t.center=36]="center"}(e=t.Alignment||(t.Alignment={}))}(es||(es={})),function(t){var e,i=function(){function t(t){void 0===t&&(t=n),this.getSystemTime=t,this._stopDuration=0,this._completeSlices=[]}return t.prototype.getState=function(){return void 0===this._startSystemTime?e.IDLE:void 0===this._stopSystemTime?e.RUNNING:e.STOPPED},t.prototype.isIdle=function(){return this.getState()===e.IDLE},t.prototype.isRunning=function(){return this.getState()===e.RUNNING},t.prototype.isStopped=function(){return this.getState()===e.STOPPED},t.prototype.slice=function(){return this.recordPendingSlice()},t.prototype.getCompletedSlices=function(){return Array.from(this._completeSlices)},t.prototype.getCompletedAndPendingSlices=function(){return this._completeSlices.concat([this.getPendingSlice()])},t.prototype.getPendingSlice=function(){return this.calculatePendingSlice()},t.prototype.getTime=function(){return this.caculateStopwatchTime()},t.prototype.reset=function(){this._startSystemTime=this._pendingSliceStartStopwatchTime=this._stopSystemTime=void 0,this._stopDuration=0,this._completeSlices=[]},t.prototype.start=function(t){if(void 0===t&&(t=!1),t&&this.reset(),void 0!==this._stopSystemTime){var e=(i=this.getSystemTime())-this._stopSystemTime;this._stopDuration+=e,this._stopSystemTime=void 0}else if(void 0===this._startSystemTime){var i=this.getSystemTime();this._startSystemTime=i,this._pendingSliceStartStopwatchTime=0}},t.prototype.stop=function(t){if(void 0===t&&(t=!1),void 0===this._startSystemTime)return 0;var e=this.getSystemTimeOfCurrentStopwatchTime();return t&&this.recordPendingSlice(this.caculateStopwatchTime(e)),this._stopSystemTime=e,this.getTime()},t.prototype.calculatePendingSlice=function(t){return void 0===this._pendingSliceStartStopwatchTime?Object.freeze({startTime:0,endTime:0,duration:0}):(void 0===t&&(t=this.getTime()),Object.freeze({startTime:this._pendingSliceStartStopwatchTime,endTime:t,duration:t-this._pendingSliceStartStopwatchTime}))},t.prototype.caculateStopwatchTime=function(t){return void 0===this._startSystemTime?0:(void 0===t&&(t=this.getSystemTimeOfCurrentStopwatchTime()),t-this._startSystemTime-this._stopDuration)},t.prototype.getSystemTimeOfCurrentStopwatchTime=function(){return void 0===this._stopSystemTime?this.getSystemTime():this._stopSystemTime},t.prototype.recordPendingSlice=function(t){if(void 0!==this._pendingSliceStartStopwatchTime){void 0===t&&(t=this.getTime());var e=this.calculatePendingSlice(t);return this._pendingSliceStartStopwatchTime=e.endTime,this._completeSlices.push(e),e}return this.calculatePendingSlice()},t}();t.Stopwatch=i,function(t){t.IDLE="IDLE",t.RUNNING="RUNNING",t.STOPPED="STOPPED"}(e||(e={})),t.setDefaultSystemTimeGetter=function(t){void 0===t&&(t=Date.now),n=t};var n=Date.now}(stopwatch||(stopwatch={})),function(t){var e=function(){function e(){this.showLog=!1,this.markers=[],this.stopwacth=new stopwatch.Stopwatch,this._markerNameToIdMap=new Map,this._rectShape1=new egret.Shape,this._rectShape2=new egret.Shape,this._rectShape3=new egret.Shape,this._rectShape4=new egret.Shape,this._rectShape5=new egret.Shape,this._rectShape6=new egret.Shape,this.logs=new Array(2);for(var e=0;e=e.logSnapDuration&&(u.logs[n].snapMin=u.logs[n].min,u.logs[n].snapMax=u.logs[n].max,u.logs[n].snapAvg=u.logs[n].avg,u.logs[n].samples=0)):(u.logs[n].min=h,u.logs[n].max=h,u.logs[n].avg=h,u.logs[n].initialized=!0)}o.markCount=r.nestCount,o.nestCount=r.nestCount}this.stopwacth.reset(),this.stopwacth.start()}},e.prototype.beginMark=function(t,i,n){if(void 0===n&&(n=0),n<0||n>=e.maxBars)throw new Error("barIndex argument out of range");var r=this.curLog.bars[n];if(r.markCount>=e.maxSamples)throw new Error("超出采样次数,可以设置更大的数字为timeruler.maxsaple,或者降低采样次数");if(r.nestCount>=e.maxNestCall)throw new Error("超出采样次数,可以设置更大的数字为timeruler.maxsaple,或者降低采样次数");var s=this._markerNameToIdMap.get(t);isNaN(s)&&(s=this.markers.length,this._markerNameToIdMap.set(t,s),this.markers.push(new o(t))),r.markerNests[r.nestCount++]=r.markCount,r.markers[r.markCount].markerId=s,r.markers[r.markCount].color=i,r.markers[r.markCount].beginTime=this.stopwacth.getTime(),r.markers[r.markCount].endTime=-1,r.markCount++},e.prototype.endMark=function(t,i){if(void 0===i&&(i=0),i<0||i>=e.maxBars)throw new Error("barIndex参数超出范围");var n=this.curLog.bars[i];if(n.nestCount<=0)throw new Error("先调用beginMark方法,再调用endMark方法");var r=this._markerNameToIdMap.get(t);if(isNaN(r))throw new Error("标记 "+t+" 未注册。请确认您指定的名称与 beginMark 方法使用的名称相同");var o=n.markerNests[--n.nestCount];if(n.markers[o].markerId!=r)throw new Error("beginMark/endMark方法的调用顺序不正确,beginMark(A),beginMark(B),endMark(B),endMark(A),但你不能像beginMark(A),beginMark(B),endMark(A),endMark(B)这样调用。");n.markers[o].endTime=this.stopwacth.getTime()},e.prototype.getAverageTime=function(t,i){if(t<0||t>=e.maxBars)throw new Error("barIndex参数超出范围");var n=0,r=this._markerNameToIdMap.get(i);return r&&(n=this.markers[r].logs[t].avg),n},e.prototype.resetLog=function(){this.markers.forEach(function(t){for(var e=0;e0&&(r+=e.barHeight+2*e.barPadding,o=Math.max(o,t.markers[t.markCount-1].endTime))});var s=this.sampleFrames*(1/60*1e3);this._frameAdjust=o>s?Math.max(0,this._frameAdjust)+1:Math.min(0,this._frameAdjust)-1,Math.max(this._frameAdjust)>e.autoAdjustDelay&&(this.sampleFrames=Math.min(e.maxSampleFrames,this.sampleFrames),this.sampleFrames=Math.max(this.targetSampleFrames,Math.floor(o/(1/60*1e3))+1),this._frameAdjust=0);var a=n/s,h=i.y-(r-e.barHeight),c=h,u=new t.Rectangle(i.x,c,n,r);this._rectShape1.graphics.clear(),this._rectShape1.graphics.beginFill(0,128/255),this._rectShape1.graphics.drawRect(u.x,u.y,u.width,u.height),this._rectShape1.graphics.endFill(),u.height=e.barHeight,this._rectShape2.graphics.clear();for(var l=0,p=this.prevLog.bars;l0)for(var f=0;f0?(i.waitTimer-=i.useUnscaledDeltaTime?t.Time.unscaledDeltaTime:t.Time.deltaTime,this._shouldRunNextFrame.push(i)):this.tickCoroutine(i)&&this._shouldRunNextFrame.push(i)}}this._unblockedCoroutines.length=0,this._unblockedCoroutines.concat(this._shouldRunNextFrame),this._shouldRunNextFrame.length=0,this._isInUpdate=!1},n.prototype.tickCoroutine=function(i){var n=i.enumerator.next();return!n.value||n.done?(t.Pool.free(i),!1):!n.value||(n.value instanceof t.WaitForSeconds?(i.waitTimer=n.value.waitTime,!0):n.value instanceof Number?(console.warn("协同程序检查返回一个Number类型,请不要在生产环境使用"),i.waitTimer=Number(n),!0):!(n.value instanceof e)||(i.waitForCoroutine=n.value,!0))},n}(t.GlobalManager);t.CoroutineManager=i}(es||(es={})),function(t){var e=function(){function e(){this.x=0,this.y=0,this.touchPoint=-1,this.touchDown=!1}return Object.defineProperty(e.prototype,"position",{get:function(){return new t.Vector2(this.x,this.y)},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.x=0,this.y=0,this.touchDown=!1,this.touchPoint=-1},e}();t.TouchState=e;var i=function(){function i(){}return Object.defineProperty(i,"gameTouchs",{get:function(){return this._gameTouchs},enumerable:!0,configurable:!0}),Object.defineProperty(i,"resolutionScale",{get:function(){return this._resolutionScale},enumerable:!0,configurable:!0}),Object.defineProperty(i,"totalTouchCount",{get:function(){return this._totalTouchCount},enumerable:!0,configurable:!0}),Object.defineProperty(i,"touchPosition",{get:function(){return this._gameTouchs[0]?this._gameTouchs[0].position:t.Vector2.zero},enumerable:!0,configurable:!0}),Object.defineProperty(i,"maxSupportedTouch",{get:function(){return t.Core._instance.stage.maxTouches},set:function(e){t.Core._instance.stage.maxTouches=e,this.initTouchCache()},enumerable:!0,configurable:!0}),Object.defineProperty(i,"touchPositionDelta",{get:function(){var e=t.Vector2.subtract(this.touchPosition,this._previousTouchState.position);return e.length()>0&&this.setpreviousTouchState(this._gameTouchs[0]),e},enumerable:!0,configurable:!0}),i.initialize=function(){this._init||(this._init=!0,t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_BEGIN,this.touchBegin,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_MOVE,this.touchMove,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_END,this.touchEnd,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_CANCEL,this.touchEnd,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_RELEASE_OUTSIDE,this.touchEnd,this),this.initTouchCache())},i.update=function(){KeyboardUtils.update();for(var t=0;t0,this._willRepeat||(this.isRepeating=!1)},i.prototype.update=function(){this._bufferCounter-=t.Time.unscaledDeltaTime,this.isRepeating=!1;for(var e=!1,i=0;i0||this.isRepeating)return!0;for(var t=0,e=this.nodes;ta||i[c].height>a)throw new Error("一个纹理的大小比图集的大小大");h.push(new t.Rectangle(0,0,i[c].width,i[c].height))}for(;h.length>0;){var u=new egret.RenderTexture,l=new t.RectanglePacker(a,a,1);for(c=0;c0){for(var p=new t.IntegerRectangle,d=[],f=[],g=[],y=[],m=0;m0;)this.freeRectangle(this._insertedRectangles.pop());for(;this._freeAreas.length>0;)this.freeRectangle(this._freeAreas.pop());for(this._width=t,this._height=e,this._packedWidth=0,this._packedHeight=0,this._freeAreas.push(this.allocateRectangle(0,0,this._width,this._height));this._insertedRectangles.length>0;)this.freeSize(this._insertList.pop());this._padding=i},e.prototype.insertRectangle=function(t,e,i){var n=this.allocateSize(t,e,i);this._insertList.push(n)},e.prototype.packRectangles=function(t){for(void 0===t&&(t=!0),t&&this._insertList.sort(function(t,e){return t.width-e.width});this._insertList.length>0;){var e=this._insertList.pop(),i=e.width,n=e.height,r=this.getFreeAreaIndex(i,n);if(r>=0){var o=this._freeAreas[r],s=this.allocateRectangle(o.x,o.y,i,n);for(s.id=e.id,this.generateNewFreeAreas(s,this._freeAreas,this._newFreeAreas);this._newFreeAreas.length>0;)this._freeAreas.push(this._newFreeAreas.pop());this._insertedRectangles.push(s),s.right>this._packedWidth&&(this._packedWidth=s.right),s.bottom>this._packedHeight&&(this._packedHeight=s.bottom)}this.freeSize(e)}return this.rectangleCount},e.prototype.getRectangle=function(t,e){var i=this._insertedRectangles[t];return e.x=i.x,e.y=i.y,e.width=i.width,e.height=i.height,e},e.prototype.getRectangleId=function(t){return this._insertedRectangles[t].id},e.prototype.generateNewFreeAreas=function(t,e,i){var n=t.x,r=t.y,o=t.right+1+this._padding,s=t.bottom+1+this._padding,a=null;0==this._padding&&(a=t);for(var h=e.length-1;h>=0;h--){var c=e[h];if(!(n>=c.right||o<=c.x||r>=c.bottom||s<=c.y)){null==a&&(a=this.allocateRectangle(t.x,t.y,t.width+this._padding,t.height+this._padding)),this.generateDividedAreas(a,c,i);var u=e.pop();h=0;e--)for(var i=t[e],n=t.length-1;n>=0;n--)if(e!=n){var r=t[n];if(i.x>=r.x&&i.y>=r.y&&i.right<=r.right&&i.bottom<=r.bottom){this.freeRectangle(i);var o=t.pop();e0&&(i.push(this.allocateRectangle(t.right,e.y,r,e.height)),n++);var o=t.x-e.x;o>0&&(i.push(this.allocateRectangle(e.x,e.y,o,e.height)),n++);var s=e.bottom-t.bottom;s>0&&(i.push(this.allocateRectangle(e.x,t.bottom,e.width,s)),n++);var a=t.y-e.y;a>0&&(i.push(this.allocateRectangle(e.x,e.y,e.width,a)),n++),0==n&&(t.width=0;s--){var a=this._freeAreas[s];if(a.x0){var r=this._sortableSizeStack.pop();return r.width=e,r.height=i,r.id=n,r}return new t.SortableSize(e,i,n)},e.prototype.freeSize=function(t){this._sortableSizeStack.push(t)},e.prototype.allocateRectangle=function(e,i,n,r){if(this._rectangleStack.length>0){var o=this._rectangleStack.pop();return o.x=e,o.y=i,o.width=n,o.height=r,o.right=e+n,o.bottom=i+r,o}return new t.IntegerRectangle(e,i,n,r)},e.prototype.freeRectangle=function(t){this._rectangleStack.push(t)},e}();t.RectanglePacker=e}(es||(es={})),function(t){var e=function(){return function(t,e,i){this.width=t,this.height=e,this.id=i}}();t.SortableSize=e}(es||(es={})),function(t){var e=function(){return function(t){this.assets=t}}();t.TextureAssets=e;var i=function(){return function(){}}();t.TextureAsset=i}(es||(es={})),function(t){var e=function(){return function(t,e){this.texture=t,this.id=e}}();t.TextureToPack=e}(es||(es={})),function(t){var e=function(){function e(){this._timeInSeconds=0,this._repeats=!1,this._isDone=!1,this._elapsedTime=0}return e.prototype.getContext=function(){return this.context},e.prototype.reset=function(){this._elapsedTime=0},e.prototype.stop=function(){this._isDone=!0},e.prototype.tick=function(){return!this._isDone&&this._elapsedTime>this._timeInSeconds&&(this._elapsedTime-=this._timeInSeconds,this._onTime(this),this._isDone||this._repeats||(this._isDone=!0)),this._elapsedTime+=t.Time.deltaTime,this._isDone},e.prototype.initialize=function(t,e,i,n){this._timeInSeconds=t,this._repeats=e,this.context=i,this._onTime=n},e.prototype.unload=function(){this.context=null,this._onTime=null},e}();t.Timer=e}(es||(es={})),function(t){var e=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t._timers=[],t}return __extends(i,e),i.prototype.update=function(){for(var t=this._timers.length-1;t>=0;t--)this._timers[t].tick()&&(this._timers[t].unload(),this._timers.removeAt(t))},i.prototype.schedule=function(e,i,n,r){var o=new t.Timer;return o.initialize(e,i,n,r),this._timers.push(o),o},i}(t.GlobalManager);t.TimerManager=e}(es||(es={})); \ No newline at end of file diff --git a/source/bin/framework.d.ts b/source/bin/framework.d.ts index 9fcc4b0c..ed002368 100644 --- a/source/bin/framework.d.ts +++ b/source/bin/framework.d.ts @@ -702,32 +702,6 @@ declare module es { compareTo(other: SceneComponent): number; } } -declare module es { - class CollisionState { - right: boolean; - left: boolean; - above: boolean; - below: boolean; - becameGroundedThisFrame: boolean; - wasGroundedLastFrame: boolean; - isGroundedOnOnewayPlatform: boolean; - slopAngle: number; - readonly hasCollision: boolean; - _movementRemainderX: SubpixelNumber; - _movementRemainderY: SubpixelNumber; - reset(): void; - toString(): string; - } - class TiledMapMover extends Component { - colliderHorizontalInset: number; - colliderVerticalInset: number; - _boxColliderBounds: Rectangle; - constructor(); - testCollisions(motion: Vector2, boxColliderBounds: Rectangle, collisionState: CollisionState): void; - testMapCollision(collisionRect: Rectangle, direction: Edge, collisionState: CollisionState, collisionResponse: number): void; - collisionRectForSide(side: Edge, motion: number): Rectangle; - } -} declare module es { interface ITriggerListener { onTriggerEnter(other: Collider, local: Collider): any; @@ -2447,7 +2421,7 @@ declare module es { } } declare module es { - class Ref { + class Ref { value: T; constructor(value: T); } diff --git a/source/bin/framework.js b/source/bin/framework.js index 8ba9dcbb..ab07e89e 100644 --- a/source/bin/framework.js +++ b/source/bin/framework.js @@ -3188,85 +3188,6 @@ var es; es.SceneComponent = SceneComponent; })(es || (es = {})); var es; -(function (es) { - var CollisionState = (function () { - function CollisionState() { - } - Object.defineProperty(CollisionState.prototype, "hasCollision", { - get: function () { - return this.below || this.right || this.left || this.above; - }, - enumerable: true, - configurable: true - }); - CollisionState.prototype.reset = function () { - this.becameGroundedThisFrame = this.isGroundedOnOnewayPlatform = this.right = this.left = this.above = this.below = false; - this.slopAngle = 0; - }; - CollisionState.prototype.toString = function () { - return "[CollisionState] r: " + this.right + ", l: " + this.left + ", a: " + this.above + ", b: " + this.below + ", angle: " + this.slopAngle + ", wasGroundedLastFrame: " + this.wasGroundedLastFrame + ", becameGroundedThisFrame: " + this.becameGroundedThisFrame; - }; - return CollisionState; - }()); - es.CollisionState = CollisionState; - var TiledMapMover = (function (_super) { - __extends(TiledMapMover, _super); - function TiledMapMover() { - var _this = _super.call(this) || this; - _this.colliderHorizontalInset = 2; - _this.colliderVerticalInset = 6; - return _this; - } - TiledMapMover.prototype.testCollisions = function (motion, boxColliderBounds, collisionState) { - this._boxColliderBounds = boxColliderBounds; - collisionState.wasGroundedLastFrame = collisionState.below; - collisionState.reset(); - var motionX = motion.x; - var motionY = motion.y; - if (motionX != 0) { - var direction = motionX > 0 ? es.Edge.right : es.Edge.left; - var sweptBounds = this.collisionRectForSide(direction, motionX); - var collisionResponse = 0; - if (this.testMapCollision(sweptBounds, direction, collisionState, collisionResponse)) { - motion.x = collisionResponse - es.RectangleExt.getSide(boxColliderBounds, direction); - collisionState.left = direction == es.Edge.left; - collisionState.right = direction == es.Edge.right; - collisionState._movementRemainderX.reset(); - } - else { - collisionState.left = false; - collisionState.right = false; - } - } - }; - TiledMapMover.prototype.testMapCollision = function (collisionRect, direction, collisionState, collisionResponse) { - var side = es.EdgeExt.oppositeEdge(direction); - var perpindicularPosition = es.EdgeExt.isVertical(side) ? collisionRect.center.x : collisionRect.center.y; - var leadingPosition = es.RectangleExt.getSide(collisionRect, direction); - var shouldTestSlopes = es.EdgeExt.isVertical(side); - }; - TiledMapMover.prototype.collisionRectForSide = function (side, motion) { - var bounds; - if (es.EdgeExt.isHorizontal(side)) { - bounds = es.RectangleExt.getRectEdgePortion(this._boxColliderBounds, side); - } - else { - bounds = es.RectangleExt.getHalfRect(this._boxColliderBounds, side); - } - if (es.EdgeExt.isVertical(side)) { - es.RectangleExt.contract(bounds, this.colliderHorizontalInset, 0); - } - else { - es.RectangleExt.contract(bounds, 0, this.colliderVerticalInset); - } - es.RectangleExt.expandSide(bounds, side, motion); - return bounds; - }; - return TiledMapMover; - }(es.Component)); - es.TiledMapMover = TiledMapMover; -})(es || (es = {})); -var es; (function (es) { var Mover = (function (_super) { __extends(Mover, _super); diff --git a/source/bin/framework.min.js b/source/bin/framework.min.js index cd13f762..f7b39bf8 100644 --- a/source/bin/framework.min.js +++ b/source/bin/framework.min.js @@ -1 +1 @@ -window.es={},window.__extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();var transform,__awaiter=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(r,o){function s(t){try{h(n.next(t))}catch(t){o(t)}}function a(t){try{h(n.throw(t))}catch(t){o(t)}}function h(t){t.done?r(t.value):new i(function(e){e(t.value)}).then(s,a)}h((n=n.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]-1}(this,t)},Array.prototype.firstOrDefault=function(t){return function(t,e){var i=t.findIndex(e);return-1==i?null:t[i]}(this,t)},Array.prototype.find=function(t){return function(t,e){return t.firstOrDefault(e)}(this,t)},Array.prototype.where=function(t){return function(t,e){if("function"==typeof t.reduce)return t.reduce(function(i,n,r){return e.call(arguments[2],n,r,t)&&i.push(n),i},[]);for(var i=[],n=0,r=t.length;n=0&&t.splice(i,1)}while(i>=0)}(this,t)},Array.prototype.remove=function(t){return function(t,e){var i=t.findIndex(function(t){return t===e});return i>=0&&(t.splice(i,1),!0)}(this,t)},Array.prototype.removeAt=function(t){return function(t,e){t.splice(e,1)}(this,t)},Array.prototype.removeRange=function(t,e){return function(t,e,i){t.splice(e,i)}(this,t,e)},Array.prototype.select=function(t){return function(t,e){if("function"==typeof t.reduce)return t.reduce(function(i,n,r){return i.push(e.call(arguments[2],n,r,t)),i},[]);for(var i=[],n=0,r=t.length;no?1:-1}),t}(this,t,e)},Array.prototype.orderByDescending=function(t,e){return function(t,e,i){return t.sort(function(t,n){var r=e(t),o=e(n);return i?-i(r,o):r0;){if("break"===u())break}return s?this.recontructPath(a,n,r):null},e.recontructPath=function(t,e,i){var n=[],r=i;for(n.push(i);r!=e;)r=this.getKey(t,r),n.push(r);return n.reverse(),n},e.hasKey=function(e,i){for(var n,r=e.keys();!(n=r.next()).done;){if(n.value instanceof t.Vector2&&i instanceof t.Vector2&&n.value.equals(i))return!0;if(n.value==i)return!0}return!1},e.getKey=function(e,i){for(var n,r,o=e.keys(),s=e.values();n=o.next(),r=s.next(),!n.done;){if(n.value instanceof t.Vector2&&i instanceof t.Vector2&&n.value.equals(i))return r.value;if(n.value==i)return r.value}return null},e}();t.AStarPathfinder=e;var i=function(t){function e(e){var i=t.call(this)||this;return i.data=e,i}return __extends(e,t),e}(t.PriorityQueueNode)}(es||(es={})),function(t){var e=function(){function e(e,i){this.dirs=[new t.Vector2(1,0),new t.Vector2(0,-1),new t.Vector2(-1,0),new t.Vector2(0,1)],this.walls=[],this.weightedNodes=[],this.defaultWeight=1,this.weightedNodeWeight=5,this._neighbors=new Array(4),this._width=e,this._height=i}return e.prototype.isNodeInBounds=function(t){return 0<=t.x&&t.x=this._nodes.length?(console.error("node.QueueIndex has been corrupted. Did you change it manually? Or add this node to another queue?"),!1):this._nodes[t.queueIndex]==t:(console.error("node cannot be null"),!1)},t.prototype.enqueue=function(t,e){t.priority=e,this._numNodes++,this._nodes[this._numNodes]=t,t.queueIndex=this._numNodes,t.insertionIndex=this._numNodesEverEnqueued++,this.cascadeUp(this._nodes[this._numNodes])},t.prototype.dequeue=function(){var t=this._nodes[1];return this.remove(t),t},t.prototype.remove=function(t){if(t.queueIndex==this._numNodes)return this._nodes[this._numNodes]=null,void this._numNodes--;var e=this._nodes[this._numNodes];this.swap(t,e),delete this._nodes[this._numNodes],this._numNodes--,this.onNodeUpdated(e)},t.prototype.isValidQueue=function(){for(var t=1;t0&&this.hasHigherPriority(t,i)?this.cascadeUp(t):this.cascadeDown(t)},t.prototype.cascadeDown=function(t){for(var e,i=t.queueIndex;;){e=t;var n=2*i;if(n>this._numNodes){t.queueIndex=i,this._nodes[i]=t;break}var r=this._nodes[n];this.hasHigherPriority(r,e)&&(e=r);var o=n+1;if(o<=this._numNodes){var s=this._nodes[o];this.hasHigherPriority(s,e)&&(e=s)}if(e==t){t.queueIndex=i,this._nodes[i]=t;break}this._nodes[i]=e;var a=e.queueIndex;e.queueIndex=i,i=a}},t.prototype.cascadeUp=function(t){for(var e=Math.floor(t.queueIndex/2);e>=1;){var i=this._nodes[e];if(this.hasHigherPriority(i,t))break;this.swap(t,i),e=Math.floor(t.queueIndex/2)}},t.prototype.swap=function(t,e){this._nodes[t.queueIndex]=e,this._nodes[e.queueIndex]=t;var i=t.queueIndex;t.queueIndex=e.queueIndex,e.queueIndex=i},t.prototype.hasHigherPriority=function(t,e){return t.priority0;){if("break"===h())break}return o?t.AStarPathfinder.recontructPath(a,i,n):null},e.hasKey=function(t,e){for(var i,n=t.keys();!(i=n.next()).done;)if(JSON.stringify(i.value)==JSON.stringify(e))return!0;return!1},e}();t.BreadthFirstPathfinder=e}(es||(es={})),function(t){var e=function(){function t(){this.edges=new Map}return t.prototype.addEdgesForNode=function(t,e){return this.edges.set(t,e),this},t.prototype.getNeighbors=function(t){return this.edges.get(t)},t}();t.UnweightedGraph=e}(es||(es={})),function(t){var e=function(){function e(t,e){this.x=0,this.y=0,this.x=t||0,this.y=null!=e?e:this.x}return Object.defineProperty(e,"zero",{get:function(){return new e(0,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"one",{get:function(){return new e(1,1)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"unitX",{get:function(){return new e(1,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"unitY",{get:function(){return new e(0,1)},enumerable:!0,configurable:!0}),e.add=function(t,i){var n=new e(0,0);return n.x=t.x+i.x,n.y=t.y+i.y,n},e.divide=function(t,i){var n=new e(0,0);return n.x=t.x/i.x,n.y=t.y/i.y,n},e.multiply=function(t,i){var n=new e(0,0);return n.x=t.x*i.x,n.y=t.y*i.y,n},e.subtract=function(t,i){var n=new e(0,0);return n.x=t.x-i.x,n.y=t.y-i.y,n},e.normalize=function(t){var i=new e(t.x,t.y),n=1/Math.sqrt(i.x*i.x+i.y*i.y);return i.x*=n,i.y*=n,i},e.dot=function(t,e){return t.x*e.x+t.y*e.y},e.distanceSquared=function(t,e){var i=t.x-e.x,n=t.y-e.y;return i*i+n*n},e.clamp=function(i,n,r){return new e(t.MathHelper.clamp(i.x,n.x,r.x),t.MathHelper.clamp(i.y,n.y,r.y))},e.lerp=function(i,n,r){return new e(t.MathHelper.lerp(i.x,n.x,r),t.MathHelper.lerp(i.y,n.y,r))},e.transform=function(t,i){return new e(t.x*i.m11+t.y*i.m21+i.m31,t.x*i.m12+t.y*i.m22+i.m32)},e.distance=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)},e.angle=function(i,n){return i=e.normalize(i),n=e.normalize(n),Math.acos(t.MathHelper.clamp(e.dot(i,n),-1,1))*t.MathHelper.Rad2Deg},e.negate=function(t){return t.x=-t.x,t.y=-t.y,t},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.divide=function(t){return this.x/=t.x,this.y/=t.y,this},e.prototype.multiply=function(t){return this.x*=t.x,this.y*=t.y,this},e.prototype.subtract=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.normalize=function(){var t=1/Math.sqrt(this.x*this.x+this.y*this.y);this.x*=t,this.y*=t},e.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lengthSquared=function(){return this.x*this.x+this.y*this.y},e.prototype.round=function(){return new e(Math.round(this.x),Math.round(this.y))},e.prototype.equals=function(t){return t instanceof e&&(t.x==this.x&&t.y==this.y)},e}();t.Vector2=e}(es||(es={})),function(t){var e=function(){function e(t,i,n){void 0===n&&(n=!1),this.walls=[],this._neighbors=new Array(4),this._width=t,this._hegiht=i,this._dirs=n?e.COMPASS_DIRS:e.CARDINAL_DIRS}return e.prototype.isNodeInBounds=function(t){return 0<=t.x&&t.x0;){if("break"===u())break}return s?this.recontructPath(a,n,r):null},i.recontructPath=function(t,e,i){var n=[],r=i;for(n.push(i);r!=e;)r=this.getKey(t,r),n.push(r);return n.reverse(),n},i.hasKey=function(t,e){for(var i,n=t.keys();!(i=n.next()).done;)if(JSON.stringify(i.value)==JSON.stringify(e))return!0;return!1},i.getKey=function(t,e){for(var i,n,r=t.keys(),o=t.values();i=r.next(),n=o.next(),!i.done;)if(JSON.stringify(i.value)==JSON.stringify(e))return n.value;return null},i}();t.WeightedPathfinder=i}(es||(es={})),function(t){var e=function(){function e(){this._opened=new Array(e.MAX_NODES),this._closed=new Array(e.MAX_NODES)}return e.prototype.clear=function(){for(var e=0;e0},e.prototype.removeOpened=function(t){this._numOpened>0&&(this._opened[this._lastFoundOpened]=this._opened[this._numOpened-1]),this._numOpened--},e.prototype.removeClosed=function(t){this._numClosed>0&&(this._closed[this._lastFoundClosed]=this._closed[this._numClosed-1]),this._numClosed--},e.prototype.isOpen=function(t){return this._opened.indexOf(t)>-1},e.prototype.isClosed=function(t){return this._closed.indexOf(t)>-1},e.prototype.addToOpenList=function(t){this._opened[this._numOpened++]=t},e.prototype.addToClosedList=function(t){this._closed[this._numClosed++]=t},e.prototype.removeCheapestOpenNode=function(){var t=Number.MAX_VALUE;this._lastFoundOpened=-1;for(var e=0;e-1?e:(this._actions.push(t),this._actions.length-1)},e.MAX_CONDITIONS=64,e}();t.ActionPlanner=e}(es||(es={})),function(t){var e=function(){function e(){this._planner=new t.ActionPlanner}return e.prototype.plan=function(e){void 0===e&&(e=!1);var i=null;if(e&&(i=[]),this.actions=this._planner.plan(this.getWorldState(),this.getGoalState(),i),null!=i&&i.length>0){console.log("---- ActionPlanner plan ----"),console.log("plan cost = "+i[i.length-1].costSoFar),console.log(" start\t"+this.getWorldState().describe(this._planner));for(var n=0;n0},e}();t.Agent=e}(es||(es={})),function(t){var e=function(){function e(t,e,i){this.planner=t,this.values=e,this.dontCare=i}return e.create=function(t){return new e(t,0,-1)},e.prototype.set=function(t,e){return"string"==typeof t?this.set(this.planner.findConditionNameIndex(t),e):(this.values=e?this.values|1<0&&(i+=", "),i+=o?r.toUpperCase():r}return i},e}();t.WorldState=e}(es||(es={})),function(t){var e=function(e){function i(){var n=e.call(this)||this;return n._globalManagers=[],n._coroutineManager=new t.CoroutineManager,n._timerManager=new t.TimerManager,n._frameCounterElapsedTime=0,n._frameCounter=0,i._instance=n,i.emitter=new t.Emitter,i.content=new t.ContentManager,n.addEventListener(egret.Event.ADDED_TO_STAGE,n.onAddToStage,n),i.registerGlobalManager(n._coroutineManager),i.registerGlobalManager(n._timerManager),n}return __extends(i,e),Object.defineProperty(i,"Instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),Object.defineProperty(i,"scene",{get:function(){return this._instance?this._instance._scene:null},set:function(t){t?null==this._instance._scene?(this._instance.addChild(t),this._instance._scene=t,this._instance._scene.begin(),i.Instance.onSceneChanged()):this._instance._nextScene=t:console.error("场景不能为空")},enumerable:!0,configurable:!0}),i.startSceneTransition=function(t){if(!this._instance._sceneTransition)return this._instance._sceneTransition=t,t;console.warn("在前一个场景完成之前,不能开始一个新的场景转换。")},i.registerGlobalManager=function(t){this._instance._globalManagers.push(t),t.enabled=!0},i.unregisterGlobalManager=function(t){this._instance._globalManagers.remove(t),t.enabled=!1},i.getGlobalManager=function(t){for(var e=0;e=1&&(this._frameCounter=0,this._frameCounterElapsedTime-=1)},i.prototype.endDebugDraw=function(){t.TimeRuler.Instance.endMark("draw"),t.TimeRuler.Instance.render()},i.prototype.onSceneChanged=function(){i.emitter.emit(t.CoreEvents.SceneChanged),t.Time.sceneChanged()},i.prototype.onGraphicsDeviceReset=function(){i.emitter.emit(t.CoreEvents.GraphicsDeviceReset)},i.prototype.initialize=function(){t.Graphics.Instance=new t.Graphics},i.prototype.update=function(){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(i){switch(i.label){case 0:if(t.Time.update(egret.getTimer()),t.Input.update(),!this._scene)return[3,2];for(e=this._globalManagers.length-1;e>=0;e--)this._globalManagers[e].enabled&&this._globalManagers[e].update();return this._sceneTransition&&(!this._sceneTransition||this._sceneTransition.loadsNewScene&&!this._sceneTransition.isNewSceneLoaded)||this._scene.update(),this._nextScene?(this._scene.parent&&this._scene.parent.removeChild(this._scene),this._scene.end(),this._scene=this._nextScene,this._nextScene=null,this.onSceneChanged(),[4,this._scene.begin()]):[3,2];case 1:i.sent(),this.addChild(this._scene),i.label=2;case 2:return[4,this.draw()];case 3:return i.sent(),[2]}})})},i.prototype.onAddToStage=function(){i.graphicsDevice=new t.GraphicsDevice,this.addEventListener(egret.Event.RESIZE,this.onGraphicsDeviceReset,this),this.addEventListener(egret.StageOrientationEvent.ORIENTATION_CHANGE,this.onOrientationChanged,this),this.addEventListener(egret.Event.ENTER_FRAME,this.update,this),t.Input.initialize(),KeyboardUtils.init(),this.initialize()},i.debugRenderEndabled=!1,i}(egret.DisplayObjectContainer);t.Core=e}(es||(es={})),function(t){var e=function(){function t(){}return t.renderableBounds=16776960,t.renderableCenter=10040012,t.colliderBounds=5592405,t.colliderEdge=9109504,t.colliderPosition=16776960,t.colliderCenter=16711680,t}();t.Colors=e;var i=function(){function e(){}return Object.defineProperty(e,"lineSizeMultiplier",{get:function(){return Math.max(Math.ceil(t.Core.scene.x/t.Core.scene.width),1)},enumerable:!0,configurable:!0}),e}();t.Size=i;var n=function(){function e(){}return e.drawHollowRect=function(e,i,n){void 0===n&&(n=0),this._debugDrawItems.push(new t.DebugDrawItem(e,i,n))},e.render=function(){if(this._debugDrawItems.length>0){var e=new egret.Shape;t.Core.scene&&t.Core.scene.addChild(e);for(var i=this._debugDrawItems.length-1;i>=0;i--){this._debugDrawItems[i].draw(e)&&this._debugDrawItems.removeAt(i)}}},e._debugDrawItems=[],e}();t.Debug=n}(es||(es={})),function(t){var e=function(){function t(){}return t.verletParticle=14431326,t.verletConstraintEdge=4406838,t}();t.DebugDefaults=e}(es||(es={})),function(t){var e;!function(t){t[t.line=0]="line",t[t.hollowRectangle=1]="hollowRectangle",t[t.pixel=2]="pixel",t[t.text=3]="text"}(e=t.DebugDrawType||(t.DebugDrawType={}));var i=function(){function i(t,i,n){this.rectangle=t,this.color=i,this.duration=n,this.drawType=e.hollowRectangle}return i.prototype.draw=function(i){switch(this.drawType){case e.line:case e.hollowRectangle:case e.pixel:case e.text:}return this.duration-=t.Time.deltaTime,this.duration<0},i}();t.DebugDrawItem=i}(es||(es={})),function(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.updateInterval=1,e.debugDisplayObject=new egret.DisplayObjectContainer,e._enabled=!0,e._updateOrder=0,e}return __extends(e,t),Object.defineProperty(e.prototype,"transform",{get:function(){return this.entity.transform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.entity?this.entity.enabled&&this._enabled:this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOrder",{get:function(){return this._updateOrder},set:function(t){this.setUpdateOrder(t)},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){},e.prototype.onAddedToEntity=function(){},e.prototype.onRemovedFromEntity=function(){},e.prototype.onEntityTransformChanged=function(t){},e.prototype.debugRender=function(t){},e.prototype.onEnabled=function(){},e.prototype.onDisabled=function(){},e.prototype.update=function(){},e.prototype.setEnabled=function(t){return this._enabled!=t&&(this._enabled=t,this._enabled?this.onEnabled():this.onDisabled()),this},e.prototype.setUpdateOrder=function(t){return this._updateOrder!=t&&(this._updateOrder=t),this},e}(egret.HashObject);t.Component=e}(es||(es={})),function(t){!function(t){t[t.GraphicsDeviceReset=0]="GraphicsDeviceReset",t[t.SceneChanged=1]="SceneChanged",t[t.OrientationChanged=2]="OrientationChanged"}(t.CoreEvents||(t.CoreEvents={}))}(es||(es={})),function(t){var e=function(){function e(i){this.updateInterval=1,this._tag=0,this._enabled=!0,this._updateOrder=0,this.components=new t.ComponentList(this),this.transform=new t.Transform(this),this.name=i,this.id=e._idGenerator++,this.componentBits=new t.BitSet}return Object.defineProperty(e.prototype,"isDestroyed",{get:function(){return this._isDestroyed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tag",{get:function(){return this._tag},set:function(t){this.setTag(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOrder",{get:function(){return this._updateOrder},set:function(t){this.setUpdateOrder(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this.transform.parent},set:function(t){this.transform.setParent(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childCount",{get:function(){return this.transform.childCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.transform.position},set:function(t){this.transform.setPosition(t.x,t.y)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localPosition",{get:function(){return this.transform.localPosition},set:function(t){this.transform.setLocalPosition(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(t){this.transform.setRotation(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDegrees",{get:function(){return this.transform.rotationDegrees},set:function(t){this.transform.setRotationDegrees(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localRotation",{get:function(){return this.transform.localRotation},set:function(t){this.transform.setLocalRotation(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localRotationDegrees",{get:function(){return this.transform.localRotationDegrees},set:function(t){this.transform.setLocalRotationDegrees(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this.transform.scale},set:function(t){this.transform.setScale(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localScale",{get:function(){return this.transform.localScale},set:function(t){this.transform.setLocalScale(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"worldInverseTransform",{get:function(){return this.transform.worldInverseTransform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localToWorldTransform",{get:function(){return this.transform.localToWorldTransform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"worldToLocalTransform",{get:function(){return this.transform.worldToLocalTransform},enumerable:!0,configurable:!0}),e.prototype.onTransformChanged=function(t){this.components.onEntityTransformChanged(t)},e.prototype.setTag=function(t){return this._tag!=t&&(this.scene&&this.scene.entities.removeFromTagList(this),this._tag=t,this.scene&&this.scene.entities.addToTagList(this)),this},e.prototype.setEnabled=function(t){return this._enabled!=t&&(this._enabled=t,this._enabled?this.components.onEntityEnabled():this.components.onEntityDisabled()),this},e.prototype.setUpdateOrder=function(t){if(this._updateOrder!=t)return this._updateOrder=t,this.scene&&(this.scene.entities.markEntityListUnsorted(),this.scene.entities.markTagUnsorted(this.tag)),this},e.prototype.destroy=function(){this._isDestroyed=!0,this.scene.entities.remove(this),this.transform.parent=null;for(var t=this.transform.childCount-1;t>=0;t--){this.transform.getChild(t).entity.destroy()}},e.prototype.detachFromScene=function(){this.scene.entities.remove(this),this.components.deregisterAllComponents();for(var t=0;t=0;t--)this._sceneComponents[t].enabled&&this._sceneComponents[t].update();this.entityProcessors&&this.entityProcessors.update(),this.entities.update(),this.entityProcessors&&this.entityProcessors.lateUpdate(),this.renderableComponents.updateList()},i.prototype.render=function(){if(0!=this._renderers.length)for(var t=0;te.x?-1:1,n=t.Vector2.normalize(t.Vector2.subtract(this.position,e));this.rotation=i*Math.acos(t.Vector2.dot(n,t.Vector2.unitY))},n.prototype.setLocalRotation=function(t){return this._localRotation=t,this._localDirty=this._positionDirty=this._localPositionDirty=this._localRotationDirty=this._localScaleDirty=!0,this.setDirty(e.rotationDirty),this},n.prototype.setLocalRotationDegrees=function(e){return this.setLocalRotation(t.MathHelper.toRadians(e))},n.prototype.setScale=function(e){return this._scale=e,this.parent?this.localScale=t.Vector2.divide(e,this.parent._scale):this.localScale=e,this},n.prototype.setLocalScale=function(t){return this._localScale=t,this._localDirty=this._positionDirty=this._localScaleDirty=!0,this.setDirty(e.scaleDirty),this},n.prototype.roundPosition=function(){this.position=this._position.round()},n.prototype.updateTransform=function(){this.hierarchyDirty!=e.clean&&(this.parent&&this.parent.updateTransform(),this._localDirty&&(this._localPositionDirty&&(this._translationMatrix=t.Matrix2D.create().translate(this._localPosition.x,this._localPosition.y),this._localPositionDirty=!1),this._localRotationDirty&&(this._rotationMatrix=t.Matrix2D.create().rotate(this._localRotation),this._localRotationDirty=!1),this._localScaleDirty&&(this._scaleMatrix=t.Matrix2D.create().scale(this._localScale.x,this._localScale.y),this._localScaleDirty=!1),this._localTransform=this._scaleMatrix.multiply(this._rotationMatrix),this._localTransform=this._localTransform.multiply(this._translationMatrix),this.parent||(this._worldTransform=this._localTransform,this._rotation=this._localRotation,this._scale=this._localScale,this._worldInverseDirty=!0),this._localDirty=!1),this.parent&&(this._worldTransform=this._localTransform.multiply(this.parent._worldTransform),this._rotation=this._localRotation+this.parent._rotation,this._scale=t.Vector2.multiply(this.parent._scale,this._localScale),this._worldInverseDirty=!0),this._worldToLocalDirty=!0,this._positionDirty=!0,this.hierarchyDirty=e.clean)},n.prototype.setDirty=function(e){if(0==(this.hierarchyDirty&e)){switch(this.hierarchyDirty|=e,e){case t.DirtyType.positionDirty:this.entity.onTransformChanged(transform.Component.position);break;case t.DirtyType.rotationDirty:this.entity.onTransformChanged(transform.Component.rotation);break;case t.DirtyType.scaleDirty:this.entity.onTransformChanged(transform.Component.scale)}this._children||(this._children=[]);for(var i=0;it&&(this._zoom=t),this._maximumZoom=t,this;console.error("maximumZoom must be greater than zero")},i.prototype.forceMatrixUpdate=function(){this._areMatrixedDirty=!0},i.prototype.onEntityTransformChanged=function(t){this._areMatrixedDirty=!0},i.prototype.zoomIn=function(t){this.zoom+=t},i.prototype.zoomOut=function(t){this.zoom-=t},i.prototype.worldToScreenPoint=function(e){return this.updateMatrixes(),t.Vector2Ext.transformR(e,this._transformMatrix,e),e},i.prototype.screenToWorldPoint=function(e){return this.updateMatrixes(),t.Vector2Ext.transformR(e,this._inverseTransformMatrix,e),e},i.prototype.onSceneRenderTargetSizeChanged=function(e,i){this._isProjectionMatrixDirty=!0;var n=this._origin;this.origin=new t.Vector2(e/2,i/2),this.entity.transform.position.add(t.Vector2.subtract(this._origin,n))},i.prototype.mouseToWorldPoint=function(){return this.screenToWorldPoint(t.Input.touchPosition)},i.prototype.updateMatrixes=function(){var e;this._areMatrixedDirty&&(this._transformMatrix=t.Matrix2D.create().translate(-this.entity.transform.position.x,-this.entity.transform.position.y),1!=this._zoom&&(e=t.Matrix2D.create().scale(this._zoom,this._zoom),this._transformMatrix=this._transformMatrix.multiply(e)),0!=this.entity.transform.rotation&&(e=t.Matrix2D.create().rotate(this.entity.transform.rotation),this._transformMatrix=this._transformMatrix.multiply(e)),e=t.Matrix2D.create().translate(Math.floor(this._origin.x),Math.floor(this._origin.y)),this._transformMatrix=this._transformMatrix.multiply(e),this._inverseTransformMatrix=this._transformMatrix.invert(),this._areBoundsDirty=!0,this._areMatrixedDirty=!1)},i}(t.Component);t.Camera=e}(es||(es={})),function(t){var e=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._shakeDirection=t.Vector2.zero,i._shakeOffset=t.Vector2.zero,i._shakeIntensity=0,i._shakeDegredation=.95,i}return __extends(i,e),i.prototype.shake=function(e,i,n){void 0===e&&(e=15),void 0===i&&(i=.9),void 0===n&&(n=t.Vector2.zero),this.enabled=!0,this._shakeIntensity=1)&&(i=.95),this._shakeDegredation=i)},i.prototype.update=function(){Math.abs(this._shakeIntensity)>0&&(this._shakeOffset=this._shakeDirection,0!=this._shakeOffset.x||0!=this._shakeOffset.y?this._shakeOffset.normalize():(this._shakeOffset.x=this._shakeOffset.x+Math.random()-.5,this._shakeOffset.y=this._shakeOffset.y+Math.random()-.5),this._shakeOffset.multiply(new t.Vector2(this._shakeIntensity)),this._shakeIntensity*=-this._shakeDegredation,Math.abs(this._shakeIntensity)<=.01&&(this._shakeIntensity=0,this.enabled=!1)),this.entity.scene.camera.position.add(this._shakeOffset)},i}(t.Component);t.CameraShake=e}(es||(es={})),function(t){var e=function(){function t(t){this._type=t,this._cache=[]}return t.prototype.obtain=function(){try{return this._cache.length>0?this._cache.shift():new this._type}catch(t){throw new Error(this._type+t)}},t.prototype.free=function(t){t.reset(),this._cache.push(t)},t}();t.ComponentPool=e}(es||(es={})),function(t){var e;!function(t){t[t.lockOn=0]="lockOn",t[t.cameraWindow=1]="cameraWindow"}(e=t.CameraStyle||(t.CameraStyle={}));var i=function(i){function n(n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=e.lockOn);var s=i.call(this)||this;return s.followLerp=.1,s.deadzone=new t.Rectangle,s.focusOffset=t.Vector2.zero,s.mapLockEnabled=!1,s.mapSize=new t.Rectangle,s._desiredPositionDelta=new t.Vector2,s._worldSpaceDeadZone=new t.Rectangle,s.rectShape=new egret.Shape,s._targetEntity=n,s._cameraStyle=o,s.camera=r,s}return __extends(n,i),n.prototype.onAddedToEntity=function(){this.camera||(this.camera=this.entity.scene.camera),this.follow(this._targetEntity,this._cameraStyle),t.Core.emitter.addObserver(t.CoreEvents.GraphicsDeviceReset,this.onGraphicsDeviceReset,this)},n.prototype.onGraphicsDeviceReset=function(){t.Core.schedule(0,!1,this,function(t){var e=t.context;e.follow(e._targetEntity,e._cameraStyle)})},n.prototype.update=function(){var e=t.Vector2.multiply(this.camera.bounds.size,new t.Vector2(.5));this._worldSpaceDeadZone.x=this.camera.position.x-e.x*t.Core.scene.scaleX+this.deadzone.x+this.focusOffset.x,this._worldSpaceDeadZone.y=this.camera.position.y-e.y*t.Core.scene.scaleY+this.deadzone.y+this.focusOffset.y,this._worldSpaceDeadZone.width=this.deadzone.width,this._worldSpaceDeadZone.height=this.deadzone.height,this._targetEntity&&this.updateFollow(),this.camera.position=t.Vector2.lerp(this.camera.position,t.Vector2.add(this.camera.position,this._desiredPositionDelta),this.followLerp),this.entity.transform.roundPosition(),this.mapLockEnabled&&(this.camera.position=this.clampToMapSize(this.camera.position),this.entity.transform.roundPosition())},n.prototype.debugRender=function(t){this.rectShape||this.debugDisplayObject.addChild(this.rectShape),this.rectShape.graphics.clear(),this._cameraStyle==e.lockOn?(this.rectShape.graphics.beginFill(9109504,0),this.rectShape.graphics.lineStyle(1,9109504),this.rectShape.graphics.drawRect(this._worldSpaceDeadZone.x-5-t.bounds.x,this._worldSpaceDeadZone.y-5-t.bounds.y,this._worldSpaceDeadZone.width,this._worldSpaceDeadZone.height),this.rectShape.graphics.endFill()):(this.rectShape.graphics.beginFill(9109504,0),this.rectShape.graphics.lineStyle(1,9109504),this.rectShape.graphics.drawRect(this._worldSpaceDeadZone.x-t.bounds.x,this._worldSpaceDeadZone.y-t.bounds.y,this._worldSpaceDeadZone.width,this._worldSpaceDeadZone.height),this.rectShape.graphics.endFill())},n.prototype.clampToMapSize=function(e){var i=t.Vector2.multiply(this.camera.bounds.size,new t.Vector2(.5)).add(new t.Vector2(this.mapSize.x,this.mapSize.y)),n=new t.Vector2(this.mapSize.width-i.x,this.mapSize.height-i.y);return t.Vector2.clamp(e,i,n)},n.prototype.follow=function(i,n){void 0===n&&(n=e.cameraWindow),this._targetEntity=i,this._cameraStyle=n;var r=this.camera.bounds;switch(this._cameraStyle){case e.cameraWindow:var o=r.width/6,s=r.height/3;this.deadzone=new t.Rectangle((r.width-o)/2,(r.height-s)/2,o,s);break;case e.lockOn:this.deadzone=new t.Rectangle(r.width/2,r.height/2,10,10)}},n.prototype.updateFollow=function(){if(this._desiredPositionDelta.x=this._desiredPositionDelta.y=0,this._cameraStyle==e.lockOn){var i=this._targetEntity.transform.position.x,n=this._targetEntity.transform.position.y;this._worldSpaceDeadZone.x>i?this._desiredPositionDelta.x=i-this._worldSpaceDeadZone.x:this._worldSpaceDeadZone.xn&&(this._desiredPositionDelta.y=n-this._worldSpaceDeadZone.y)}else{if(!this._targetCollider&&(this._targetCollider=this._targetEntity.getComponent(t.Collider),!this._targetCollider))return;var r=this._targetEntity.getComponent(t.Collider).bounds;this._worldSpaceDeadZone.containsRect(r)||(this._worldSpaceDeadZone.left>r.left?this._desiredPositionDelta.x=r.left-this._worldSpaceDeadZone.left:this._worldSpaceDeadZone.rightr.top&&(this._desiredPositionDelta.y=r.top-this._worldSpaceDeadZone.top))}},n.prototype.setCenteredDeadzone=function(e,i){if(this.camera){var n=this.camera.bounds;this.deadzone=new t.Rectangle((n.width-e)/2,(n.height-i)/2,e,i)}else console.error("相机是null。我们不能得到它的边界。请等到该组件添加到实体之后")},n}(t.Component);t.FollowCamera=i}(es||(es={})),function(t){var e=function(){function t(){}return t.prototype.compare=function(t,e){return t.updateOrder-e.updateOrder},t}();t.IUpdatableComparer=e}(es||(es={})),function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(t.Component);t.PooledComponent=e}(es||(es={})),function(t){var e=function(){function e(){this.updateOrder=0,this._enabled=!0}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),e.prototype.onEnabled=function(){},e.prototype.onDisabled=function(){},e.prototype.onRemovedFromScene=function(){},e.prototype.update=function(){},e.prototype.setEnabled=function(t){return this._enabled!=t&&(this._enabled=t,this._enabled),this},e.prototype.setUpdateOrder=function(e){return this.updateOrder!=e&&(this.updateOrder=e,t.Core.scene._sceneComponents.sort(this.compareTo)),this},e.prototype.compareTo=function(t){return this.updateOrder-t.updateOrder},e}();t.SceneComponent=e}(es||(es={})),function(t){var e=function(){function t(){}return Object.defineProperty(t.prototype,"hasCollision",{get:function(){return this.below||this.right||this.left||this.above},enumerable:!0,configurable:!0}),t.prototype.reset=function(){this.becameGroundedThisFrame=this.isGroundedOnOnewayPlatform=this.right=this.left=this.above=this.below=!1,this.slopAngle=0},t.prototype.toString=function(){return"[CollisionState] r: "+this.right+", l: "+this.left+", a: "+this.above+", b: "+this.below+", angle: "+this.slopAngle+", wasGroundedLastFrame: "+this.wasGroundedLastFrame+", becameGroundedThisFrame: "+this.becameGroundedThisFrame},t}();t.CollisionState=e;var i=function(e){function i(){var t=e.call(this)||this;return t.colliderHorizontalInset=2,t.colliderVerticalInset=6,t}return __extends(i,e),i.prototype.testCollisions=function(e,i,n){this._boxColliderBounds=i,n.wasGroundedLastFrame=n.below,n.reset();var r=e.x;e.y;if(0!=r){var o=r>0?t.Edge.right:t.Edge.left,s=this.collisionRectForSide(o,r);this.testMapCollision(s,o,n,0)?(e.x=0-t.RectangleExt.getSide(i,o),n.left=o==t.Edge.left,n.right=o==t.Edge.right,n._movementRemainderX.reset()):(n.left=!1,n.right=!1)}},i.prototype.testMapCollision=function(e,i,n,r){var o=t.EdgeExt.oppositeEdge(i);t.EdgeExt.isVertical(o)?e.center.x:e.center.y,t.RectangleExt.getSide(e,i),t.EdgeExt.isVertical(o)},i.prototype.collisionRectForSide=function(e,i){var n;return n=t.EdgeExt.isHorizontal(e)?t.RectangleExt.getRectEdgePortion(this._boxColliderBounds,e):t.RectangleExt.getHalfRect(this._boxColliderBounds,e),t.EdgeExt.isVertical(e)?t.RectangleExt.contract(n,this.colliderHorizontalInset,0):t.RectangleExt.contract(n,0,this.colliderVerticalInset),t.RectangleExt.expandSide(n,e,i),n},i}(t.Component);t.TiledMapMover=i}(es||(es={})),function(t){var e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),i.prototype.onAddedToEntity=function(){this._triggerHelper=new t.ColliderTriggerHelper(this.entity)},i.prototype.calculateMovement=function(e,i){if(!this.entity.getComponent(t.Collider)||!this._triggerHelper)return!1;for(var n=this.entity.getComponents(t.Collider),r=0;r=2){this.polygonShape.graphics.beginFill(t.Colors.colliderEdge,0),this.polygonShape.graphics.lineStyle(t.Size.lineSizeMultiplier,t.Colors.colliderEdge);for(var n=0;no||this._loopMode==e.pingPongOnce&&s>2*o)return this.animationState=i.completed,this._elapsedTime=0,this.currentFrame=0,void(this.displayObject.texture=n.sprites[this.currentFrame].texture2D);var a=Math.floor(s/r),h=n.sprites.length;if(h>2&&(this._loopMode==e.pingPong||this._loopMode==e.pingPongOnce)){var c=h-1;this.currentFrame=c-Math.abs(c-a%(2*c))}else this.currentFrame=a%h;this.displayObject.texture=n.sprites[this.currentFrame].texture2D}},r.prototype.addAnimation=function(t,e){return!this.sprite&&e.sprites.length>0&&this.setSprite(e.sprites[0]),this._animations[t]=e,this},r.prototype.play=function(t,n){void 0===n&&(n=null),this.currentAnimation=this._animations[t],this.currentAnimationName=t,this.currentFrame=0,this.animationState=i.running,this.displayObject.texture=this.currentAnimation.sprites[0].texture2D,this._elapsedTime=0,this._loopMode=n||e.loop},r.prototype.isAnimationActive=function(t){return this.currentAnimation&&this.currentAnimationName==t},r.prototype.pause=function(){this.animationState=i.paused},r.prototype.unPause=function(){this.animationState=i.running},r.prototype.stop=function(){this.currentAnimation=null,this.currentAnimationName=null,this.currentFrame=0,this.animationState=i.none},r}(t.SpriteRenderer);t.SpriteAnimator=n}(es||(es={})),function(t){var e=egret.Bitmap,i=function(i){function n(e){void 0===e&&(e=null);var n=i.call(this)||this;n.displayObject=new egret.DisplayObjectContainer,n.displayObjectCache=new Map;for(var r=0,o=e;r>6;0!=(e&t.LONG_MASK)&&i++,this._bits=new Array(i)}return t.prototype.and=function(t){for(var e,i=Math.min(this._bits.length,t._bits.length),n=0;n=0;)this._bits[e]&=~t._bits[e]},t.prototype.cardinality=function(){for(var t=0,e=this._bits.length-1;e>=0;e--){var i=this._bits[e];if(0!=i)if(-1!=i){var n=((i=((i=(i>>1&0x5555555555555400)+(0x5555555555555400&i))>>2&0x3333333333333400)+(0x3333333333333400&i))>>32)+i;t+=((n=((n=(n>>4&252645135)+(252645135&n))>>8&16711935)+(16711935&n))>>16&65535)+(65535&n)}else t+=64}return t},t.prototype.clear=function(t){if(null!=t){var e=t>>6;this.ensure(e),this._bits[e]&=~(1<>6;return!(e>=this._bits.length)&&0!=(this._bits[e]&1<=0;)if(0!=(this._bits[e]&t._bits[e]))return!0;return!1},t.prototype.isEmpty=function(){for(var t=this._bits.length-1;t>=0;t--)if(this._bits[t])return!1;return!0},t.prototype.nextSetBit=function(t){for(var e=t>>6,i=1<>6;this.ensure(i),this._bits[i]|=1<=this._bits.length){var e=new Number[t+1];e=this._bits.copyWithin(0,0,this._bits.length),this._bits=e}},t.LONG_MASK=63,t}();t.BitSet=e}(es||(es={})),function(t){var e=function(){function e(e){this._components=new t.FastList,this._componentsToAdd=[],this._componentsToRemove=[],this._tempBufferList=[],this._entity=e}return Object.defineProperty(e.prototype,"count",{get:function(){return this._components.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._components.buffer},enumerable:!0,configurable:!0}),e.prototype.markEntityListUnsorted=function(){this._isComponentListUnsorted=!0},e.prototype.add=function(t){this._componentsToAdd.push(t)},e.prototype.remove=function(t){this._componentsToRemove.contains(t)&&console.warn("您正在尝试删除一个您已经删除的组件("+t+")"),this._componentsToAdd.contains(t)?this._componentsToAdd.remove(t):this._componentsToRemove.push(t)},e.prototype.removeAllComponents=function(){for(var t=0;t0){for(var i=0;i0){i=0;for(var n=this._componentsToAdd.length;i0){for(var e=0,i=this._entitiesToRemove;e0;){(n=this._addToSceneEntityList.shift()).onAddedToScene()}if(this._entitiesToAdded.length>0)if(this.frameAllocate&&this._entitiesToAdded.length>this.maxAllocate){for(var r=0;r0;)this.perEntityAddToScene();this._isEntityListUnsorted=!0}this._isEntityListUnsorted&&(this._entities.sort(function(t,e){return t.compareTo(e)}),this._isEntityListUnsorted=!1),0==this._addToSceneEntityList.length&&this._unsortedTags.size>0&&(this._unsortedTags.forEach(function(e){t._entityDict.get(e).sort(function(t,e){return t.compareTo(e)})}),this._unsortedTags.clear())},e.prototype.perEntityAddToScene=function(){var t=this._entitiesToAdded.shift();this._addToSceneEntityList.push(t),-1==this._entities.findIndex(function(e){return e.id==t.id})&&(this._entities.push(t),t.scene=this.scene,this.addToTagList(t),this.scene.entityProcessors.onEntityAdded(t))},e.prototype.findEntity=function(t){for(var e=0;ethis._buckets.length){this._buckets=new Array(t.HashHelpers.expandPrime(this._collisions)),this._collisions=0;for(var l=0;l=e?t%e:t},e}();t.FasterDictionary=e;var i=function(){return function(t,e,i){void 0===i&&(i=-1),this.key=t,this.hashcode=e,this.previous=i,this.next=-1}}();t.FastNode=i}(es||(es={})),function(t){var e=function(){function e(t){void 0===t&&(t=5),this.length=0,this.buffer=new Array(t)}return e.prototype.clear=function(){this.buffer.length=0,this.length=0},e.prototype.reset=function(){this.length=0},e.prototype.add=function(t){this.length==this.buffer.length&&(this.buffer.length=Math.max(this.buffer.length<<1,10)),this.buffer[this.length++]=t},e.prototype.remove=function(e){for(var i=t.EqualityComparer.default(),n=0;n=this.length)throw new Error("index超出范围!");this.length--,this.buffer.removeAt(t)},e.prototype.contains=function(e){for(var i=t.EqualityComparer.default(),n=0;n=this.buffer.length&&(this.buffer.length=Math.max(this.buffer.length<<1,this.length+t))},e.prototype.addRange=function(t){for(var e=0,i=t;e=t)return i}for(e=1|t;ethis.maxPrimeArrayLength&&this.maxPrimeArrayLength>t?this.maxPrimeArrayLength:this.getPrime(e)},t.getHashCode=function(t){var e,i=0;if(0==(e="object"==typeof t?JSON.stringify(t):t.toString()).length)return i;for(var n=0;n=0;e=this.allSet.nextSetBit(e+1))if(!t.componentBits.get(e))return!1;return!(!this.exclusionSet.isEmpty()&&this.exclusionSet.intersects(t.componentBits))&&!(!this.oneSet.isEmpty()&&!this.oneSet.intersects(t.componentBits))},e.prototype.all=function(){for(var e=this,i=[],n=0;n0){for(var t=0,i=this._unsortedRenderLayers.length;t=e)return t;var n=!1;"-"==t.substr(0,1)&&(n=!0,t=t.substr(1));for(var r=e-i,o=0;o1?this.reverse(t.substring(1))+t.substring(0,1):t},t.cutOff=function(t,e,i,n){void 0===n&&(n=!0),e=Math.floor(e),i=Math.floor(i);var r=t.length;e>r&&(e=r);var o,s=e,a=e+i;return n?o=t.substring(0,s)+t.substr(a,r):(a=(s=r-1-e-i)+i,o=t.substring(0,s+1)+t.substr(a+1,r)),o},t.strReplace=function(t,e){for(var i=0,n=e.length;i",">",'"',""","'","'","®","®","©","©","™","™"],t}();!function(t){var e=function(){function e(){}return e.convertImageToCanvas=function(e,i){this.sharedCanvas||(this.sharedCanvas=egret.sys.createCanvas(),this.sharedContext=this.sharedCanvas.getContext("2d"));var n=e.$getTextureWidth(),r=e.$getTextureHeight();i||((i=egret.$TempRectangle).x=0,i.y=0,i.width=n,i.height=r),i.x=Math.min(i.x,n-1),i.y=Math.min(i.y,r-1),i.width=Math.min(i.width,n-i.x),i.height=Math.min(i.height,r-i.y);var o=Math.floor(i.width),s=Math.floor(i.height),a=this.sharedCanvas;if(a.style.width=o+"px",a.style.height=s+"px",this.sharedCanvas.width=o,this.sharedCanvas.height=s,"webgl"==egret.Capabilities.renderMode){var h=void 0;e.$renderBuffer?h=e:(egret.sys.systemRenderer.renderClear&&egret.sys.systemRenderer.renderClear(),(h=new egret.RenderTexture).drawToTexture(new egret.Bitmap(e)));for(var c=h.$renderBuffer.getPixels(i.x,i.y,o,s),u=0,l=0,p=0;p=0?"png":"jpg"});return wx.getFileSystemManager().saveFile({tempFilePath:o,filePath:wx.env.USER_DATA_PATH+"/"+i,success:function(t){}}),o},e.getPixel32=function(t,e,i){return egret.$warn(1041,"getPixel32","getPixels"),t.getPixels(e,i)},e.getPixels=function(t,e,i,n,r){if(void 0===n&&(n=1),void 0===r&&(r=1),"webgl"==egret.Capabilities.renderMode){var o=void 0;return t.$renderBuffer?o=t:(o=new egret.RenderTexture).drawToTexture(new egret.Bitmap(t)),o.$renderBuffer.getPixels(e,i,n,r)}try{this.convertImageToCanvas(t);return this.sharedContext.getImageData(e,i,n,r).data}catch(t){egret.$error(1039)}},e}();t.TextureUtils=e}(es||(es={})),function(t){var e=function(){function t(){}return t.update=function(t){var e=(t-this._lastTime)/1e3;this.deltaTime=e*this.timeScale,this.unscaledDeltaTime=e,this._timeSinceSceneLoad+=e,this.frameCount++,this._lastTime=t},t.sceneChanged=function(){this._timeSinceSceneLoad=0},t.checkEvery=function(t){return Math.floor(this._timeSinceSceneLoad/t)>Math.floor((this._timeSinceSceneLoad-this.deltaTime)/t)},t.deltaTime=0,t.timeScale=1,t.frameCount=0,t._lastTime=0,t}();t.Time=e}(es||(es={}));var TimeUtils=function(){function t(){}return t.monthId=function(t){void 0===t&&(t=null);var e=(t=t||new Date).getFullYear(),i=t.getMonth()+1;return parseInt(e+(i<10?"0":"")+i)},t.dateId=function(t){void 0===t&&(t=null);var e=(t=t||new Date).getMonth()+1,i=e<10?"0":"",n=t.getDate(),r=n<10?"0":"";return parseInt(t.getFullYear()+i+e+r+n)},t.weekId=function(t,e){void 0===t&&(t=null),void 0===e&&(e=!0),t=t||new Date;var i=new Date;i.setTime(t.getTime()),i.setDate(1),i.setMonth(0);var n=i.getFullYear(),r=i.getDay();0==r&&(r=7);var o=!1;r<=4?(o=r>1,i.setDate(i.getDate()-(r-1))):i.setDate(i.getDate()+7-r+1);var s=this.diffDay(t,i,!1);if(s<0)return i.setDate(1),i.setMonth(0),i.setDate(i.getDate()-1),this.weekId(i,!1);var a=s/7,h=Math.floor(a)+1;if(53==h){i.setTime(t.getTime()),i.setDate(i.getDate()-1);var c=i.getDay();if(0==c&&(c=7),e&&(!o||c<4))return i.setFullYear(i.getFullYear()+1),i.setDate(1),i.setMonth(0),this.weekId(i,!1)}return parseInt(n+"00"+(h>9?"":"0")+h)},t.diffDay=function(t,e,i){void 0===i&&(i=!1);var n=(t.getTime()-e.getTime())/864e5;return i?Math.ceil(n):Math.floor(n)},t.getFirstDayOfWeek=function(t){var e=(t=t||new Date).getDay()||7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1-e,0,0,0,0)},t.getFirstOfDay=function(t){return(t=t||new Date).setHours(0,0,0,0),t},t.getNextFirstOfDay=function(t){return new Date(this.getFirstOfDay(t).getTime()+864e5)},t.formatDate=function(t){var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();return e+"-"+i+"-"+(n=n<10?"0"+n:n)},t.formatDateTime=function(t){var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var r=t.getHours(),o=t.getMinutes();o=o<10?"0"+o:o;var s=t.getSeconds();return e+"-"+i+"-"+n+" "+r+":"+o+":"+(s=s<10?"0"+s:s)},t.parseDate=function(t){var e=Date.parse(t);return isNaN(e)?new Date:new Date(Date.parse(t.replace(/-/g,"/")))},t.secondToTime=function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=":"),void 0===i&&(i=!0);var n=Math.floor(t/3600),r=Math.floor(t%3600/60),o=Math.floor(t%3600%60),s=n.toString(),a=r.toString(),h=o.toString();return n<10&&(s="0"+s),r<10&&(a="0"+a),o<10&&(h="0"+h),i?s+e+a+e+h:a+e+h},t.timeToMillisecond=function(t,e){void 0===e&&(e=":");for(var i=t.split(e),n=0,r=i.length,o=0;o-1?this.os="iOS":n.indexOf("android")>-1&&(this.os="Android");var r=i.language;r=r.indexOf("zh")>-1?"zh-CN":"en-US",this.language=r}},e}(egret.Capabilities);t.GraphicsCapabilities=e}(es||(es={})),function(t){var e=function(){function e(){this.setup(),this.graphicsCapabilities=new t.GraphicsCapabilities,this.graphicsCapabilities.initialize(this)}return Object.defineProperty(e.prototype,"viewport",{get:function(){return this._viewport},enumerable:!0,configurable:!0}),e.prototype.setup=function(){this._viewport=new t.Viewport(0,0,t.Core._instance.stage.stageWidth,t.Core._instance.stage.stageHeight)},e}();t.GraphicsDevice=e}(es||(es={})),function(t){var e=function(){function e(t,e,i,n){this._x=t,this._y=e,this._width=i,this._height=n,this._minDepth=0,this._maxDepth=1}return Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aspectRatio",{get:function(){return 0!=this._height&&0!=this._width?this._width/this._height:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bounds",{get:function(){return new t.Rectangle(this._x,this._y,this._width,this._height)},set:function(t){this._x=t.x,this._y=t.y,this._width=t.width,this._height=t.height},enumerable:!0,configurable:!0}),e}();t.Viewport=e}(es||(es={})),function(t){var e=function(e){function i(){return e.call(this,t.PostProcessor.default_vert,i.blur_frag,{screenWidth:t.Core.graphicsDevice.viewport.width,screenHeight:t.Core.graphicsDevice.viewport.height})||this}return __extends(i,e),i.blur_frag="precision mediump float;\nuniform sampler2D uSampler;\nuniform float screenWidth;\nuniform float screenHeight;\nfloat normpdf(in float x, in float sigma)\n{\nreturn 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;\n}\nvoid main()\n{\nvec3 c = texture2D(uSampler, gl_FragCoord.xy / vec2(screenWidth, screenHeight).xy).rgb;\nconst int mSize = 11;\nconst int kSize = (mSize - 1)/2;\nfloat kernel[mSize];\nvec3 final_colour = vec3(0.0);\nfloat sigma = 7.0;\nfloat z = 0.0;\nfor (int j = 0; j <= kSize; ++j)\n{\nkernel[kSize+j] = kernel[kSize-j] = normpdf(float(j),sigma);\n}\nfor (int j = 0; j < mSize; ++j)\n{\nz += kernel[j];\n}\nfor (int i = -kSize; i <= kSize; ++i)\n{\nfor (int j = -kSize; j <= kSize; ++j)\n{\nfinal_colour += kernel[kSize+j]*kernel[kSize+i]*texture2D(uSampler, (gl_FragCoord.xy+vec2(float(i),float(j))) / vec2(screenWidth, screenHeight).xy).rgb;\n}\n}\ngl_FragColor = vec4(final_colour/(z*z), 1.0);\n}",i}(egret.CustomFilter);t.GaussianBlurEffect=e}(es||(es={})),function(t){var e=function(t){function e(){return t.call(this,e.vertSrc,e.fragmentSrc)||this}return __extends(e,t),e.vertSrc="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform vec2 projectionVector;\nvarying vec2 vTextureCoord;\nconst vec2 center = vec2(-1.0, 1.0);\nvoid main(void) {\n gl_Position = vec4( (aVertexPosition / projectionVector) + center , 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",e.fragmentSrc="precision lowp float;\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n#define SAMPLE_COUNT 15\nuniform vec2 _sampleOffsets[SAMPLE_COUNT];\nuniform float _sampleWeights[SAMPLE_COUNT];\nvoid main(void) {\nvec4 c = vec4(0, 0, 0, 0);\nfor( int i = 0; i < SAMPLE_COUNT; i++ )\n c += texture2D( uSampler, vTextureCoord + _sampleOffsets[i] ) * _sampleWeights[i];\ngl_FragColor = c;\n}",e}(egret.CustomFilter);t.PolygonLightEffect=e}(es||(es={})),function(t){var e=function(){function e(t){void 0===t&&(t=null),this.enabled=!0,this.effect=t}return e.prototype.onAddedToScene=function(e){this.scene=e,this.shape=new egret.Shape,this.shape.graphics.beginFill(16777215,1),this.shape.graphics.drawRect(0,0,t.Core.graphicsDevice.viewport.width,t.Core.graphicsDevice.viewport.height),this.shape.graphics.endFill(),e.addChild(this.shape)},e.prototype.process=function(){this.drawFullscreenQuad()},e.prototype.onSceneBackBufferSizeChanged=function(t,e){},e.prototype.unload=function(){this.effect&&(this.effect=null),this.scene.removeChild(this.shape),this.scene=null},e.prototype.drawFullscreenQuad=function(){this.scene.filters=[this.effect]},e.default_vert="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec2 aColor;\nuniform vec2 projectionVector;\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nconst vec2 center = vec2(-1.0, 1.0);\nvoid main(void) {\ngl_Position = vec4( (aVertexPosition / projectionVector) + center , 0.0, 1.0);\nvTextureCoord = aTextureCoord;\nvColor = vec4(aColor.x, aColor.x, aColor.x, aColor.x);\n}",e}();t.PostProcessor=e}(es||(es={})),function(t){var e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),i.prototype.onAddedToScene=function(i){e.prototype.onAddedToScene.call(this,i),this.effect=new t.GaussianBlurEffect},i}(t.PostProcessor);t.GaussianBlurPostProcessor=e}(es||(es={})),function(t){var e=function(){function t(t,e){void 0===e&&(e=null),this.renderOrder=0,this.shouldDebugRender=!0,this.camera=e,this.renderOrder=t}return Object.defineProperty(t.prototype,"wantsToRenderToSceneRenderTarget",{get:function(){return!!this.renderTexture},enumerable:!0,configurable:!0}),t.prototype.onAddedToScene=function(t){},t.prototype.unload=function(){},t.prototype.onSceneBackBufferSizeChanged=function(t,e){},t.prototype.compareTo=function(t){return this.renderOrder-t.renderOrder},t.prototype.beginRender=function(t){},t.prototype.renderAfterStateCheck=function(t,e){t.render(e)},t.prototype.debugRender=function(t,e){for(var i=0;i=0&&h=0&&ci?i:t},e.pointOnCirlce=function(i,n,r){var o=e.toRadians(r);return new t.Vector2(Math.cos(o)*o+i.x,Math.sin(o)*o+i.y)},e.isEven=function(t){return t%2==0},e.clamp01=function(t){return t<0?0:t>1?1:t},e.angleBetweenVectors=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)},e.incrementWithWrap=function(t,e){return++t==e?0:t},e.approach=function(t,e,i){return tn&&(n=s.x),s.yr&&(r=s.y)}return this.fromMinMax(e,i,n,r)},i.prototype.intersects=function(t){return t.leftthis.x+this.width)return!1}else{var n=1/t.direction.x,r=(this.x-t.start.x)*n,o=(this.x+this.width-t.start.x)*n;if(r>o){var s=r;r=o,o=s}if(e.value=Math.max(r,e.value),i=Math.min(o,i),e.value>i)return!1}if(Math.abs(t.direction.y)<1e-6){if(t.start.ythis.y+this.height)return!1}else{var a=1/t.direction.y,h=(this.y-t.start.y)*a,c=(this.y+this.height-t.start.y)*a;if(h>c){var u=h;h=c,c=u}if(e.value=Math.max(h,e.value),i=Math.max(c,i),e.value>i)return!1}return!0},i.prototype.containsRect=function(t){return this.x<=t.x&&t.x1)return!1;var u=(h.x*o.y-h.y*o.x)/a;return!(u<0||u>1)},i.lineToLineIntersection=function(e,i,n,r){var o=new t.Vector2(0,0),s=t.Vector2.subtract(i,e),a=t.Vector2.subtract(r,n),h=s.x*a.y-s.y*a.x;if(0==h)return o;var c=t.Vector2.subtract(n,e),u=(c.x*a.y-c.y*a.x)/h;if(u<0||u>1)return o;var l=(c.x*s.y-c.y*s.x)/h;return l<0||l>1?o:o=t.Vector2.add(e,new t.Vector2(u*s.x,u*s.y))},i.closestPointOnLine=function(e,i,n){var r=t.Vector2.subtract(i,e),o=t.Vector2.subtract(n,e),s=t.Vector2.dot(o,r)/t.Vector2.dot(r,r);return s=t.MathHelper.clamp(s,0,1),t.Vector2.add(e,new t.Vector2(r.x*s,r.y*s))},i.circleToCircle=function(e,i,n,r){return t.Vector2.distanceSquared(e,n)<(i+r)*(i+r)},i.circleToLine=function(e,i,n,r){return t.Vector2.distanceSquared(e,this.closestPointOnLine(n,r,e))=t&&r.y>=e&&r.x=t+n&&(s|=e.right),o.y=i+r&&(s|=e.bottom),s},i}();t.Collisions=i}(es||(es={})),function(t){var e=function(){function e(e,i,n,r,o){this.fraction=0,this.distance=0,this.point=t.Vector2.zero,this.normal=t.Vector2.zero,this.collider=e,this.fraction=i,this.distance=n,this.point=r,this.centroid=t.Vector2.zero}return e.prototype.setValues=function(t,e,i,n){this.collider=t,this.fraction=e,this.distance=i,this.point=n},e.prototype.setValuesNonCollider=function(t,e,i,n){this.fraction=t,this.distance=e,this.point=i,this.normal=n},e.prototype.reset=function(){this.collider=null,this.fraction=this.distance=0},e.prototype.toString=function(){return"[RaycastHit] fraction: "+this.fraction+", distance: "+this.distance+", normal: "+this.normal+", centroid: "+this.centroid+", point: "+this.point},e}();t.RaycastHit=e}(es||(es={})),function(t){var e=function(){function e(){}return e.reset=function(){this._spatialHash=new t.SpatialHash(this.spatialHashCellSize)},e.clear=function(){this._spatialHash.clear()},e.overlapCircleAll=function(t,e,i,n){if(void 0===n&&(n=-1),0!=i.length)return this._spatialHash.overlapCircle(t,e,i,n);console.error("An empty results array was passed in. No results will ever be returned.")},e.boxcastBroadphase=function(t,e){return void 0===e&&(e=this.allLayers),this._spatialHash.aabbBroadphase(t,null,e)},e.boxcastBroadphaseExcludingSelf=function(t,e,i){return void 0===i&&(i=this.allLayers),this._spatialHash.aabbBroadphase(e,t,i)},e.addCollider=function(t){e._spatialHash.register(t)},e.removeCollider=function(t){e._spatialHash.remove(t)},e.updateCollider=function(t){this._spatialHash.remove(t),this._spatialHash.register(t)},e.linecast=function(t,i,n){return void 0===n&&(n=e.allLayers),this._hitArray[0].reset(),this.linecastAll(t,i,this._hitArray,n),this._hitArray[0]},e.linecastAll=function(t,i,n,r){return void 0===r&&(r=e.allLayers),0==n.length?(console.warn("传入了一个空的hits数组。没有点击会被返回"),0):this._spatialHash.linecast(t,i,n,r)},e.debugDraw=function(t){this._spatialHash.debugDraw(t,2)},e.spatialHashCellSize=100,e.allLayers=-1,e.raycastsHitTriggers=!1,e.raycastsStartInColliders=!1,e._hitArray=[new t.RaycastHit],e}();t.Physics=e}(es||(es={})),function(t){var e=function(){return function(e,i){this.start=e,this.end=i,this.direction=t.Vector2.subtract(this.end,this.start)}}();t.Ray2D=e}(es||(es={})),function(t){var e=function(){function e(e){void 0===e&&(e=100),this.gridBounds=new t.Rectangle,this._overlapTestCircle=new t.Circle(0),this._cellDict=new i,this._tempHashSet=[],this._cellSize=e,this._inverseCellSize=1/this._cellSize,this._raycastParser=new n}return e.prototype.register=function(e){var i=e.bounds;e.registeredPhysicsBounds=i;var n=this.cellCoords(i.x,i.y),r=this.cellCoords(i.right,i.bottom);this.gridBounds.contains(n.x,n.y)||(this.gridBounds=t.RectangleExt.union(this.gridBounds,n)),this.gridBounds.contains(r.x,r.y)||(this.gridBounds=t.RectangleExt.union(this.gridBounds,r));for(var o=n.x;o<=r.x;o++)for(var s=n.y;s<=r.y;s++){var a=this.cellAtPosition(o,s,!0);a.firstOrDefault(function(t){return t.hashCode==e.hashCode})||a.push(e)}},e.prototype.remove=function(t){for(var e=t.registeredPhysicsBounds,i=this.cellCoords(e.x,e.y),n=this.cellCoords(e.right,e.bottom),r=i.x;r<=n.x;r++)for(var o=i.y;o<=n.y;o++){var s=this.cellAtPosition(r,o);s?s.remove(t):console.log("从不存在碰撞器的单元格中移除碰撞器: ["+t+"]")}},e.prototype.removeWithBruteForce=function(t){this._cellDict.remove(t)},e.prototype.clear=function(){this._cellDict.clear()},e.prototype.debugDraw=function(t,e){void 0===e&&(e=1);for(var i=this.gridBounds.x;i<=this.gridBounds.right;i++)for(var n=this.gridBounds.y;n<=this.gridBounds.bottom;n++){var r=this.cellAtPosition(i,n);r&&r.length>0&&this.debugDrawCellDetails(i,n,r.length,t,e)}},e.prototype.aabbBroadphase=function(e,i,n){this._tempHashSet.length=0;for(var r=this.cellCoords(e.x,e.y),o=this.cellCoords(e.right,e.bottom),s=r.x;s<=o.x;s++)for(var a=r.y;a<=o.y;a++){var h=this.cellAtPosition(s,a);if(h)for(var c=function(r){var o=h[r];if(o==i||!t.Flags.isFlagSet(n,o.physicsLayer.value))return"continue";e.intersects(o.bounds)&&(u._tempHashSet.firstOrDefault(function(t){return t.hashCode==o.hashCode})||u._tempHashSet.push(o))},u=this,l=0;l=this.points.length?this.points[0]:this.points[n+1];var o=t.Vector2Ext.perpendicular(r,e);t.Vector2Ext.normalize(o),this._edgeNormals[n]=o}},i.buildSymmetricalPolygon=function(e,i){for(var n=new Array(e),r=0;rr&&(r=s,n=o)}return e[n]},i.getClosestPointOnPolygonToPoint=function(e,i,n,r){n.value=Number.MAX_VALUE,r.x=0,r.y=0;for(var o=new t.Vector2(0,0),s=0,a=0;at.y!=this.points[n].y>t.y&&t.x<(this.points[n].x-this.points[i].x)*(t.y-this.points[i].y)/(this.points[n].y-this.points[i].y)+this.points[i].x&&(e=!e);return e},i.prototype.pointCollidesWithShape=function(e,i){return t.ShapeCollisions.pointToPoly(e,this,i)},i}(t.Shape);t.Polygon=e}(es||(es={})),function(t){var e=function(e){function i(t,n){var r=e.call(this,i.buildBox(t,n),!0)||this;return r.width=t,r.height=n,r}return __extends(i,e),i.buildBox=function(e,i){var n=e/2,r=i/2,o=new Array(4);return o[0]=new t.Vector2(-n,-r),o[1]=new t.Vector2(n,-r),o[2]=new t.Vector2(n,r),o[3]=new t.Vector2(-n,r),o},i.prototype.updateBox=function(e,i){this.width=e,this.height=i;var n=e/2,r=i/2;this.points[0]=new t.Vector2(-n,-r),this.points[1]=new t.Vector2(n,-r),this.points[2]=new t.Vector2(n,r),this.points[3]=new t.Vector2(-n,r);for(var o=0;o1)return!1;var a,h=t.Vector2.add(s.start,t.Vector2.add(s.direction,new t.Vector2(r.value))),c=0;h.xi.bounds.right&&(c|=1),h.yi.bounds.bottom&&(c|=2);var u=a+c;return 3==u&&console.log("m == 3. corner "+t.Time.frameCount),!0},e}();t.RealtimeCollisions=e}(es||(es={})),function(t){var e=function(){function e(){}return e.polygonToPolygon=function(e,i,n){for(var r,o=!0,s=e.edgeNormals,a=i.edgeNormals,h=Number.POSITIVE_INFINITY,c=new t.Vector2,u=t.Vector2.subtract(e.position,i.position),l=0;l0&&(o=!1),!o)return!1;(y=Math.abs(y))r&&(r=o);return{min:n,max:r}},e.circleToPolygon=function(e,i,n){var r,o=t.Vector2.subtract(e.position,i.position),s=new t.Ref(0),a=t.Polygon.getClosestPointOnPolygonToPoint(i.points,o,s,n.normal),h=i.containsPoint(e.position);if(s.value>e.radius*e.radius&&!h)return!1;if(h)r=t.Vector2.multiply(n.normal,new t.Vector2(Math.sqrt(s.value)-e.radius));else if(0==s.value)r=t.Vector2.multiply(n.normal,new t.Vector2(e.radius));else{var c=Math.sqrt(s.value);r=t.Vector2.multiply(new t.Vector2(-t.Vector2.subtract(o,a)),new t.Vector2((e.radius-s.value)/c))}return n.minimumTranslationVector=r,n.point=t.Vector2.add(a,i.position),!0},e.circleToBox=function(e,i,n){var r=i.bounds.getClosestPointOnRectangleBorderToPoint(e.position,n.normal);if(i.containsPoint(e.position)){n.point=r;var o=t.Vector2.add(r,t.Vector2.multiply(n.normal,new t.Vector2(e.radius)));return n.minimumTranslationVector=t.Vector2.subtract(e.position,o),!0}var s=t.Vector2.distanceSquared(r,e.position);if(0==s)n.minimumTranslationVector=t.Vector2.multiply(n.normal,new t.Vector2(e.radius));else if(s<=e.radius*e.radius){n.normal=t.Vector2.subtract(e.position,r);var a=n.normal.length()-e.radius;return n.point=r,t.Vector2Ext.normalize(n.normal),n.minimumTranslationVector=t.Vector2.multiply(new t.Vector2(a),n.normal),!0}return!1},e.pointToCircle=function(e,i,n){var r=t.Vector2.distanceSquared(e,i.position),o=1+i.radius;if(r1)return!1;var l=(c.x*s.y-c.y*s.x)/h;return!(l<0||l>1)&&(o=o.add(e).add(t.Vector2.multiply(new t.Vector2(u),s)),!0)},e.lineToCircle=function(e,i,n,r){var o=t.Vector2.distance(e,i),s=t.Vector2.divide(t.Vector2.subtract(i,e),new t.Vector2(o)),a=t.Vector2.subtract(e,n.position),h=t.Vector2.dot(a,s),c=t.Vector2.dot(a,a)-n.radius*n.radius;if(c>0&&h>0)return!1;var u=h*h-c;return!(u<0)&&(r.fraction=-h-Math.sqrt(u),r.fraction<0&&(r.fraction=0),r.point=t.Vector2.add(e,t.Vector2.multiply(new t.Vector2(r.fraction),s)),r.distance=t.Vector2.distance(e,r.point),r.normal=t.Vector2.normalize(t.Vector2.subtract(r.point,n.position)),r.fraction=r.distance/o,!0)},e.boxToBoxCast=function(e,i,n,r){var o=this.minkowskiDifference(e,i);if(o.contains(0,0)){var s=o.getClosestPointOnBoundsToOrigin();return!s.equals(t.Vector2.zero)&&(r.normal=new t.Vector2(-s.x),r.normal.normalize(),r.distance=0,r.fraction=0,!0)}var a=new t.Ray2D(t.Vector2.zero,new t.Vector2(-n.x)),h=new t.Ref(0);return!!(o.rayIntersects(a,h)&&h.value<=1)&&(r.fraction=h.value,r.distance=n.length()*h.value,r.normal=new t.Vector2(-n.x,-n.y),r.normal.normalize(),r.centroid=t.Vector2.add(e.bounds.center,t.Vector2.multiply(n,new t.Vector2(h.value))),!0)},e}();t.ShapeCollisions=e}(es||(es={})),function(t){var e=function(){function e(){this.mass=1,this.radius=0,this.collidesWithColliders=!0}return e.prototype.applyForce=function(e){this.acceleration.add(t.Vector2.divide(e,new t.Vector2(this.mass)))},e}();t.Particle=e}(es||(es={})),function(t){var e=function(){function e(e){void 0===e&&(e=null),this.gravity=new t.Vector2(0,980),this.constraintIterations=3,this.maximumStepIterations=5,this.allowDragging=!0,this._composites=[],this._tempCircle=new t.Circle(1),this._leftOverTime=0,this._fixedDeltaTime=1/60,this._iterationSteps=0,this._fixedDeltaTimeSq=0,this.simulationBounds=e,this._fixedDeltaTimeSq=Math.pow(this._fixedDeltaTimeSq,2)}return e.prototype.update=function(){this.updateTiming(),this.allowDragging&&this.handleDragging();for(var t=1;t<=this._iterationSteps;t++)for(var e=this._composites.length-1;e>=0;e--){for(var i=this._composites[e],n=0;ni.height?e.y=i.height:e.yi.width&&(e.x=i.width)):(e.yi.height-t.radius&&(e.y=2*(i.height-t.radius)-e.y),e.x>i.width-t.radius&&(e.x=2*(i.width-t.radius)-e.x),e.x=0;t--)this._constraints[t].solve()},e.prototype.updateParticles=function(e,i){for(var n=0;n=0;t--)this._constraints[t].collidesWithColliders&&this._constraints[t].handleCollisions(this.collidesWithLayers)},e.prototype.debugRender=function(t){},e}();t.Composite=e}(es||(es={})),function(t){var e=function(){function t(){this.collidesWithColliders=!0}return t.prototype.handleCollisions=function(t){},t}();t.Constraint=e}(es||(es={})),function(t){var e=function(){return function(){}}();t.TmxGroup=e}(es||(es={})),function(t){var e=function(){return function(){}}();t.TmxImageLayer=e}(es||(es={})),function(t){var e=function(){function e(){}return Object.defineProperty(e.prototype,"offset",{get:function(){return new t.Vector2(this.offsetX,this.offsetY)},enumerable:!0,configurable:!0}),e.prototype.getTileWithGid=function(t){for(var e=0;e=0&&(e.push(this.findBoundsRect(i,o,r,t)),i=-1)}i>=0&&(e.push(this.findBoundsRect(i,this.map.width,r,t)),i=-1)}return e},e.prototype.findBoundsRect=function(e,i,n,r){for(var o=-1,s=n+1;sthis.tileHeight||this.maxTileWidth>this.tileWidth},enumerable:!0,configurable:!0}),i.prototype.getTilesetForTileGid=function(t){if(0==t)return null;for(var e=this.tilesets.length-1;e>=0;e--)if(this.tilesets[e].firstGid<=t)return this.tilesets[e];console.error("tile gid"+t+"未在任何tileset中找到")},i.prototype.worldToTilePositionX=function(e,i){void 0===i&&(i=!0);var n=Math.floor(e/this.tileWidth);return i?t.MathHelper.clamp(n,0,this.width-1):n},i.prototype.worldToTilePositionY=function(e,i){void 0===i&&(i=!0);var n=Math.floor(e/this.tileHeight);return i?t.MathHelper.clamp(n,0,this.height-1):n},i.prototype.getLayer=function(t){return this.layers[t]},i.prototype.update=function(){this.tilesets.forEach(function(t){t.update()})},i.prototype.dispose=function(t){void 0===t&&(t=!0),this._isDisposed||(t&&(this.tilesets.forEach(function(t){t.image&&t.image.dispose()}),this.imageLayers.forEach(function(t){t.image&&t.image.dispose()})),this._isDisposed=!0)},i}(t.TmxDocument);t.TmxMap=e,function(t){t[t.unknown=0]="unknown",t[t.orthogonal=1]="orthogonal",t[t.isometric=2]="isometric",t[t.staggered=3]="staggered",t[t.hexagonal=4]="hexagonal"}(t.OrientationType||(t.OrientationType={})),function(t){t[t.x=0]="x",t[t.y=1]="y"}(t.StaggerAxisType||(t.StaggerAxisType={})),function(t){t[t.odd=0]="odd",t[t.even=1]="even"}(t.StaggerIndexType||(t.StaggerIndexType={})),function(t){t[t.rightDown=0]="rightDown",t[t.rightUp=1]="rightUp",t[t.leftDown=2]="leftDown",t[t.leftUp=3]="leftUp"}(t.RenderOrderType||(t.RenderOrderType={}))}(es||(es={})),function(t){var e=function(){return function(){}}();t.TmxObjectGroup=e;var i=function(){return function(){this.shape=new egret.Shape,this.textField=new egret.TextField}}();t.TmxObject=i;var n=function(){return function(){}}();t.TmxText=n;var r=function(){return function(){}}();t.TmxAlignment=r,function(t){t[t.basic=0]="basic",t[t.point=1]="point",t[t.tile=2]="tile",t[t.ellipse=3]="ellipse",t[t.polygon=4]="polygon",t[t.polyline=5]="polyline",t[t.text=6]="text"}(t.TmxObjectType||(t.TmxObjectType={})),function(t){t[t.unkownOrder=-1]="unkownOrder",t[t.TopDown=0]="TopDown",t[t.IndexOrder=1]="IndexOrder"}(t.DrawOrderType||(t.DrawOrderType={})),function(t){t[t.left=0]="left",t[t.center=1]="center",t[t.right=2]="right",t[t.justify=3]="justify"}(t.TmxHorizontalAlignment||(t.TmxHorizontalAlignment={})),function(t){t[t.top=0]="top",t[t.center=1]="center",t[t.bottom=2]="bottom"}(t.TmxVerticalAlignment||(t.TmxVerticalAlignment={}))}(es||(es={})),function(t){var e=function(){function e(){}return e.loadTmxMap=function(t,e){var i=RES.getRes(e);return this.loadTmxMapData(t,i,RES.getResourceInfo(e))},e.loadTmxMapData=function(e,i,n){return __awaiter(this,void 0,void 0,function(){var r,o,s,a;return __generator(this,function(h){switch(h.label){case 0:e.version=i.version,e.tiledVersion=i.tiledversion,e.width=i.width,e.height=i.height,e.tileWidth=i.tilewidth,e.tileHeight=i.tileheight,e.hexSideLength=i.hexsidelength,e.orientation=this.parseOrientationType(i.orientation),e.staggerAxis=this.parseStaggerAxisType(i.staggeraxis),e.staggerIndex=this.parseStaggerIndexType(i.staggerindex),e.renderOrder=this.parseRenderOrderType(i.renderorder),e.nextObjectID=i.nextobjectid,e.backgroundColor=t.TmxUtils.color16ToUnit(i.color),e.properties=this.parsePropertyDict(i.properties),e.maxTileWidth=e.tileWidth,e.maxTileHeight=e.tileHeight,e.tmxDirectory=n.root+n.url.replace(".","_").replace(n.name,""),e.tilesets=[],r=0,o=i.tilesets,h.label=1;case 1:return rt.map.maxTileWidth&&(t.map.maxTileWidth=e.image.width),e.image.height>t.map.maxTileHeight&&(t.map.maxTileHeight=e.image.height))}),t.tileRegions.forEach(function(e){var i=e.width,n=e.height;i>t.map.maxTileWidth&&(t.map.maxTileWidth=i),i>t.map.maxTileHeight&&(t.map.maxTileHeight=n)})},e.parseOrientationType=function(e){return"unknown"==e?t.OrientationType.unknown:"orthogonal"==e?t.OrientationType.orthogonal:"isometric"==e?t.OrientationType.isometric:"staggered"==e?t.OrientationType.staggered:"hexagonal"==e?t.OrientationType.hexagonal:t.OrientationType.unknown},e.parseStaggerAxisType=function(e){return"y"==e?t.StaggerAxisType.y:t.StaggerAxisType.x},e.parseStaggerIndexType=function(e){return"even"==e?t.StaggerIndexType.even:t.StaggerIndexType.odd},e.parseRenderOrderType=function(e){return"right-up"==e?t.RenderOrderType.rightUp:"left-down"==e?t.RenderOrderType.leftDown:"left-up"==e?t.RenderOrderType.leftUp:t.RenderOrderType.rightDown},e.parsePropertyDict=function(e){if(!e)return null;for(var i=new Map,n=0,r=e;n=e.columns));m+=e.tileWidth+e.spacing);else e.tiles.forEach(function(i,n){e.tileRegions.set(n,new t.Rectangle(0,0,i.image.width,i.image.height))});return[2,e]}})})},e.loadTmxTilesetTile=function(e,i,n,r,o){return __awaiter(this,void 0,void 0,function(){var s,a,h,c,u,l,p,d,f,g,y,m,_;return __generator(this,function(v){switch(v.label){case 0:if(e.tileset=i,e.id=n.id,s=n.terrain)for(e.terrainEdges=new Array(4),a=0,h=0,c=s;h0){a.shape.x=h.x,a.shape.y=h.y,i.addChild(a.shape),a.shape.graphics.clear(),a.shape.graphics.lineStyle(1,10526884);for(l=0;l0&&(u=l.currentAnimationFrameGid);var p=i.tileset.tileRegions.get(u),d=Math.floor(i.x)*s,f=Math.floor(i.y)*a;i.horizontalFlip&&i.verticalFlip?(d+=a+(p.height*o.y-a),f-=p.width*o.x-s):i.horizontalFlip?d+=s+(p.height*o.y-a):i.verticalFlip?f+=s-p.width*o.x:f+=a-p.height*o.y;var g=new t.Vector2(d,f).add(r);if(i.tileset.image){if(n){var y=i.tileset.image.bitmap.getTexture(""+u);y||(y=i.tileset.image.bitmap.createTexture(""+u,p.x,p.y,p.width,p.height)),i.tileset.image.texture=new e(y),n.addChild(i.tileset.image.texture),i.tileset.image.texture.x!=g.x&&(i.tileset.image.texture.x=g.x),i.tileset.image.texture.y!=g.y&&(i.tileset.image.texture.y=g.y),i.verticalFlip&&i.horizontalFlip?(i.tileset.image.texture.scaleX=-1,i.tileset.image.texture.scaleY=-1):i.verticalFlip?(i.tileset.image.texture.scaleX=o.x,i.tileset.image.texture.scaleY=-1):i.horizontalFlip?(i.tileset.image.texture.scaleX=-1,i.tileset.image.texture.scaleY=o.y):(i.tileset.image.texture.scaleX=o.x,i.tileset.image.texture.scaleY=o.y),0!=i.tileset.image.texture.rotation&&(i.tileset.image.texture.rotation=0),0!=i.tileset.image.texture.anchorOffsetX&&(i.tileset.image.texture.anchorOffsetX=0),0!=i.tileset.image.texture.anchorOffsetY&&(i.tileset.image.texture.anchorOffsetY=0)}}else l.image.texture&&(l.image.bitmap.getTexture(u.toString())||(l.image.texture=new e(l.image.bitmap.createTexture(u.toString(),p.x,p.y,p.width,p.height)),n.addChild(l.image.texture)),l.image.texture.x=g.x,l.image.texture.y=g.y,l.image.texture.scaleX=o.x,l.image.texture.scaleY=o.y,l.image.texture.rotation=0,l.image.texture.anchorOffsetX=0,l.image.texture.anchorOffsetY=0,l.image.texture.filters=[h])},i}();t.TiledRendering=i}(es||(es={})),function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.update=function(){this.tiles.forEach(function(t){t.updateAnimatedTiles()})},e}(t.TmxDocument);t.TmxTileset=e;var i=function(){return function(){}}();t.TmxTileOffset=i;var n=function(){return function(){}}();t.TmxTerrain=n}(es||(es={})),function(t){var e=function(){function e(){}return Object.defineProperty(e.prototype,"currentAnimationFrameGid",{get:function(){return this.animationFrames[this._animationCurrentFrame].gid+this.tileset.firstGid},enumerable:!0,configurable:!0}),e.prototype.processProperties=function(){var t;(t=this.properties.get("engine.isDestructable"))&&(this.isDestructable=Boolean(t)),(t=this.properties.get("engine:isSlope"))&&(this.isSlope=Boolean(t)),(t=this.properties.get("engine:isOneWayPlatform"))&&(this.isOneWayPlatform=Boolean(t)),(t=this.properties.get("engine:slopeTopLeft"))&&(this.slopeTopLeft=Number(t)),(t=this.properties.get("engine:slopeTopRight"))&&(this.slopeTopRight=Number(t))},e.prototype.updateAnimatedTiles=function(){0!=this.animationFrames.length&&(this._animationElapsedTime+=t.Time.deltaTime,this._animationElapsedTime>this.animationFrames[this._animationCurrentFrame].duration&&(this._animationCurrentFrame=t.MathHelper.incrementWithWrap(this._animationCurrentFrame,this.animationFrames.length),this._animationElapsedTime=0))},e}();t.TmxTilesetTile=e;var i=function(){return function(){}}();t.TmxAnimationFrame=i}(es||(es={})),function(t){var e=function(){function e(){}return e.decode=function(e,i,n){switch(n=n||"none",i=i||"none"){case"base64":var r=t.Base64Utils.decodeBase64AsArray(e,4);return"none"===n?r:t.Base64Utils.decompress(e,r,n);case"csv":return t.Base64Utils.decodeCSV(e);case"none":for(var o=[],s=0;si;n--)if(t[n]0&&t[r-1]>n;r--)t[r]=t[r-1];t[r]=n}},t.binarySearch=function(t,e){for(var i=0,n=t.length,r=i+n>>1;i=t[r]&&(i=r+1),r=i+n>>1;return t[i]==e?i:-1},t.findElementIndex=function(t,e){for(var i=t.length,n=0;nt[e]&&(e=n);return e},t.getMinElementIndex=function(t){for(var e=0,i=t.length,n=1;n=0;--r)i.unshift(e[r]);return i},t.getDifferAry=function(t,e){t=this.getUniqueAry(t),e=this.getUniqueAry(e);for(var i=t.concat(e),n={},r=[],o=i.length,s=0;s=0;e-=1)t.splice(e,1)},t.cloneList=function(t){return t?t.slice(0,t.length):null},t.equals=function(t,e){if(t==e)return!0;var i=t.length;if(i!=e.length)return!1;for(;i--;)if(t[i]!=e[i])return!1;return!0},t.insert=function(t,e,i){if(!t)return null;var n=t.length;if(e>n&&(e=n),e<0&&(e=0),e==n)t.push(i);else if(0==e)t.unshift(i);else{for(var r=n-1;r>=e;r-=1)t[r+1]=t[r];t[e]=i}return i},t}();!function(t){var e=function(){function t(){}return Object.defineProperty(t,"nativeBase64",{get:function(){return"function"==typeof window.atob},enumerable:!0,configurable:!0}),t.decode=function(t){if(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),this.nativeBase64)return window.atob(t);for(var e,i,n,r,o,s,a=[],h=0;h>4,i=(15&r)<<4|(o=this._keyStr.indexOf(t.charAt(h++)))>>2,n=(3&o)<<6|(s=this._keyStr.indexOf(t.charAt(h++))),a.push(String.fromCharCode(e)),64!==o&&a.push(String.fromCharCode(i)),64!==s&&a.push(String.fromCharCode(n));return a=a.join("")},t.encode=function(t){if(t=t.replace(/\r\n/g,"\n"),!this.nativeBase64){for(var e,i,n,r,o,s,a,h=[],c=0;c>2,o=(3&e)<<4|(i=t.charCodeAt(c++))>>4,s=(15&i)<<2|(n=t.charCodeAt(c++))>>6,a=63&n,isNaN(i)?s=a=64:isNaN(n)&&(a=64),h.push(this._keyStr.charAt(r)),h.push(this._keyStr.charAt(o)),h.push(this._keyStr.charAt(s)),h.push(this._keyStr.charAt(a));return h=h.join("")}window.btoa(t)},t.decodeBase64AsArray=function(e,i){i=i||1;var n,r,o,s=t.decode(e),a=new Uint32Array(s.length/i);for(n=0,o=s.length/i;n=0;--r)a[n]+=s.charCodeAt(n*i+r)<<(r<<3);return a},t.decompress=function(t,e,i){throw new Error("GZIP/ZLIB compressed TMX Tile Map not supported!")},t.decodeCSV=function(t){for(var e=t.replace("\n","").trim().split(","),i=[],n=0;n>16},set:function(t){this._packedValue=4278255615&this._packedValue|t<<16},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this._packedValue>>8},set:function(t){this._packedValue=4294902015&this._packedValue|t<<8},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"r",{get:function(){return this._packedValue},set:function(t){this._packedValue=4294967040&this._packedValue|t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this._packedValue>>24},set:function(t){this._packedValue=16777215&this._packedValue|t<<24},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"packedValue",{get:function(){return this._packedValue},set:function(t){this._packedValue=t},enumerable:!0,configurable:!0}),e.prototype.equals=function(t){return this._packedValue==t._packedValue},e}();t.Color=e}(es||(es={})),function(t){var e=function(){function t(){this.loadedAssets=new Map}return t.prototype.loadRes=function(t,e){var i=this;return void 0===e&&(e=!0),new Promise(function(n,r){var o=i.loadedAssets.get(t);o?n(o):e?RES.getResAsync(t).then(function(e){i.loadedAssets.set(t,e),n(e)}).catch(function(e){console.error("资源加载错误:",t,e),r(e)}):RES.getResByUrl(t).then(function(e){i.loadedAssets.set(t,e),n(e)}).catch(function(e){console.error("资源加载错误:",t,e),r(e)})})},t.prototype.dispose=function(){this.loadedAssets.forEach(function(t){var e=t;RES.destroyRes(e)&&e.dispose()}),this.loadedAssets.clear()},t}();t.ContentManager=e}(es||(es={})),function(t){var e=function(){function t(){}return t.getColorMatrix=function(t){var e=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];return e[0]=Math.floor(t/256/256)/255,e[6]=Math.floor(t/256%256)/255,e[12]=t%256/255,new egret.ColorMatrixFilter(e)},t}();t.DrawUtils=e}(es||(es={})),function(t){var e=function(){function e(){}return e.oppositeEdge=function(e){switch(e){case t.Edge.bottom:return t.Edge.top;case t.Edge.top:return t.Edge.bottom;case t.Edge.left:return t.Edge.right;case t.Edge.right:return t.Edge.left}},e.isHorizontal=function(e){return e==t.Edge.right||e==t.Edge.left},e.isVertical=function(e){return e==t.Edge.top||e==t.Edge.bottom},e}();t.EdgeExt=e}(es||(es={})),function(t){var e=function(){return function(t,e){this.func=t,this.context=e}}();t.FuncPack=e;var i=function(){function t(){this._messageTable=new Map}return t.prototype.addObserver=function(t,i,n){var r=this._messageTable.get(t);r||(r=[],this._messageTable.set(t,r)),-1!=r.findIndex(function(t){return t.func==i})&&console.warn("您试图添加相同的观察者两次"),r.push(new e(i,n))},t.prototype.removeObserver=function(t,e){var i=this._messageTable.get(t),n=i.findIndex(function(t){return t.func==e});-1!=n&&i.removeAt(n)},t.prototype.emit=function(t,e){var i=this._messageTable.get(t);if(i)for(var n=i.length-1;n>=0;n--)i[n].func.call(i[n].context,e)},t}();t.Emitter=i}(es||(es={})),function(t){!function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.left=2]="left",t[t.right=3]="right"}(t.Edge||(t.Edge={}))}(es||(es={})),function(t){var e=function(){function t(){}return t.repeat=function(t,e){for(var i=[];e--;)i.push(t);return i},t}();t.Enumerable=e}(es||(es={})),function(t){var e=function(){function t(){}return t.default=function(){return new t},t.prototype.equals=function(t,e){return"function"==typeof t.equals?t.equals(e):t===e},t}();t.EqualityComparer=e}(es||(es={})),function(t){var e=function(){function t(){}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),t.prototype.setEnabled=function(t){this._enabled!=t&&(this._enabled=t,this._enabled?this.onEnabled():this.onDisabled())},t.prototype.onEnabled=function(){},t.prototype.onDisabled=function(){},t.prototype.update=function(){},t}();t.GlobalManager=e}(es||(es={})),function(t){var e=function(){function t(){}return t.warmCache=function(t){if((t-=this._objectQueue.length)>0)for(var e=0;ethis._objectQueue.length;)this._objectQueue.shift()},t.clearCache=function(){this._objectQueue.length=0},t.obtain=function(){return this._objectQueue.length>0?this._objectQueue.shift():[]},t.free=function(t){this._objectQueue.unshift(t),t.length=0},t._objectQueue=[],t}();t.ListPool=e}(es||(es={})),function(t){var e=function(){function t(){}return t.toNumber=function(t){return null==t?0:Number(t)},t}();t.NumberExtension=e}(es||(es={})),function(t){var e=function(){function t(t,e){this.first=t,this.second=e}return t.prototype.clear=function(){this.first=this.second=null},t.prototype.equals=function(t){return this.first==t.first&&this.second==t.second},t}();t.Pair=e}(es||(es={})),function(t){var e=function(){function t(){}return t.warmCache=function(t,e){if((e-=this._objectQueue.length)>0)for(var i=0;ithis._objectQueue.length;)this._objectQueue.shift()},t.clearCache=function(){this._objectQueue.length=0},t.obtain=function(t){return this._objectQueue.length>0?this._objectQueue.shift():new t},t.free=function(t){this._objectQueue.unshift(t),egret.is(t,"IPoolable")&&t.reset()},t._objectQueue=[],t}();t.Pool=e}(es||(es={}));var RandomUtils=function(){function t(){}return t.randrange=function(t,e,i){if(void 0===i&&(i=1),0==i)throw new Error("step 不能为 0");var n=e-t;if(0==n)throw new Error("没有可用的范围("+t+","+e+")");n<0&&(n=t-e);var r=Math.floor((n+i-1)/i);return Math.floor(this.random()*r)*i+Math.min(t,e)},t.randint=function(t,e){return(t=Math.floor(t))>(e=Math.floor(e))?t++:e++,this.randrange(t,e)},t.randnum=function(t,e){return this.random()*(e-t)+t},t.shuffle=function(t){return t.sort(this._randomCompare),t},t.choice=function(t){if(!t.hasOwnProperty("length"))throw new Error("无法对此对象执行此操作");var e=Math.floor(this.random()*t.length);return t instanceof String?String(t).charAt(e):t[e]},t.sample=function(t,e){var i=t.length;if(e<=0||i=0;)s=Math.floor(this.random()*i);n.push(t[s]),r.push(s)}return n},t.random=function(){return Math.random()},t.boolean=function(t){return void 0===t&&(t=.5),this.random().5?1:-1},t}();!function(t){var e=function(){function e(){}return e.getSide=function(e,i){switch(i){case t.Edge.top:return e.top;case t.Edge.bottom:return e.bottom;case t.Edge.left:return e.left;case t.Edge.right:return e.right}},e.union=function(e,i){var n=new t.Rectangle(i.x,i.y,0,0),r=new t.Rectangle;return r.x=Math.min(e.x,n.x),r.y=Math.min(e.y,n.y),r.width=Math.max(e.right,n.right)-r.x,r.height=Math.max(e.bottom,r.bottom)-r.y,r},e.getHalfRect=function(e,i){switch(i){case t.Edge.top:return new t.Rectangle(e.x,e.y,e.width,e.height/2);case t.Edge.bottom:return new t.Rectangle(e.x,e.y+e.height/2,e.width,e.height/2);case t.Edge.left:return new t.Rectangle(e.x,e.y,e.width/2,e.height);case t.Edge.right:return new t.Rectangle(e.x+e.width/2,e.y,e.width/2,e.height)}},e.getRectEdgePortion=function(e,i,n){switch(void 0===n&&(n=1),i){case t.Edge.top:return new t.Rectangle(e.x,e.y,e.width,n);case t.Edge.bottom:return new t.Rectangle(e.x,e.y+e.height-n,e.width,n);case t.Edge.left:return new t.Rectangle(e.x,e.y,n,e.height);case t.Edge.right:return new t.Rectangle(e.x+e.width-n,e.y,n,e.height)}},e.expandSide=function(e,i,n){switch(n=Math.abs(n),i){case t.Edge.top:e.y-=n,e.height+=n;break;case t.Edge.bottom:e.height+=n;break;case t.Edge.left:e.x-=n,e.width+=n;break;case t.Edge.right:e.width+=n}},e.contract=function(t,e,i){t.x+=e,t.y+=i,t.width-=2*e,t.height-=2*i},e}();t.RectangleExt=e}(es||(es={})),function(t){var e=function(){return function(t){this.value=t}}();t.Ref=e}(es||(es={})),function(t){var e=function(){function t(){}return t.prototype.update=function(t){this.remainder+=t;var e=Math.trunc(this.remainder);return this.remainder-=e,e},t.prototype.reset=function(){this.remainder=0},t}();t.SubpixelNumber=e}(es||(es={})),function(t){var e=function(){function e(){this.triangleIndices=[],this._triPrev=new Array(12),this._triNext=new Array(12)}return e.testPointTriangle=function(e,i,n,r){return!(t.Vector2Ext.cross(t.Vector2.subtract(e,i),t.Vector2.subtract(n,i))<0)&&(!(t.Vector2Ext.cross(t.Vector2.subtract(e,n),t.Vector2.subtract(r,n))<0)&&!(t.Vector2Ext.cross(t.Vector2.subtract(e,r),t.Vector2.subtract(i,r))<0))},e.prototype.triangulate=function(i,n){void 0===n&&(n=!0);var r=i.length;this.initialize(r);for(var o=0,s=0;r>3&&o<500;){o++;var a=!0,h=i[this._triPrev[s]],c=i[s],u=i[this._triNext[s]];if(t.Vector2Ext.isTriangleCCW(h,c,u)){var l=this._triNext[this._triNext[s]];do{if(e.testPointTriangle(i[l],h,c,u)){a=!1;break}l=this._triNext[l]}while(l!=this._triPrev[s])}else a=!1;a?(this.triangleIndices.push(this._triPrev[s]),this.triangleIndices.push(s),this.triangleIndices.push(this._triNext[s]),this._triNext[this._triPrev[s]]=this._triNext[s],this._triPrev[this._triNext[s]]=this._triPrev[s],r--,s=this._triPrev[s]):s=this._triNext[s]}this.triangleIndices.push(this._triPrev[s]),this.triangleIndices.push(s),this.triangleIndices.push(this._triNext[s]),n||this.triangleIndices.reverse()},e.prototype.initialize=function(t){this.triangleIndices.length=0,this._triNext.lengtht.MathHelper.Epsilon?e.divide(new t.Vector2(i)):e.x=e.y=0},e.transformA=function(t,e,i,n,r,o){for(var s=0;sthis.safeArea.right&&(s.x=this.safeArea.right-s.width),s.topthis.safeArea.bottom&&(s.y=this.safeArea.bottom-s.height),s},i}();t.Layout=i,function(t){t[t.none=0]="none",t[t.left=1]="left",t[t.right=2]="right",t[t.horizontalCenter=4]="horizontalCenter",t[t.top=8]="top",t[t.bottom=16]="bottom",t[t.verticalCenter=32]="verticalCenter",t[t.topLeft=9]="topLeft",t[t.topRight=10]="topRight",t[t.topCenter=12]="topCenter",t[t.bottomLeft=17]="bottomLeft",t[t.bottomRight=18]="bottomRight",t[t.bottomCenter=20]="bottomCenter",t[t.centerLeft=33]="centerLeft",t[t.centerRight=34]="centerRight",t[t.center=36]="center"}(e=t.Alignment||(t.Alignment={}))}(es||(es={})),function(t){var e,i=function(){function t(t){void 0===t&&(t=n),this.getSystemTime=t,this._stopDuration=0,this._completeSlices=[]}return t.prototype.getState=function(){return void 0===this._startSystemTime?e.IDLE:void 0===this._stopSystemTime?e.RUNNING:e.STOPPED},t.prototype.isIdle=function(){return this.getState()===e.IDLE},t.prototype.isRunning=function(){return this.getState()===e.RUNNING},t.prototype.isStopped=function(){return this.getState()===e.STOPPED},t.prototype.slice=function(){return this.recordPendingSlice()},t.prototype.getCompletedSlices=function(){return Array.from(this._completeSlices)},t.prototype.getCompletedAndPendingSlices=function(){return this._completeSlices.concat([this.getPendingSlice()])},t.prototype.getPendingSlice=function(){return this.calculatePendingSlice()},t.prototype.getTime=function(){return this.caculateStopwatchTime()},t.prototype.reset=function(){this._startSystemTime=this._pendingSliceStartStopwatchTime=this._stopSystemTime=void 0,this._stopDuration=0,this._completeSlices=[]},t.prototype.start=function(t){if(void 0===t&&(t=!1),t&&this.reset(),void 0!==this._stopSystemTime){var e=(i=this.getSystemTime())-this._stopSystemTime;this._stopDuration+=e,this._stopSystemTime=void 0}else if(void 0===this._startSystemTime){var i=this.getSystemTime();this._startSystemTime=i,this._pendingSliceStartStopwatchTime=0}},t.prototype.stop=function(t){if(void 0===t&&(t=!1),void 0===this._startSystemTime)return 0;var e=this.getSystemTimeOfCurrentStopwatchTime();return t&&this.recordPendingSlice(this.caculateStopwatchTime(e)),this._stopSystemTime=e,this.getTime()},t.prototype.calculatePendingSlice=function(t){return void 0===this._pendingSliceStartStopwatchTime?Object.freeze({startTime:0,endTime:0,duration:0}):(void 0===t&&(t=this.getTime()),Object.freeze({startTime:this._pendingSliceStartStopwatchTime,endTime:t,duration:t-this._pendingSliceStartStopwatchTime}))},t.prototype.caculateStopwatchTime=function(t){return void 0===this._startSystemTime?0:(void 0===t&&(t=this.getSystemTimeOfCurrentStopwatchTime()),t-this._startSystemTime-this._stopDuration)},t.prototype.getSystemTimeOfCurrentStopwatchTime=function(){return void 0===this._stopSystemTime?this.getSystemTime():this._stopSystemTime},t.prototype.recordPendingSlice=function(t){if(void 0!==this._pendingSliceStartStopwatchTime){void 0===t&&(t=this.getTime());var e=this.calculatePendingSlice(t);return this._pendingSliceStartStopwatchTime=e.endTime,this._completeSlices.push(e),e}return this.calculatePendingSlice()},t}();t.Stopwatch=i,function(t){t.IDLE="IDLE",t.RUNNING="RUNNING",t.STOPPED="STOPPED"}(e||(e={})),t.setDefaultSystemTimeGetter=function(t){void 0===t&&(t=Date.now),n=t};var n=Date.now}(stopwatch||(stopwatch={})),function(t){var e=function(){function e(){this.showLog=!1,this.markers=[],this.stopwacth=new stopwatch.Stopwatch,this._markerNameToIdMap=new Map,this._rectShape1=new egret.Shape,this._rectShape2=new egret.Shape,this._rectShape3=new egret.Shape,this._rectShape4=new egret.Shape,this._rectShape5=new egret.Shape,this._rectShape6=new egret.Shape,this.logs=new Array(2);for(var e=0;e=e.logSnapDuration&&(u.logs[n].snapMin=u.logs[n].min,u.logs[n].snapMax=u.logs[n].max,u.logs[n].snapAvg=u.logs[n].avg,u.logs[n].samples=0)):(u.logs[n].min=h,u.logs[n].max=h,u.logs[n].avg=h,u.logs[n].initialized=!0)}o.markCount=r.nestCount,o.nestCount=r.nestCount}this.stopwacth.reset(),this.stopwacth.start()}},e.prototype.beginMark=function(t,i,n){if(void 0===n&&(n=0),n<0||n>=e.maxBars)throw new Error("barIndex argument out of range");var r=this.curLog.bars[n];if(r.markCount>=e.maxSamples)throw new Error("超出采样次数,可以设置更大的数字为timeruler.maxsaple,或者降低采样次数");if(r.nestCount>=e.maxNestCall)throw new Error("超出采样次数,可以设置更大的数字为timeruler.maxsaple,或者降低采样次数");var s=this._markerNameToIdMap.get(t);isNaN(s)&&(s=this.markers.length,this._markerNameToIdMap.set(t,s),this.markers.push(new o(t))),r.markerNests[r.nestCount++]=r.markCount,r.markers[r.markCount].markerId=s,r.markers[r.markCount].color=i,r.markers[r.markCount].beginTime=this.stopwacth.getTime(),r.markers[r.markCount].endTime=-1,r.markCount++},e.prototype.endMark=function(t,i){if(void 0===i&&(i=0),i<0||i>=e.maxBars)throw new Error("barIndex参数超出范围");var n=this.curLog.bars[i];if(n.nestCount<=0)throw new Error("先调用beginMark方法,再调用endMark方法");var r=this._markerNameToIdMap.get(t);if(isNaN(r))throw new Error("标记 "+t+" 未注册。请确认您指定的名称与 beginMark 方法使用的名称相同");var o=n.markerNests[--n.nestCount];if(n.markers[o].markerId!=r)throw new Error("beginMark/endMark方法的调用顺序不正确,beginMark(A),beginMark(B),endMark(B),endMark(A),但你不能像beginMark(A),beginMark(B),endMark(A),endMark(B)这样调用。");n.markers[o].endTime=this.stopwacth.getTime()},e.prototype.getAverageTime=function(t,i){if(t<0||t>=e.maxBars)throw new Error("barIndex参数超出范围");var n=0,r=this._markerNameToIdMap.get(i);return r&&(n=this.markers[r].logs[t].avg),n},e.prototype.resetLog=function(){this.markers.forEach(function(t){for(var e=0;e0&&(r+=e.barHeight+2*e.barPadding,o=Math.max(o,t.markers[t.markCount-1].endTime))});var s=this.sampleFrames*(1/60*1e3);this._frameAdjust=o>s?Math.max(0,this._frameAdjust)+1:Math.min(0,this._frameAdjust)-1,Math.max(this._frameAdjust)>e.autoAdjustDelay&&(this.sampleFrames=Math.min(e.maxSampleFrames,this.sampleFrames),this.sampleFrames=Math.max(this.targetSampleFrames,Math.floor(o/(1/60*1e3))+1),this._frameAdjust=0);var a=n/s,h=i.y-(r-e.barHeight),c=h,u=new t.Rectangle(i.x,c,n,r);this._rectShape1.graphics.clear(),this._rectShape1.graphics.beginFill(0,128/255),this._rectShape1.graphics.drawRect(u.x,u.y,u.width,u.height),this._rectShape1.graphics.endFill(),u.height=e.barHeight,this._rectShape2.graphics.clear();for(var l=0,p=this.prevLog.bars;l0)for(var f=0;f0?(i.waitTimer-=i.useUnscaledDeltaTime?t.Time.unscaledDeltaTime:t.Time.deltaTime,this._shouldRunNextFrame.push(i)):this.tickCoroutine(i)&&this._shouldRunNextFrame.push(i)}}this._unblockedCoroutines.length=0,this._unblockedCoroutines.concat(this._shouldRunNextFrame),this._shouldRunNextFrame.length=0,this._isInUpdate=!1},n.prototype.tickCoroutine=function(i){var n=i.enumerator.next();return!n.value||n.done?(t.Pool.free(i),!1):!n.value||(n.value instanceof t.WaitForSeconds?(i.waitTimer=n.value.waitTime,!0):n.value instanceof Number?(console.warn("协同程序检查返回一个Number类型,请不要在生产环境使用"),i.waitTimer=Number(n),!0):!(n.value instanceof e)||(i.waitForCoroutine=n.value,!0))},n}(t.GlobalManager);t.CoroutineManager=i}(es||(es={})),function(t){var e=function(){function e(){this.x=0,this.y=0,this.touchPoint=-1,this.touchDown=!1}return Object.defineProperty(e.prototype,"position",{get:function(){return new t.Vector2(this.x,this.y)},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.x=0,this.y=0,this.touchDown=!1,this.touchPoint=-1},e}();t.TouchState=e;var i=function(){function i(){}return Object.defineProperty(i,"gameTouchs",{get:function(){return this._gameTouchs},enumerable:!0,configurable:!0}),Object.defineProperty(i,"resolutionScale",{get:function(){return this._resolutionScale},enumerable:!0,configurable:!0}),Object.defineProperty(i,"totalTouchCount",{get:function(){return this._totalTouchCount},enumerable:!0,configurable:!0}),Object.defineProperty(i,"touchPosition",{get:function(){return this._gameTouchs[0]?this._gameTouchs[0].position:t.Vector2.zero},enumerable:!0,configurable:!0}),Object.defineProperty(i,"maxSupportedTouch",{get:function(){return t.Core._instance.stage.maxTouches},set:function(e){t.Core._instance.stage.maxTouches=e,this.initTouchCache()},enumerable:!0,configurable:!0}),Object.defineProperty(i,"touchPositionDelta",{get:function(){var e=t.Vector2.subtract(this.touchPosition,this._previousTouchState.position);return e.length()>0&&this.setpreviousTouchState(this._gameTouchs[0]),e},enumerable:!0,configurable:!0}),i.initialize=function(){this._init||(this._init=!0,t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_BEGIN,this.touchBegin,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_MOVE,this.touchMove,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_END,this.touchEnd,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_CANCEL,this.touchEnd,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_RELEASE_OUTSIDE,this.touchEnd,this),this.initTouchCache())},i.update=function(){KeyboardUtils.update();for(var t=0;t0,this._willRepeat||(this.isRepeating=!1)},i.prototype.update=function(){this._bufferCounter-=t.Time.unscaledDeltaTime,this.isRepeating=!1;for(var e=!1,i=0;i0||this.isRepeating)return!0;for(var t=0,e=this.nodes;ta||i[c].height>a)throw new Error("一个纹理的大小比图集的大小大");h.push(new t.Rectangle(0,0,i[c].width,i[c].height))}for(;h.length>0;){var u=new egret.RenderTexture,l=new t.RectanglePacker(a,a,1);for(c=0;c0){for(var p=new t.IntegerRectangle,d=[],f=[],g=[],y=[],m=0;m0;)this.freeRectangle(this._insertedRectangles.pop());for(;this._freeAreas.length>0;)this.freeRectangle(this._freeAreas.pop());for(this._width=t,this._height=e,this._packedWidth=0,this._packedHeight=0,this._freeAreas.push(this.allocateRectangle(0,0,this._width,this._height));this._insertedRectangles.length>0;)this.freeSize(this._insertList.pop());this._padding=i},e.prototype.insertRectangle=function(t,e,i){var n=this.allocateSize(t,e,i);this._insertList.push(n)},e.prototype.packRectangles=function(t){for(void 0===t&&(t=!0),t&&this._insertList.sort(function(t,e){return t.width-e.width});this._insertList.length>0;){var e=this._insertList.pop(),i=e.width,n=e.height,r=this.getFreeAreaIndex(i,n);if(r>=0){var o=this._freeAreas[r],s=this.allocateRectangle(o.x,o.y,i,n);for(s.id=e.id,this.generateNewFreeAreas(s,this._freeAreas,this._newFreeAreas);this._newFreeAreas.length>0;)this._freeAreas.push(this._newFreeAreas.pop());this._insertedRectangles.push(s),s.right>this._packedWidth&&(this._packedWidth=s.right),s.bottom>this._packedHeight&&(this._packedHeight=s.bottom)}this.freeSize(e)}return this.rectangleCount},e.prototype.getRectangle=function(t,e){var i=this._insertedRectangles[t];return e.x=i.x,e.y=i.y,e.width=i.width,e.height=i.height,e},e.prototype.getRectangleId=function(t){return this._insertedRectangles[t].id},e.prototype.generateNewFreeAreas=function(t,e,i){var n=t.x,r=t.y,o=t.right+1+this._padding,s=t.bottom+1+this._padding,a=null;0==this._padding&&(a=t);for(var h=e.length-1;h>=0;h--){var c=e[h];if(!(n>=c.right||o<=c.x||r>=c.bottom||s<=c.y)){null==a&&(a=this.allocateRectangle(t.x,t.y,t.width+this._padding,t.height+this._padding)),this.generateDividedAreas(a,c,i);var u=e.pop();h=0;e--)for(var i=t[e],n=t.length-1;n>=0;n--)if(e!=n){var r=t[n];if(i.x>=r.x&&i.y>=r.y&&i.right<=r.right&&i.bottom<=r.bottom){this.freeRectangle(i);var o=t.pop();e0&&(i.push(this.allocateRectangle(t.right,e.y,r,e.height)),n++);var o=t.x-e.x;o>0&&(i.push(this.allocateRectangle(e.x,e.y,o,e.height)),n++);var s=e.bottom-t.bottom;s>0&&(i.push(this.allocateRectangle(e.x,t.bottom,e.width,s)),n++);var a=t.y-e.y;a>0&&(i.push(this.allocateRectangle(e.x,e.y,e.width,a)),n++),0==n&&(t.width=0;s--){var a=this._freeAreas[s];if(a.x0){var r=this._sortableSizeStack.pop();return r.width=e,r.height=i,r.id=n,r}return new t.SortableSize(e,i,n)},e.prototype.freeSize=function(t){this._sortableSizeStack.push(t)},e.prototype.allocateRectangle=function(e,i,n,r){if(this._rectangleStack.length>0){var o=this._rectangleStack.pop();return o.x=e,o.y=i,o.width=n,o.height=r,o.right=e+n,o.bottom=i+r,o}return new t.IntegerRectangle(e,i,n,r)},e.prototype.freeRectangle=function(t){this._rectangleStack.push(t)},e}();t.RectanglePacker=e}(es||(es={})),function(t){var e=function(){return function(t,e,i){this.width=t,this.height=e,this.id=i}}();t.SortableSize=e}(es||(es={})),function(t){var e=function(){return function(t){this.assets=t}}();t.TextureAssets=e;var i=function(){return function(){}}();t.TextureAsset=i}(es||(es={})),function(t){var e=function(){return function(t,e){this.texture=t,this.id=e}}();t.TextureToPack=e}(es||(es={})),function(t){var e=function(){function e(){this._timeInSeconds=0,this._repeats=!1,this._isDone=!1,this._elapsedTime=0}return e.prototype.getContext=function(){return this.context},e.prototype.reset=function(){this._elapsedTime=0},e.prototype.stop=function(){this._isDone=!0},e.prototype.tick=function(){return!this._isDone&&this._elapsedTime>this._timeInSeconds&&(this._elapsedTime-=this._timeInSeconds,this._onTime(this),this._isDone||this._repeats||(this._isDone=!0)),this._elapsedTime+=t.Time.deltaTime,this._isDone},e.prototype.initialize=function(t,e,i,n){this._timeInSeconds=t,this._repeats=e,this.context=i,this._onTime=n},e.prototype.unload=function(){this.context=null,this._onTime=null},e}();t.Timer=e}(es||(es={})),function(t){var e=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t._timers=[],t}return __extends(i,e),i.prototype.update=function(){for(var t=this._timers.length-1;t>=0;t--)this._timers[t].tick()&&(this._timers[t].unload(),this._timers.removeAt(t))},i.prototype.schedule=function(e,i,n,r){var o=new t.Timer;return o.initialize(e,i,n,r),this._timers.push(o),o},i}(t.GlobalManager);t.TimerManager=e}(es||(es={})); \ No newline at end of file +window.es={},window.__extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();var transform,__awaiter=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(r,o){function s(t){try{h(n.next(t))}catch(t){o(t)}}function a(t){try{h(n.throw(t))}catch(t){o(t)}}function h(t){t.done?r(t.value):new i(function(e){e(t.value)}).then(s,a)}h((n=n.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]-1}(this,t)},Array.prototype.firstOrDefault=function(t){return function(t,e){var i=t.findIndex(e);return-1==i?null:t[i]}(this,t)},Array.prototype.find=function(t){return function(t,e){return t.firstOrDefault(e)}(this,t)},Array.prototype.where=function(t){return function(t,e){if("function"==typeof t.reduce)return t.reduce(function(i,n,r){return e.call(arguments[2],n,r,t)&&i.push(n),i},[]);for(var i=[],n=0,r=t.length;n=0&&t.splice(i,1)}while(i>=0)}(this,t)},Array.prototype.remove=function(t){return function(t,e){var i=t.findIndex(function(t){return t===e});return i>=0&&(t.splice(i,1),!0)}(this,t)},Array.prototype.removeAt=function(t){return function(t,e){t.splice(e,1)}(this,t)},Array.prototype.removeRange=function(t,e){return function(t,e,i){t.splice(e,i)}(this,t,e)},Array.prototype.select=function(t){return function(t,e){if("function"==typeof t.reduce)return t.reduce(function(i,n,r){return i.push(e.call(arguments[2],n,r,t)),i},[]);for(var i=[],n=0,r=t.length;no?1:-1}),t}(this,t,e)},Array.prototype.orderByDescending=function(t,e){return function(t,e,i){return t.sort(function(t,n){var r=e(t),o=e(n);return i?-i(r,o):r0;){if("break"===u())break}return s?this.recontructPath(a,n,r):null},e.recontructPath=function(t,e,i){var n=[],r=i;for(n.push(i);r!=e;)r=this.getKey(t,r),n.push(r);return n.reverse(),n},e.hasKey=function(e,i){for(var n,r=e.keys();!(n=r.next()).done;){if(n.value instanceof t.Vector2&&i instanceof t.Vector2&&n.value.equals(i))return!0;if(n.value==i)return!0}return!1},e.getKey=function(e,i){for(var n,r,o=e.keys(),s=e.values();n=o.next(),r=s.next(),!n.done;){if(n.value instanceof t.Vector2&&i instanceof t.Vector2&&n.value.equals(i))return r.value;if(n.value==i)return r.value}return null},e}();t.AStarPathfinder=e;var i=function(t){function e(e){var i=t.call(this)||this;return i.data=e,i}return __extends(e,t),e}(t.PriorityQueueNode)}(es||(es={})),function(t){var e=function(){function e(e,i){this.dirs=[new t.Vector2(1,0),new t.Vector2(0,-1),new t.Vector2(-1,0),new t.Vector2(0,1)],this.walls=[],this.weightedNodes=[],this.defaultWeight=1,this.weightedNodeWeight=5,this._neighbors=new Array(4),this._width=e,this._height=i}return e.prototype.isNodeInBounds=function(t){return 0<=t.x&&t.x=this._nodes.length?(console.error("node.QueueIndex has been corrupted. Did you change it manually? Or add this node to another queue?"),!1):this._nodes[t.queueIndex]==t:(console.error("node cannot be null"),!1)},t.prototype.enqueue=function(t,e){t.priority=e,this._numNodes++,this._nodes[this._numNodes]=t,t.queueIndex=this._numNodes,t.insertionIndex=this._numNodesEverEnqueued++,this.cascadeUp(this._nodes[this._numNodes])},t.prototype.dequeue=function(){var t=this._nodes[1];return this.remove(t),t},t.prototype.remove=function(t){if(t.queueIndex==this._numNodes)return this._nodes[this._numNodes]=null,void this._numNodes--;var e=this._nodes[this._numNodes];this.swap(t,e),delete this._nodes[this._numNodes],this._numNodes--,this.onNodeUpdated(e)},t.prototype.isValidQueue=function(){for(var t=1;t0&&this.hasHigherPriority(t,i)?this.cascadeUp(t):this.cascadeDown(t)},t.prototype.cascadeDown=function(t){for(var e,i=t.queueIndex;;){e=t;var n=2*i;if(n>this._numNodes){t.queueIndex=i,this._nodes[i]=t;break}var r=this._nodes[n];this.hasHigherPriority(r,e)&&(e=r);var o=n+1;if(o<=this._numNodes){var s=this._nodes[o];this.hasHigherPriority(s,e)&&(e=s)}if(e==t){t.queueIndex=i,this._nodes[i]=t;break}this._nodes[i]=e;var a=e.queueIndex;e.queueIndex=i,i=a}},t.prototype.cascadeUp=function(t){for(var e=Math.floor(t.queueIndex/2);e>=1;){var i=this._nodes[e];if(this.hasHigherPriority(i,t))break;this.swap(t,i),e=Math.floor(t.queueIndex/2)}},t.prototype.swap=function(t,e){this._nodes[t.queueIndex]=e,this._nodes[e.queueIndex]=t;var i=t.queueIndex;t.queueIndex=e.queueIndex,e.queueIndex=i},t.prototype.hasHigherPriority=function(t,e){return t.priority0;){if("break"===h())break}return o?t.AStarPathfinder.recontructPath(a,i,n):null},e.hasKey=function(t,e){for(var i,n=t.keys();!(i=n.next()).done;)if(JSON.stringify(i.value)==JSON.stringify(e))return!0;return!1},e}();t.BreadthFirstPathfinder=e}(es||(es={})),function(t){var e=function(){function t(){this.edges=new Map}return t.prototype.addEdgesForNode=function(t,e){return this.edges.set(t,e),this},t.prototype.getNeighbors=function(t){return this.edges.get(t)},t}();t.UnweightedGraph=e}(es||(es={})),function(t){var e=function(){function e(t,e){this.x=0,this.y=0,this.x=t||0,this.y=null!=e?e:this.x}return Object.defineProperty(e,"zero",{get:function(){return new e(0,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"one",{get:function(){return new e(1,1)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"unitX",{get:function(){return new e(1,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"unitY",{get:function(){return new e(0,1)},enumerable:!0,configurable:!0}),e.add=function(t,i){var n=new e(0,0);return n.x=t.x+i.x,n.y=t.y+i.y,n},e.divide=function(t,i){var n=new e(0,0);return n.x=t.x/i.x,n.y=t.y/i.y,n},e.multiply=function(t,i){var n=new e(0,0);return n.x=t.x*i.x,n.y=t.y*i.y,n},e.subtract=function(t,i){var n=new e(0,0);return n.x=t.x-i.x,n.y=t.y-i.y,n},e.normalize=function(t){var i=new e(t.x,t.y),n=1/Math.sqrt(i.x*i.x+i.y*i.y);return i.x*=n,i.y*=n,i},e.dot=function(t,e){return t.x*e.x+t.y*e.y},e.distanceSquared=function(t,e){var i=t.x-e.x,n=t.y-e.y;return i*i+n*n},e.clamp=function(i,n,r){return new e(t.MathHelper.clamp(i.x,n.x,r.x),t.MathHelper.clamp(i.y,n.y,r.y))},e.lerp=function(i,n,r){return new e(t.MathHelper.lerp(i.x,n.x,r),t.MathHelper.lerp(i.y,n.y,r))},e.transform=function(t,i){return new e(t.x*i.m11+t.y*i.m21+i.m31,t.x*i.m12+t.y*i.m22+i.m32)},e.distance=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)},e.angle=function(i,n){return i=e.normalize(i),n=e.normalize(n),Math.acos(t.MathHelper.clamp(e.dot(i,n),-1,1))*t.MathHelper.Rad2Deg},e.negate=function(t){return t.x=-t.x,t.y=-t.y,t},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.divide=function(t){return this.x/=t.x,this.y/=t.y,this},e.prototype.multiply=function(t){return this.x*=t.x,this.y*=t.y,this},e.prototype.subtract=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.normalize=function(){var t=1/Math.sqrt(this.x*this.x+this.y*this.y);this.x*=t,this.y*=t},e.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lengthSquared=function(){return this.x*this.x+this.y*this.y},e.prototype.round=function(){return new e(Math.round(this.x),Math.round(this.y))},e.prototype.equals=function(t){return t instanceof e&&(t.x==this.x&&t.y==this.y)},e}();t.Vector2=e}(es||(es={})),function(t){var e=function(){function e(t,i,n){void 0===n&&(n=!1),this.walls=[],this._neighbors=new Array(4),this._width=t,this._hegiht=i,this._dirs=n?e.COMPASS_DIRS:e.CARDINAL_DIRS}return e.prototype.isNodeInBounds=function(t){return 0<=t.x&&t.x0;){if("break"===u())break}return s?this.recontructPath(a,n,r):null},i.recontructPath=function(t,e,i){var n=[],r=i;for(n.push(i);r!=e;)r=this.getKey(t,r),n.push(r);return n.reverse(),n},i.hasKey=function(t,e){for(var i,n=t.keys();!(i=n.next()).done;)if(JSON.stringify(i.value)==JSON.stringify(e))return!0;return!1},i.getKey=function(t,e){for(var i,n,r=t.keys(),o=t.values();i=r.next(),n=o.next(),!i.done;)if(JSON.stringify(i.value)==JSON.stringify(e))return n.value;return null},i}();t.WeightedPathfinder=i}(es||(es={})),function(t){var e=function(){function e(){this._opened=new Array(e.MAX_NODES),this._closed=new Array(e.MAX_NODES)}return e.prototype.clear=function(){for(var e=0;e0},e.prototype.removeOpened=function(t){this._numOpened>0&&(this._opened[this._lastFoundOpened]=this._opened[this._numOpened-1]),this._numOpened--},e.prototype.removeClosed=function(t){this._numClosed>0&&(this._closed[this._lastFoundClosed]=this._closed[this._numClosed-1]),this._numClosed--},e.prototype.isOpen=function(t){return this._opened.indexOf(t)>-1},e.prototype.isClosed=function(t){return this._closed.indexOf(t)>-1},e.prototype.addToOpenList=function(t){this._opened[this._numOpened++]=t},e.prototype.addToClosedList=function(t){this._closed[this._numClosed++]=t},e.prototype.removeCheapestOpenNode=function(){var t=Number.MAX_VALUE;this._lastFoundOpened=-1;for(var e=0;e-1?e:(this._actions.push(t),this._actions.length-1)},e.MAX_CONDITIONS=64,e}();t.ActionPlanner=e}(es||(es={})),function(t){var e=function(){function e(){this._planner=new t.ActionPlanner}return e.prototype.plan=function(e){void 0===e&&(e=!1);var i=null;if(e&&(i=[]),this.actions=this._planner.plan(this.getWorldState(),this.getGoalState(),i),null!=i&&i.length>0){console.log("---- ActionPlanner plan ----"),console.log("plan cost = "+i[i.length-1].costSoFar),console.log(" start\t"+this.getWorldState().describe(this._planner));for(var n=0;n0},e}();t.Agent=e}(es||(es={})),function(t){var e=function(){function e(t,e,i){this.planner=t,this.values=e,this.dontCare=i}return e.create=function(t){return new e(t,0,-1)},e.prototype.set=function(t,e){return"string"==typeof t?this.set(this.planner.findConditionNameIndex(t),e):(this.values=e?this.values|1<0&&(i+=", "),i+=o?r.toUpperCase():r}return i},e}();t.WorldState=e}(es||(es={})),function(t){var e=function(e){function i(){var n=e.call(this)||this;return n._globalManagers=[],n._coroutineManager=new t.CoroutineManager,n._timerManager=new t.TimerManager,n._frameCounterElapsedTime=0,n._frameCounter=0,i._instance=n,i.emitter=new t.Emitter,i.content=new t.ContentManager,n.addEventListener(egret.Event.ADDED_TO_STAGE,n.onAddToStage,n),i.registerGlobalManager(n._coroutineManager),i.registerGlobalManager(n._timerManager),n}return __extends(i,e),Object.defineProperty(i,"Instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),Object.defineProperty(i,"scene",{get:function(){return this._instance?this._instance._scene:null},set:function(t){t?null==this._instance._scene?(this._instance.addChild(t),this._instance._scene=t,this._instance._scene.begin(),i.Instance.onSceneChanged()):this._instance._nextScene=t:console.error("场景不能为空")},enumerable:!0,configurable:!0}),i.startSceneTransition=function(t){if(!this._instance._sceneTransition)return this._instance._sceneTransition=t,t;console.warn("在前一个场景完成之前,不能开始一个新的场景转换。")},i.registerGlobalManager=function(t){this._instance._globalManagers.push(t),t.enabled=!0},i.unregisterGlobalManager=function(t){this._instance._globalManagers.remove(t),t.enabled=!1},i.getGlobalManager=function(t){for(var e=0;e=1&&(this._frameCounter=0,this._frameCounterElapsedTime-=1)},i.prototype.endDebugDraw=function(){t.TimeRuler.Instance.endMark("draw"),t.TimeRuler.Instance.render()},i.prototype.onSceneChanged=function(){i.emitter.emit(t.CoreEvents.SceneChanged),t.Time.sceneChanged()},i.prototype.onGraphicsDeviceReset=function(){i.emitter.emit(t.CoreEvents.GraphicsDeviceReset)},i.prototype.initialize=function(){t.Graphics.Instance=new t.Graphics},i.prototype.update=function(){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(i){switch(i.label){case 0:if(t.Time.update(egret.getTimer()),t.Input.update(),!this._scene)return[3,2];for(e=this._globalManagers.length-1;e>=0;e--)this._globalManagers[e].enabled&&this._globalManagers[e].update();return this._sceneTransition&&(!this._sceneTransition||this._sceneTransition.loadsNewScene&&!this._sceneTransition.isNewSceneLoaded)||this._scene.update(),this._nextScene?(this._scene.parent&&this._scene.parent.removeChild(this._scene),this._scene.end(),this._scene=this._nextScene,this._nextScene=null,this.onSceneChanged(),[4,this._scene.begin()]):[3,2];case 1:i.sent(),this.addChild(this._scene),i.label=2;case 2:return[4,this.draw()];case 3:return i.sent(),[2]}})})},i.prototype.onAddToStage=function(){i.graphicsDevice=new t.GraphicsDevice,this.addEventListener(egret.Event.RESIZE,this.onGraphicsDeviceReset,this),this.addEventListener(egret.StageOrientationEvent.ORIENTATION_CHANGE,this.onOrientationChanged,this),this.addEventListener(egret.Event.ENTER_FRAME,this.update,this),t.Input.initialize(),KeyboardUtils.init(),this.initialize()},i.debugRenderEndabled=!1,i}(egret.DisplayObjectContainer);t.Core=e}(es||(es={})),function(t){var e=function(){function t(){}return t.renderableBounds=16776960,t.renderableCenter=10040012,t.colliderBounds=5592405,t.colliderEdge=9109504,t.colliderPosition=16776960,t.colliderCenter=16711680,t}();t.Colors=e;var i=function(){function e(){}return Object.defineProperty(e,"lineSizeMultiplier",{get:function(){return Math.max(Math.ceil(t.Core.scene.x/t.Core.scene.width),1)},enumerable:!0,configurable:!0}),e}();t.Size=i;var n=function(){function e(){}return e.drawHollowRect=function(e,i,n){void 0===n&&(n=0),this._debugDrawItems.push(new t.DebugDrawItem(e,i,n))},e.render=function(){if(this._debugDrawItems.length>0){var e=new egret.Shape;t.Core.scene&&t.Core.scene.addChild(e);for(var i=this._debugDrawItems.length-1;i>=0;i--){this._debugDrawItems[i].draw(e)&&this._debugDrawItems.removeAt(i)}}},e._debugDrawItems=[],e}();t.Debug=n}(es||(es={})),function(t){var e=function(){function t(){}return t.verletParticle=14431326,t.verletConstraintEdge=4406838,t}();t.DebugDefaults=e}(es||(es={})),function(t){var e;!function(t){t[t.line=0]="line",t[t.hollowRectangle=1]="hollowRectangle",t[t.pixel=2]="pixel",t[t.text=3]="text"}(e=t.DebugDrawType||(t.DebugDrawType={}));var i=function(){function i(t,i,n){this.rectangle=t,this.color=i,this.duration=n,this.drawType=e.hollowRectangle}return i.prototype.draw=function(i){switch(this.drawType){case e.line:case e.hollowRectangle:case e.pixel:case e.text:}return this.duration-=t.Time.deltaTime,this.duration<0},i}();t.DebugDrawItem=i}(es||(es={})),function(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.updateInterval=1,e.debugDisplayObject=new egret.DisplayObjectContainer,e._enabled=!0,e._updateOrder=0,e}return __extends(e,t),Object.defineProperty(e.prototype,"transform",{get:function(){return this.entity.transform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.entity?this.entity.enabled&&this._enabled:this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOrder",{get:function(){return this._updateOrder},set:function(t){this.setUpdateOrder(t)},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){},e.prototype.onAddedToEntity=function(){},e.prototype.onRemovedFromEntity=function(){},e.prototype.onEntityTransformChanged=function(t){},e.prototype.debugRender=function(t){},e.prototype.onEnabled=function(){},e.prototype.onDisabled=function(){},e.prototype.update=function(){},e.prototype.setEnabled=function(t){return this._enabled!=t&&(this._enabled=t,this._enabled?this.onEnabled():this.onDisabled()),this},e.prototype.setUpdateOrder=function(t){return this._updateOrder!=t&&(this._updateOrder=t),this},e}(egret.HashObject);t.Component=e}(es||(es={})),function(t){!function(t){t[t.GraphicsDeviceReset=0]="GraphicsDeviceReset",t[t.SceneChanged=1]="SceneChanged",t[t.OrientationChanged=2]="OrientationChanged"}(t.CoreEvents||(t.CoreEvents={}))}(es||(es={})),function(t){var e=function(){function e(i){this.updateInterval=1,this._tag=0,this._enabled=!0,this._updateOrder=0,this.components=new t.ComponentList(this),this.transform=new t.Transform(this),this.name=i,this.id=e._idGenerator++,this.componentBits=new t.BitSet}return Object.defineProperty(e.prototype,"isDestroyed",{get:function(){return this._isDestroyed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tag",{get:function(){return this._tag},set:function(t){this.setTag(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOrder",{get:function(){return this._updateOrder},set:function(t){this.setUpdateOrder(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this.transform.parent},set:function(t){this.transform.setParent(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childCount",{get:function(){return this.transform.childCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.transform.position},set:function(t){this.transform.setPosition(t.x,t.y)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localPosition",{get:function(){return this.transform.localPosition},set:function(t){this.transform.setLocalPosition(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(t){this.transform.setRotation(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDegrees",{get:function(){return this.transform.rotationDegrees},set:function(t){this.transform.setRotationDegrees(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localRotation",{get:function(){return this.transform.localRotation},set:function(t){this.transform.setLocalRotation(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localRotationDegrees",{get:function(){return this.transform.localRotationDegrees},set:function(t){this.transform.setLocalRotationDegrees(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this.transform.scale},set:function(t){this.transform.setScale(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localScale",{get:function(){return this.transform.localScale},set:function(t){this.transform.setLocalScale(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"worldInverseTransform",{get:function(){return this.transform.worldInverseTransform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localToWorldTransform",{get:function(){return this.transform.localToWorldTransform},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"worldToLocalTransform",{get:function(){return this.transform.worldToLocalTransform},enumerable:!0,configurable:!0}),e.prototype.onTransformChanged=function(t){this.components.onEntityTransformChanged(t)},e.prototype.setTag=function(t){return this._tag!=t&&(this.scene&&this.scene.entities.removeFromTagList(this),this._tag=t,this.scene&&this.scene.entities.addToTagList(this)),this},e.prototype.setEnabled=function(t){return this._enabled!=t&&(this._enabled=t,this._enabled?this.components.onEntityEnabled():this.components.onEntityDisabled()),this},e.prototype.setUpdateOrder=function(t){if(this._updateOrder!=t)return this._updateOrder=t,this.scene&&(this.scene.entities.markEntityListUnsorted(),this.scene.entities.markTagUnsorted(this.tag)),this},e.prototype.destroy=function(){this._isDestroyed=!0,this.scene.entities.remove(this),this.transform.parent=null;for(var t=this.transform.childCount-1;t>=0;t--){this.transform.getChild(t).entity.destroy()}},e.prototype.detachFromScene=function(){this.scene.entities.remove(this),this.components.deregisterAllComponents();for(var t=0;t=0;t--)this._sceneComponents[t].enabled&&this._sceneComponents[t].update();this.entityProcessors&&this.entityProcessors.update(),this.entities.update(),this.entityProcessors&&this.entityProcessors.lateUpdate(),this.renderableComponents.updateList()},i.prototype.render=function(){if(0!=this._renderers.length)for(var t=0;te.x?-1:1,n=t.Vector2.normalize(t.Vector2.subtract(this.position,e));this.rotation=i*Math.acos(t.Vector2.dot(n,t.Vector2.unitY))},n.prototype.setLocalRotation=function(t){return this._localRotation=t,this._localDirty=this._positionDirty=this._localPositionDirty=this._localRotationDirty=this._localScaleDirty=!0,this.setDirty(e.rotationDirty),this},n.prototype.setLocalRotationDegrees=function(e){return this.setLocalRotation(t.MathHelper.toRadians(e))},n.prototype.setScale=function(e){return this._scale=e,this.parent?this.localScale=t.Vector2.divide(e,this.parent._scale):this.localScale=e,this},n.prototype.setLocalScale=function(t){return this._localScale=t,this._localDirty=this._positionDirty=this._localScaleDirty=!0,this.setDirty(e.scaleDirty),this},n.prototype.roundPosition=function(){this.position=this._position.round()},n.prototype.updateTransform=function(){this.hierarchyDirty!=e.clean&&(this.parent&&this.parent.updateTransform(),this._localDirty&&(this._localPositionDirty&&(this._translationMatrix=t.Matrix2D.create().translate(this._localPosition.x,this._localPosition.y),this._localPositionDirty=!1),this._localRotationDirty&&(this._rotationMatrix=t.Matrix2D.create().rotate(this._localRotation),this._localRotationDirty=!1),this._localScaleDirty&&(this._scaleMatrix=t.Matrix2D.create().scale(this._localScale.x,this._localScale.y),this._localScaleDirty=!1),this._localTransform=this._scaleMatrix.multiply(this._rotationMatrix),this._localTransform=this._localTransform.multiply(this._translationMatrix),this.parent||(this._worldTransform=this._localTransform,this._rotation=this._localRotation,this._scale=this._localScale,this._worldInverseDirty=!0),this._localDirty=!1),this.parent&&(this._worldTransform=this._localTransform.multiply(this.parent._worldTransform),this._rotation=this._localRotation+this.parent._rotation,this._scale=t.Vector2.multiply(this.parent._scale,this._localScale),this._worldInverseDirty=!0),this._worldToLocalDirty=!0,this._positionDirty=!0,this.hierarchyDirty=e.clean)},n.prototype.setDirty=function(e){if(0==(this.hierarchyDirty&e)){switch(this.hierarchyDirty|=e,e){case t.DirtyType.positionDirty:this.entity.onTransformChanged(transform.Component.position);break;case t.DirtyType.rotationDirty:this.entity.onTransformChanged(transform.Component.rotation);break;case t.DirtyType.scaleDirty:this.entity.onTransformChanged(transform.Component.scale)}this._children||(this._children=[]);for(var i=0;it&&(this._zoom=t),this._maximumZoom=t,this;console.error("maximumZoom must be greater than zero")},i.prototype.forceMatrixUpdate=function(){this._areMatrixedDirty=!0},i.prototype.onEntityTransformChanged=function(t){this._areMatrixedDirty=!0},i.prototype.zoomIn=function(t){this.zoom+=t},i.prototype.zoomOut=function(t){this.zoom-=t},i.prototype.worldToScreenPoint=function(e){return this.updateMatrixes(),t.Vector2Ext.transformR(e,this._transformMatrix,e),e},i.prototype.screenToWorldPoint=function(e){return this.updateMatrixes(),t.Vector2Ext.transformR(e,this._inverseTransformMatrix,e),e},i.prototype.onSceneRenderTargetSizeChanged=function(e,i){this._isProjectionMatrixDirty=!0;var n=this._origin;this.origin=new t.Vector2(e/2,i/2),this.entity.transform.position.add(t.Vector2.subtract(this._origin,n))},i.prototype.mouseToWorldPoint=function(){return this.screenToWorldPoint(t.Input.touchPosition)},i.prototype.updateMatrixes=function(){var e;this._areMatrixedDirty&&(this._transformMatrix=t.Matrix2D.create().translate(-this.entity.transform.position.x,-this.entity.transform.position.y),1!=this._zoom&&(e=t.Matrix2D.create().scale(this._zoom,this._zoom),this._transformMatrix=this._transformMatrix.multiply(e)),0!=this.entity.transform.rotation&&(e=t.Matrix2D.create().rotate(this.entity.transform.rotation),this._transformMatrix=this._transformMatrix.multiply(e)),e=t.Matrix2D.create().translate(Math.floor(this._origin.x),Math.floor(this._origin.y)),this._transformMatrix=this._transformMatrix.multiply(e),this._inverseTransformMatrix=this._transformMatrix.invert(),this._areBoundsDirty=!0,this._areMatrixedDirty=!1)},i}(t.Component);t.Camera=e}(es||(es={})),function(t){var e=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._shakeDirection=t.Vector2.zero,i._shakeOffset=t.Vector2.zero,i._shakeIntensity=0,i._shakeDegredation=.95,i}return __extends(i,e),i.prototype.shake=function(e,i,n){void 0===e&&(e=15),void 0===i&&(i=.9),void 0===n&&(n=t.Vector2.zero),this.enabled=!0,this._shakeIntensity=1)&&(i=.95),this._shakeDegredation=i)},i.prototype.update=function(){Math.abs(this._shakeIntensity)>0&&(this._shakeOffset=this._shakeDirection,0!=this._shakeOffset.x||0!=this._shakeOffset.y?this._shakeOffset.normalize():(this._shakeOffset.x=this._shakeOffset.x+Math.random()-.5,this._shakeOffset.y=this._shakeOffset.y+Math.random()-.5),this._shakeOffset.multiply(new t.Vector2(this._shakeIntensity)),this._shakeIntensity*=-this._shakeDegredation,Math.abs(this._shakeIntensity)<=.01&&(this._shakeIntensity=0,this.enabled=!1)),this.entity.scene.camera.position.add(this._shakeOffset)},i}(t.Component);t.CameraShake=e}(es||(es={})),function(t){var e=function(){function t(t){this._type=t,this._cache=[]}return t.prototype.obtain=function(){try{return this._cache.length>0?this._cache.shift():new this._type}catch(t){throw new Error(this._type+t)}},t.prototype.free=function(t){t.reset(),this._cache.push(t)},t}();t.ComponentPool=e}(es||(es={})),function(t){var e;!function(t){t[t.lockOn=0]="lockOn",t[t.cameraWindow=1]="cameraWindow"}(e=t.CameraStyle||(t.CameraStyle={}));var i=function(i){function n(n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=e.lockOn);var s=i.call(this)||this;return s.followLerp=.1,s.deadzone=new t.Rectangle,s.focusOffset=t.Vector2.zero,s.mapLockEnabled=!1,s.mapSize=new t.Rectangle,s._desiredPositionDelta=new t.Vector2,s._worldSpaceDeadZone=new t.Rectangle,s.rectShape=new egret.Shape,s._targetEntity=n,s._cameraStyle=o,s.camera=r,s}return __extends(n,i),n.prototype.onAddedToEntity=function(){this.camera||(this.camera=this.entity.scene.camera),this.follow(this._targetEntity,this._cameraStyle),t.Core.emitter.addObserver(t.CoreEvents.GraphicsDeviceReset,this.onGraphicsDeviceReset,this)},n.prototype.onGraphicsDeviceReset=function(){t.Core.schedule(0,!1,this,function(t){var e=t.context;e.follow(e._targetEntity,e._cameraStyle)})},n.prototype.update=function(){var e=t.Vector2.multiply(this.camera.bounds.size,new t.Vector2(.5));this._worldSpaceDeadZone.x=this.camera.position.x-e.x*t.Core.scene.scaleX+this.deadzone.x+this.focusOffset.x,this._worldSpaceDeadZone.y=this.camera.position.y-e.y*t.Core.scene.scaleY+this.deadzone.y+this.focusOffset.y,this._worldSpaceDeadZone.width=this.deadzone.width,this._worldSpaceDeadZone.height=this.deadzone.height,this._targetEntity&&this.updateFollow(),this.camera.position=t.Vector2.lerp(this.camera.position,t.Vector2.add(this.camera.position,this._desiredPositionDelta),this.followLerp),this.entity.transform.roundPosition(),this.mapLockEnabled&&(this.camera.position=this.clampToMapSize(this.camera.position),this.entity.transform.roundPosition())},n.prototype.debugRender=function(t){this.rectShape||this.debugDisplayObject.addChild(this.rectShape),this.rectShape.graphics.clear(),this._cameraStyle==e.lockOn?(this.rectShape.graphics.beginFill(9109504,0),this.rectShape.graphics.lineStyle(1,9109504),this.rectShape.graphics.drawRect(this._worldSpaceDeadZone.x-5-t.bounds.x,this._worldSpaceDeadZone.y-5-t.bounds.y,this._worldSpaceDeadZone.width,this._worldSpaceDeadZone.height),this.rectShape.graphics.endFill()):(this.rectShape.graphics.beginFill(9109504,0),this.rectShape.graphics.lineStyle(1,9109504),this.rectShape.graphics.drawRect(this._worldSpaceDeadZone.x-t.bounds.x,this._worldSpaceDeadZone.y-t.bounds.y,this._worldSpaceDeadZone.width,this._worldSpaceDeadZone.height),this.rectShape.graphics.endFill())},n.prototype.clampToMapSize=function(e){var i=t.Vector2.multiply(this.camera.bounds.size,new t.Vector2(.5)).add(new t.Vector2(this.mapSize.x,this.mapSize.y)),n=new t.Vector2(this.mapSize.width-i.x,this.mapSize.height-i.y);return t.Vector2.clamp(e,i,n)},n.prototype.follow=function(i,n){void 0===n&&(n=e.cameraWindow),this._targetEntity=i,this._cameraStyle=n;var r=this.camera.bounds;switch(this._cameraStyle){case e.cameraWindow:var o=r.width/6,s=r.height/3;this.deadzone=new t.Rectangle((r.width-o)/2,(r.height-s)/2,o,s);break;case e.lockOn:this.deadzone=new t.Rectangle(r.width/2,r.height/2,10,10)}},n.prototype.updateFollow=function(){if(this._desiredPositionDelta.x=this._desiredPositionDelta.y=0,this._cameraStyle==e.lockOn){var i=this._targetEntity.transform.position.x,n=this._targetEntity.transform.position.y;this._worldSpaceDeadZone.x>i?this._desiredPositionDelta.x=i-this._worldSpaceDeadZone.x:this._worldSpaceDeadZone.xn&&(this._desiredPositionDelta.y=n-this._worldSpaceDeadZone.y)}else{if(!this._targetCollider&&(this._targetCollider=this._targetEntity.getComponent(t.Collider),!this._targetCollider))return;var r=this._targetEntity.getComponent(t.Collider).bounds;this._worldSpaceDeadZone.containsRect(r)||(this._worldSpaceDeadZone.left>r.left?this._desiredPositionDelta.x=r.left-this._worldSpaceDeadZone.left:this._worldSpaceDeadZone.rightr.top&&(this._desiredPositionDelta.y=r.top-this._worldSpaceDeadZone.top))}},n.prototype.setCenteredDeadzone=function(e,i){if(this.camera){var n=this.camera.bounds;this.deadzone=new t.Rectangle((n.width-e)/2,(n.height-i)/2,e,i)}else console.error("相机是null。我们不能得到它的边界。请等到该组件添加到实体之后")},n}(t.Component);t.FollowCamera=i}(es||(es={})),function(t){var e=function(){function t(){}return t.prototype.compare=function(t,e){return t.updateOrder-e.updateOrder},t}();t.IUpdatableComparer=e}(es||(es={})),function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(t.Component);t.PooledComponent=e}(es||(es={})),function(t){var e=function(){function e(){this.updateOrder=0,this._enabled=!0}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),e.prototype.onEnabled=function(){},e.prototype.onDisabled=function(){},e.prototype.onRemovedFromScene=function(){},e.prototype.update=function(){},e.prototype.setEnabled=function(t){return this._enabled!=t&&(this._enabled=t,this._enabled),this},e.prototype.setUpdateOrder=function(e){return this.updateOrder!=e&&(this.updateOrder=e,t.Core.scene._sceneComponents.sort(this.compareTo)),this},e.prototype.compareTo=function(t){return this.updateOrder-t.updateOrder},e}();t.SceneComponent=e}(es||(es={})),function(t){var e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),i.prototype.onAddedToEntity=function(){this._triggerHelper=new t.ColliderTriggerHelper(this.entity)},i.prototype.calculateMovement=function(e,i){if(!this.entity.getComponent(t.Collider)||!this._triggerHelper)return!1;for(var n=this.entity.getComponents(t.Collider),r=0;r=2){this.polygonShape.graphics.beginFill(t.Colors.colliderEdge,0),this.polygonShape.graphics.lineStyle(t.Size.lineSizeMultiplier,t.Colors.colliderEdge);for(var n=0;no||this._loopMode==e.pingPongOnce&&s>2*o)return this.animationState=i.completed,this._elapsedTime=0,this.currentFrame=0,void(this.displayObject.texture=n.sprites[this.currentFrame].texture2D);var a=Math.floor(s/r),h=n.sprites.length;if(h>2&&(this._loopMode==e.pingPong||this._loopMode==e.pingPongOnce)){var c=h-1;this.currentFrame=c-Math.abs(c-a%(2*c))}else this.currentFrame=a%h;this.displayObject.texture=n.sprites[this.currentFrame].texture2D}},r.prototype.addAnimation=function(t,e){return!this.sprite&&e.sprites.length>0&&this.setSprite(e.sprites[0]),this._animations[t]=e,this},r.prototype.play=function(t,n){void 0===n&&(n=null),this.currentAnimation=this._animations[t],this.currentAnimationName=t,this.currentFrame=0,this.animationState=i.running,this.displayObject.texture=this.currentAnimation.sprites[0].texture2D,this._elapsedTime=0,this._loopMode=n||e.loop},r.prototype.isAnimationActive=function(t){return this.currentAnimation&&this.currentAnimationName==t},r.prototype.pause=function(){this.animationState=i.paused},r.prototype.unPause=function(){this.animationState=i.running},r.prototype.stop=function(){this.currentAnimation=null,this.currentAnimationName=null,this.currentFrame=0,this.animationState=i.none},r}(t.SpriteRenderer);t.SpriteAnimator=n}(es||(es={})),function(t){var e=egret.Bitmap,i=function(i){function n(e){void 0===e&&(e=null);var n=i.call(this)||this;n.displayObject=new egret.DisplayObjectContainer,n.displayObjectCache=new Map;for(var r=0,o=e;r>6;0!=(e&t.LONG_MASK)&&i++,this._bits=new Array(i)}return t.prototype.and=function(t){for(var e,i=Math.min(this._bits.length,t._bits.length),n=0;n=0;)this._bits[e]&=~t._bits[e]},t.prototype.cardinality=function(){for(var t=0,e=this._bits.length-1;e>=0;e--){var i=this._bits[e];if(0!=i)if(-1!=i){var n=((i=((i=(i>>1&0x5555555555555400)+(0x5555555555555400&i))>>2&0x3333333333333400)+(0x3333333333333400&i))>>32)+i;t+=((n=((n=(n>>4&252645135)+(252645135&n))>>8&16711935)+(16711935&n))>>16&65535)+(65535&n)}else t+=64}return t},t.prototype.clear=function(t){if(null!=t){var e=t>>6;this.ensure(e),this._bits[e]&=~(1<>6;return!(e>=this._bits.length)&&0!=(this._bits[e]&1<=0;)if(0!=(this._bits[e]&t._bits[e]))return!0;return!1},t.prototype.isEmpty=function(){for(var t=this._bits.length-1;t>=0;t--)if(this._bits[t])return!1;return!0},t.prototype.nextSetBit=function(t){for(var e=t>>6,i=1<>6;this.ensure(i),this._bits[i]|=1<=this._bits.length){var e=new Number[t+1];e=this._bits.copyWithin(0,0,this._bits.length),this._bits=e}},t.LONG_MASK=63,t}();t.BitSet=e}(es||(es={})),function(t){var e=function(){function e(e){this._components=new t.FastList,this._componentsToAdd=[],this._componentsToRemove=[],this._tempBufferList=[],this._entity=e}return Object.defineProperty(e.prototype,"count",{get:function(){return this._components.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._components.buffer},enumerable:!0,configurable:!0}),e.prototype.markEntityListUnsorted=function(){this._isComponentListUnsorted=!0},e.prototype.add=function(t){this._componentsToAdd.push(t)},e.prototype.remove=function(t){this._componentsToRemove.contains(t)&&console.warn("您正在尝试删除一个您已经删除的组件("+t+")"),this._componentsToAdd.contains(t)?this._componentsToAdd.remove(t):this._componentsToRemove.push(t)},e.prototype.removeAllComponents=function(){for(var t=0;t0){for(var i=0;i0){i=0;for(var n=this._componentsToAdd.length;i0){for(var e=0,i=this._entitiesToRemove;e0;){(n=this._addToSceneEntityList.shift()).onAddedToScene()}if(this._entitiesToAdded.length>0)if(this.frameAllocate&&this._entitiesToAdded.length>this.maxAllocate){for(var r=0;r0;)this.perEntityAddToScene();this._isEntityListUnsorted=!0}this._isEntityListUnsorted&&(this._entities.sort(function(t,e){return t.compareTo(e)}),this._isEntityListUnsorted=!1),0==this._addToSceneEntityList.length&&this._unsortedTags.size>0&&(this._unsortedTags.forEach(function(e){t._entityDict.get(e).sort(function(t,e){return t.compareTo(e)})}),this._unsortedTags.clear())},e.prototype.perEntityAddToScene=function(){var t=this._entitiesToAdded.shift();this._addToSceneEntityList.push(t),-1==this._entities.findIndex(function(e){return e.id==t.id})&&(this._entities.push(t),t.scene=this.scene,this.addToTagList(t),this.scene.entityProcessors.onEntityAdded(t))},e.prototype.findEntity=function(t){for(var e=0;ethis._buckets.length){this._buckets=new Array(t.HashHelpers.expandPrime(this._collisions)),this._collisions=0;for(var l=0;l=e?t%e:t},e}();t.FasterDictionary=e;var i=function(){return function(t,e,i){void 0===i&&(i=-1),this.key=t,this.hashcode=e,this.previous=i,this.next=-1}}();t.FastNode=i}(es||(es={})),function(t){var e=function(){function e(t){void 0===t&&(t=5),this.length=0,this.buffer=new Array(t)}return e.prototype.clear=function(){this.buffer.length=0,this.length=0},e.prototype.reset=function(){this.length=0},e.prototype.add=function(t){this.length==this.buffer.length&&(this.buffer.length=Math.max(this.buffer.length<<1,10)),this.buffer[this.length++]=t},e.prototype.remove=function(e){for(var i=t.EqualityComparer.default(),n=0;n=this.length)throw new Error("index超出范围!");this.length--,this.buffer.removeAt(t)},e.prototype.contains=function(e){for(var i=t.EqualityComparer.default(),n=0;n=this.buffer.length&&(this.buffer.length=Math.max(this.buffer.length<<1,this.length+t))},e.prototype.addRange=function(t){for(var e=0,i=t;e=t)return i}for(e=1|t;ethis.maxPrimeArrayLength&&this.maxPrimeArrayLength>t?this.maxPrimeArrayLength:this.getPrime(e)},t.getHashCode=function(t){var e,i=0;if(0==(e="object"==typeof t?JSON.stringify(t):t.toString()).length)return i;for(var n=0;n=0;e=this.allSet.nextSetBit(e+1))if(!t.componentBits.get(e))return!1;return!(!this.exclusionSet.isEmpty()&&this.exclusionSet.intersects(t.componentBits))&&!(!this.oneSet.isEmpty()&&!this.oneSet.intersects(t.componentBits))},e.prototype.all=function(){for(var e=this,i=[],n=0;n0){for(var t=0,i=this._unsortedRenderLayers.length;t=e)return t;var n=!1;"-"==t.substr(0,1)&&(n=!0,t=t.substr(1));for(var r=e-i,o=0;o1?this.reverse(t.substring(1))+t.substring(0,1):t},t.cutOff=function(t,e,i,n){void 0===n&&(n=!0),e=Math.floor(e),i=Math.floor(i);var r=t.length;e>r&&(e=r);var o,s=e,a=e+i;return n?o=t.substring(0,s)+t.substr(a,r):(a=(s=r-1-e-i)+i,o=t.substring(0,s+1)+t.substr(a+1,r)),o},t.strReplace=function(t,e){for(var i=0,n=e.length;i",">",'"',""","'","'","®","®","©","©","™","™"],t}();!function(t){var e=function(){function e(){}return e.convertImageToCanvas=function(e,i){this.sharedCanvas||(this.sharedCanvas=egret.sys.createCanvas(),this.sharedContext=this.sharedCanvas.getContext("2d"));var n=e.$getTextureWidth(),r=e.$getTextureHeight();i||((i=egret.$TempRectangle).x=0,i.y=0,i.width=n,i.height=r),i.x=Math.min(i.x,n-1),i.y=Math.min(i.y,r-1),i.width=Math.min(i.width,n-i.x),i.height=Math.min(i.height,r-i.y);var o=Math.floor(i.width),s=Math.floor(i.height),a=this.sharedCanvas;if(a.style.width=o+"px",a.style.height=s+"px",this.sharedCanvas.width=o,this.sharedCanvas.height=s,"webgl"==egret.Capabilities.renderMode){var h=void 0;e.$renderBuffer?h=e:(egret.sys.systemRenderer.renderClear&&egret.sys.systemRenderer.renderClear(),(h=new egret.RenderTexture).drawToTexture(new egret.Bitmap(e)));for(var c=h.$renderBuffer.getPixels(i.x,i.y,o,s),u=0,l=0,p=0;p=0?"png":"jpg"});return wx.getFileSystemManager().saveFile({tempFilePath:o,filePath:wx.env.USER_DATA_PATH+"/"+i,success:function(t){}}),o},e.getPixel32=function(t,e,i){return egret.$warn(1041,"getPixel32","getPixels"),t.getPixels(e,i)},e.getPixels=function(t,e,i,n,r){if(void 0===n&&(n=1),void 0===r&&(r=1),"webgl"==egret.Capabilities.renderMode){var o=void 0;return t.$renderBuffer?o=t:(o=new egret.RenderTexture).drawToTexture(new egret.Bitmap(t)),o.$renderBuffer.getPixels(e,i,n,r)}try{this.convertImageToCanvas(t);return this.sharedContext.getImageData(e,i,n,r).data}catch(t){egret.$error(1039)}},e}();t.TextureUtils=e}(es||(es={})),function(t){var e=function(){function t(){}return t.update=function(t){var e=(t-this._lastTime)/1e3;this.deltaTime=e*this.timeScale,this.unscaledDeltaTime=e,this._timeSinceSceneLoad+=e,this.frameCount++,this._lastTime=t},t.sceneChanged=function(){this._timeSinceSceneLoad=0},t.checkEvery=function(t){return Math.floor(this._timeSinceSceneLoad/t)>Math.floor((this._timeSinceSceneLoad-this.deltaTime)/t)},t.deltaTime=0,t.timeScale=1,t.frameCount=0,t._lastTime=0,t}();t.Time=e}(es||(es={}));var TimeUtils=function(){function t(){}return t.monthId=function(t){void 0===t&&(t=null);var e=(t=t||new Date).getFullYear(),i=t.getMonth()+1;return parseInt(e+(i<10?"0":"")+i)},t.dateId=function(t){void 0===t&&(t=null);var e=(t=t||new Date).getMonth()+1,i=e<10?"0":"",n=t.getDate(),r=n<10?"0":"";return parseInt(t.getFullYear()+i+e+r+n)},t.weekId=function(t,e){void 0===t&&(t=null),void 0===e&&(e=!0),t=t||new Date;var i=new Date;i.setTime(t.getTime()),i.setDate(1),i.setMonth(0);var n=i.getFullYear(),r=i.getDay();0==r&&(r=7);var o=!1;r<=4?(o=r>1,i.setDate(i.getDate()-(r-1))):i.setDate(i.getDate()+7-r+1);var s=this.diffDay(t,i,!1);if(s<0)return i.setDate(1),i.setMonth(0),i.setDate(i.getDate()-1),this.weekId(i,!1);var a=s/7,h=Math.floor(a)+1;if(53==h){i.setTime(t.getTime()),i.setDate(i.getDate()-1);var c=i.getDay();if(0==c&&(c=7),e&&(!o||c<4))return i.setFullYear(i.getFullYear()+1),i.setDate(1),i.setMonth(0),this.weekId(i,!1)}return parseInt(n+"00"+(h>9?"":"0")+h)},t.diffDay=function(t,e,i){void 0===i&&(i=!1);var n=(t.getTime()-e.getTime())/864e5;return i?Math.ceil(n):Math.floor(n)},t.getFirstDayOfWeek=function(t){var e=(t=t||new Date).getDay()||7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1-e,0,0,0,0)},t.getFirstOfDay=function(t){return(t=t||new Date).setHours(0,0,0,0),t},t.getNextFirstOfDay=function(t){return new Date(this.getFirstOfDay(t).getTime()+864e5)},t.formatDate=function(t){var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();return e+"-"+i+"-"+(n=n<10?"0"+n:n)},t.formatDateTime=function(t){var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var r=t.getHours(),o=t.getMinutes();o=o<10?"0"+o:o;var s=t.getSeconds();return e+"-"+i+"-"+n+" "+r+":"+o+":"+(s=s<10?"0"+s:s)},t.parseDate=function(t){var e=Date.parse(t);return isNaN(e)?new Date:new Date(Date.parse(t.replace(/-/g,"/")))},t.secondToTime=function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=":"),void 0===i&&(i=!0);var n=Math.floor(t/3600),r=Math.floor(t%3600/60),o=Math.floor(t%3600%60),s=n.toString(),a=r.toString(),h=o.toString();return n<10&&(s="0"+s),r<10&&(a="0"+a),o<10&&(h="0"+h),i?s+e+a+e+h:a+e+h},t.timeToMillisecond=function(t,e){void 0===e&&(e=":");for(var i=t.split(e),n=0,r=i.length,o=0;o-1?this.os="iOS":n.indexOf("android")>-1&&(this.os="Android");var r=i.language;r=r.indexOf("zh")>-1?"zh-CN":"en-US",this.language=r}},e}(egret.Capabilities);t.GraphicsCapabilities=e}(es||(es={})),function(t){var e=function(){function e(){this.setup(),this.graphicsCapabilities=new t.GraphicsCapabilities,this.graphicsCapabilities.initialize(this)}return Object.defineProperty(e.prototype,"viewport",{get:function(){return this._viewport},enumerable:!0,configurable:!0}),e.prototype.setup=function(){this._viewport=new t.Viewport(0,0,t.Core._instance.stage.stageWidth,t.Core._instance.stage.stageHeight)},e}();t.GraphicsDevice=e}(es||(es={})),function(t){var e=function(){function e(t,e,i,n){this._x=t,this._y=e,this._width=i,this._height=n,this._minDepth=0,this._maxDepth=1}return Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aspectRatio",{get:function(){return 0!=this._height&&0!=this._width?this._width/this._height:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bounds",{get:function(){return new t.Rectangle(this._x,this._y,this._width,this._height)},set:function(t){this._x=t.x,this._y=t.y,this._width=t.width,this._height=t.height},enumerable:!0,configurable:!0}),e}();t.Viewport=e}(es||(es={})),function(t){var e=function(e){function i(){return e.call(this,t.PostProcessor.default_vert,i.blur_frag,{screenWidth:t.Core.graphicsDevice.viewport.width,screenHeight:t.Core.graphicsDevice.viewport.height})||this}return __extends(i,e),i.blur_frag="precision mediump float;\nuniform sampler2D uSampler;\nuniform float screenWidth;\nuniform float screenHeight;\nfloat normpdf(in float x, in float sigma)\n{\nreturn 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;\n}\nvoid main()\n{\nvec3 c = texture2D(uSampler, gl_FragCoord.xy / vec2(screenWidth, screenHeight).xy).rgb;\nconst int mSize = 11;\nconst int kSize = (mSize - 1)/2;\nfloat kernel[mSize];\nvec3 final_colour = vec3(0.0);\nfloat sigma = 7.0;\nfloat z = 0.0;\nfor (int j = 0; j <= kSize; ++j)\n{\nkernel[kSize+j] = kernel[kSize-j] = normpdf(float(j),sigma);\n}\nfor (int j = 0; j < mSize; ++j)\n{\nz += kernel[j];\n}\nfor (int i = -kSize; i <= kSize; ++i)\n{\nfor (int j = -kSize; j <= kSize; ++j)\n{\nfinal_colour += kernel[kSize+j]*kernel[kSize+i]*texture2D(uSampler, (gl_FragCoord.xy+vec2(float(i),float(j))) / vec2(screenWidth, screenHeight).xy).rgb;\n}\n}\ngl_FragColor = vec4(final_colour/(z*z), 1.0);\n}",i}(egret.CustomFilter);t.GaussianBlurEffect=e}(es||(es={})),function(t){var e=function(t){function e(){return t.call(this,e.vertSrc,e.fragmentSrc)||this}return __extends(e,t),e.vertSrc="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform vec2 projectionVector;\nvarying vec2 vTextureCoord;\nconst vec2 center = vec2(-1.0, 1.0);\nvoid main(void) {\n gl_Position = vec4( (aVertexPosition / projectionVector) + center , 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",e.fragmentSrc="precision lowp float;\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n#define SAMPLE_COUNT 15\nuniform vec2 _sampleOffsets[SAMPLE_COUNT];\nuniform float _sampleWeights[SAMPLE_COUNT];\nvoid main(void) {\nvec4 c = vec4(0, 0, 0, 0);\nfor( int i = 0; i < SAMPLE_COUNT; i++ )\n c += texture2D( uSampler, vTextureCoord + _sampleOffsets[i] ) * _sampleWeights[i];\ngl_FragColor = c;\n}",e}(egret.CustomFilter);t.PolygonLightEffect=e}(es||(es={})),function(t){var e=function(){function e(t){void 0===t&&(t=null),this.enabled=!0,this.effect=t}return e.prototype.onAddedToScene=function(e){this.scene=e,this.shape=new egret.Shape,this.shape.graphics.beginFill(16777215,1),this.shape.graphics.drawRect(0,0,t.Core.graphicsDevice.viewport.width,t.Core.graphicsDevice.viewport.height),this.shape.graphics.endFill(),e.addChild(this.shape)},e.prototype.process=function(){this.drawFullscreenQuad()},e.prototype.onSceneBackBufferSizeChanged=function(t,e){},e.prototype.unload=function(){this.effect&&(this.effect=null),this.scene.removeChild(this.shape),this.scene=null},e.prototype.drawFullscreenQuad=function(){this.scene.filters=[this.effect]},e.default_vert="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec2 aColor;\nuniform vec2 projectionVector;\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nconst vec2 center = vec2(-1.0, 1.0);\nvoid main(void) {\ngl_Position = vec4( (aVertexPosition / projectionVector) + center , 0.0, 1.0);\nvTextureCoord = aTextureCoord;\nvColor = vec4(aColor.x, aColor.x, aColor.x, aColor.x);\n}",e}();t.PostProcessor=e}(es||(es={})),function(t){var e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),i.prototype.onAddedToScene=function(i){e.prototype.onAddedToScene.call(this,i),this.effect=new t.GaussianBlurEffect},i}(t.PostProcessor);t.GaussianBlurPostProcessor=e}(es||(es={})),function(t){var e=function(){function t(t,e){void 0===e&&(e=null),this.renderOrder=0,this.shouldDebugRender=!0,this.camera=e,this.renderOrder=t}return Object.defineProperty(t.prototype,"wantsToRenderToSceneRenderTarget",{get:function(){return!!this.renderTexture},enumerable:!0,configurable:!0}),t.prototype.onAddedToScene=function(t){},t.prototype.unload=function(){},t.prototype.onSceneBackBufferSizeChanged=function(t,e){},t.prototype.compareTo=function(t){return this.renderOrder-t.renderOrder},t.prototype.beginRender=function(t){},t.prototype.renderAfterStateCheck=function(t,e){t.render(e)},t.prototype.debugRender=function(t,e){for(var i=0;i=0&&h=0&&ci?i:t},e.pointOnCirlce=function(i,n,r){var o=e.toRadians(r);return new t.Vector2(Math.cos(o)*o+i.x,Math.sin(o)*o+i.y)},e.isEven=function(t){return t%2==0},e.clamp01=function(t){return t<0?0:t>1?1:t},e.angleBetweenVectors=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)},e.incrementWithWrap=function(t,e){return++t==e?0:t},e.approach=function(t,e,i){return tn&&(n=s.x),s.yr&&(r=s.y)}return this.fromMinMax(e,i,n,r)},i.prototype.intersects=function(t){return t.leftthis.x+this.width)return!1}else{var n=1/t.direction.x,r=(this.x-t.start.x)*n,o=(this.x+this.width-t.start.x)*n;if(r>o){var s=r;r=o,o=s}if(e.value=Math.max(r,e.value),i=Math.min(o,i),e.value>i)return!1}if(Math.abs(t.direction.y)<1e-6){if(t.start.ythis.y+this.height)return!1}else{var a=1/t.direction.y,h=(this.y-t.start.y)*a,c=(this.y+this.height-t.start.y)*a;if(h>c){var u=h;h=c,c=u}if(e.value=Math.max(h,e.value),i=Math.max(c,i),e.value>i)return!1}return!0},i.prototype.containsRect=function(t){return this.x<=t.x&&t.x1)return!1;var u=(h.x*o.y-h.y*o.x)/a;return!(u<0||u>1)},i.lineToLineIntersection=function(e,i,n,r){var o=new t.Vector2(0,0),s=t.Vector2.subtract(i,e),a=t.Vector2.subtract(r,n),h=s.x*a.y-s.y*a.x;if(0==h)return o;var c=t.Vector2.subtract(n,e),u=(c.x*a.y-c.y*a.x)/h;if(u<0||u>1)return o;var l=(c.x*s.y-c.y*s.x)/h;return l<0||l>1?o:o=t.Vector2.add(e,new t.Vector2(u*s.x,u*s.y))},i.closestPointOnLine=function(e,i,n){var r=t.Vector2.subtract(i,e),o=t.Vector2.subtract(n,e),s=t.Vector2.dot(o,r)/t.Vector2.dot(r,r);return s=t.MathHelper.clamp(s,0,1),t.Vector2.add(e,new t.Vector2(r.x*s,r.y*s))},i.circleToCircle=function(e,i,n,r){return t.Vector2.distanceSquared(e,n)<(i+r)*(i+r)},i.circleToLine=function(e,i,n,r){return t.Vector2.distanceSquared(e,this.closestPointOnLine(n,r,e))=t&&r.y>=e&&r.x=t+n&&(s|=e.right),o.y=i+r&&(s|=e.bottom),s},i}();t.Collisions=i}(es||(es={})),function(t){var e=function(){function e(e,i,n,r,o){this.fraction=0,this.distance=0,this.point=t.Vector2.zero,this.normal=t.Vector2.zero,this.collider=e,this.fraction=i,this.distance=n,this.point=r,this.centroid=t.Vector2.zero}return e.prototype.setValues=function(t,e,i,n){this.collider=t,this.fraction=e,this.distance=i,this.point=n},e.prototype.setValuesNonCollider=function(t,e,i,n){this.fraction=t,this.distance=e,this.point=i,this.normal=n},e.prototype.reset=function(){this.collider=null,this.fraction=this.distance=0},e.prototype.toString=function(){return"[RaycastHit] fraction: "+this.fraction+", distance: "+this.distance+", normal: "+this.normal+", centroid: "+this.centroid+", point: "+this.point},e}();t.RaycastHit=e}(es||(es={})),function(t){var e=function(){function e(){}return e.reset=function(){this._spatialHash=new t.SpatialHash(this.spatialHashCellSize)},e.clear=function(){this._spatialHash.clear()},e.overlapCircleAll=function(t,e,i,n){if(void 0===n&&(n=-1),0!=i.length)return this._spatialHash.overlapCircle(t,e,i,n);console.error("An empty results array was passed in. No results will ever be returned.")},e.boxcastBroadphase=function(t,e){return void 0===e&&(e=this.allLayers),this._spatialHash.aabbBroadphase(t,null,e)},e.boxcastBroadphaseExcludingSelf=function(t,e,i){return void 0===i&&(i=this.allLayers),this._spatialHash.aabbBroadphase(e,t,i)},e.addCollider=function(t){e._spatialHash.register(t)},e.removeCollider=function(t){e._spatialHash.remove(t)},e.updateCollider=function(t){this._spatialHash.remove(t),this._spatialHash.register(t)},e.linecast=function(t,i,n){return void 0===n&&(n=e.allLayers),this._hitArray[0].reset(),this.linecastAll(t,i,this._hitArray,n),this._hitArray[0]},e.linecastAll=function(t,i,n,r){return void 0===r&&(r=e.allLayers),0==n.length?(console.warn("传入了一个空的hits数组。没有点击会被返回"),0):this._spatialHash.linecast(t,i,n,r)},e.debugDraw=function(t){this._spatialHash.debugDraw(t,2)},e.spatialHashCellSize=100,e.allLayers=-1,e.raycastsHitTriggers=!1,e.raycastsStartInColliders=!1,e._hitArray=[new t.RaycastHit],e}();t.Physics=e}(es||(es={})),function(t){var e=function(){return function(e,i){this.start=e,this.end=i,this.direction=t.Vector2.subtract(this.end,this.start)}}();t.Ray2D=e}(es||(es={})),function(t){var e=function(){function e(e){void 0===e&&(e=100),this.gridBounds=new t.Rectangle,this._overlapTestCircle=new t.Circle(0),this._cellDict=new i,this._tempHashSet=[],this._cellSize=e,this._inverseCellSize=1/this._cellSize,this._raycastParser=new n}return e.prototype.register=function(e){var i=e.bounds;e.registeredPhysicsBounds=i;var n=this.cellCoords(i.x,i.y),r=this.cellCoords(i.right,i.bottom);this.gridBounds.contains(n.x,n.y)||(this.gridBounds=t.RectangleExt.union(this.gridBounds,n)),this.gridBounds.contains(r.x,r.y)||(this.gridBounds=t.RectangleExt.union(this.gridBounds,r));for(var o=n.x;o<=r.x;o++)for(var s=n.y;s<=r.y;s++){var a=this.cellAtPosition(o,s,!0);a.firstOrDefault(function(t){return t.hashCode==e.hashCode})||a.push(e)}},e.prototype.remove=function(t){for(var e=t.registeredPhysicsBounds,i=this.cellCoords(e.x,e.y),n=this.cellCoords(e.right,e.bottom),r=i.x;r<=n.x;r++)for(var o=i.y;o<=n.y;o++){var s=this.cellAtPosition(r,o);s?s.remove(t):console.log("从不存在碰撞器的单元格中移除碰撞器: ["+t+"]")}},e.prototype.removeWithBruteForce=function(t){this._cellDict.remove(t)},e.prototype.clear=function(){this._cellDict.clear()},e.prototype.debugDraw=function(t,e){void 0===e&&(e=1);for(var i=this.gridBounds.x;i<=this.gridBounds.right;i++)for(var n=this.gridBounds.y;n<=this.gridBounds.bottom;n++){var r=this.cellAtPosition(i,n);r&&r.length>0&&this.debugDrawCellDetails(i,n,r.length,t,e)}},e.prototype.aabbBroadphase=function(e,i,n){this._tempHashSet.length=0;for(var r=this.cellCoords(e.x,e.y),o=this.cellCoords(e.right,e.bottom),s=r.x;s<=o.x;s++)for(var a=r.y;a<=o.y;a++){var h=this.cellAtPosition(s,a);if(h)for(var c=function(r){var o=h[r];if(o==i||!t.Flags.isFlagSet(n,o.physicsLayer.value))return"continue";e.intersects(o.bounds)&&(u._tempHashSet.firstOrDefault(function(t){return t.hashCode==o.hashCode})||u._tempHashSet.push(o))},u=this,l=0;l=this.points.length?this.points[0]:this.points[n+1];var o=t.Vector2Ext.perpendicular(r,e);t.Vector2Ext.normalize(o),this._edgeNormals[n]=o}},i.buildSymmetricalPolygon=function(e,i){for(var n=new Array(e),r=0;rr&&(r=s,n=o)}return e[n]},i.getClosestPointOnPolygonToPoint=function(e,i,n,r){n.value=Number.MAX_VALUE,r.x=0,r.y=0;for(var o=new t.Vector2(0,0),s=0,a=0;at.y!=this.points[n].y>t.y&&t.x<(this.points[n].x-this.points[i].x)*(t.y-this.points[i].y)/(this.points[n].y-this.points[i].y)+this.points[i].x&&(e=!e);return e},i.prototype.pointCollidesWithShape=function(e,i){return t.ShapeCollisions.pointToPoly(e,this,i)},i}(t.Shape);t.Polygon=e}(es||(es={})),function(t){var e=function(e){function i(t,n){var r=e.call(this,i.buildBox(t,n),!0)||this;return r.width=t,r.height=n,r}return __extends(i,e),i.buildBox=function(e,i){var n=e/2,r=i/2,o=new Array(4);return o[0]=new t.Vector2(-n,-r),o[1]=new t.Vector2(n,-r),o[2]=new t.Vector2(n,r),o[3]=new t.Vector2(-n,r),o},i.prototype.updateBox=function(e,i){this.width=e,this.height=i;var n=e/2,r=i/2;this.points[0]=new t.Vector2(-n,-r),this.points[1]=new t.Vector2(n,-r),this.points[2]=new t.Vector2(n,r),this.points[3]=new t.Vector2(-n,r);for(var o=0;o1)return!1;var a,h=t.Vector2.add(s.start,t.Vector2.add(s.direction,new t.Vector2(r.value))),c=0;h.xi.bounds.right&&(c|=1),h.yi.bounds.bottom&&(c|=2);var u=a+c;return 3==u&&console.log("m == 3. corner "+t.Time.frameCount),!0},e}();t.RealtimeCollisions=e}(es||(es={})),function(t){var e=function(){function e(){}return e.polygonToPolygon=function(e,i,n){for(var r,o=!0,s=e.edgeNormals,a=i.edgeNormals,h=Number.POSITIVE_INFINITY,c=new t.Vector2,u=t.Vector2.subtract(e.position,i.position),l=0;l0&&(o=!1),!o)return!1;(y=Math.abs(y))r&&(r=o);return{min:n,max:r}},e.circleToPolygon=function(e,i,n){var r,o=t.Vector2.subtract(e.position,i.position),s=new t.Ref(0),a=t.Polygon.getClosestPointOnPolygonToPoint(i.points,o,s,n.normal),h=i.containsPoint(e.position);if(s.value>e.radius*e.radius&&!h)return!1;if(h)r=t.Vector2.multiply(n.normal,new t.Vector2(Math.sqrt(s.value)-e.radius));else if(0==s.value)r=t.Vector2.multiply(n.normal,new t.Vector2(e.radius));else{var c=Math.sqrt(s.value);r=t.Vector2.multiply(new t.Vector2(-t.Vector2.subtract(o,a)),new t.Vector2((e.radius-s.value)/c))}return n.minimumTranslationVector=r,n.point=t.Vector2.add(a,i.position),!0},e.circleToBox=function(e,i,n){var r=i.bounds.getClosestPointOnRectangleBorderToPoint(e.position,n.normal);if(i.containsPoint(e.position)){n.point=r;var o=t.Vector2.add(r,t.Vector2.multiply(n.normal,new t.Vector2(e.radius)));return n.minimumTranslationVector=t.Vector2.subtract(e.position,o),!0}var s=t.Vector2.distanceSquared(r,e.position);if(0==s)n.minimumTranslationVector=t.Vector2.multiply(n.normal,new t.Vector2(e.radius));else if(s<=e.radius*e.radius){n.normal=t.Vector2.subtract(e.position,r);var a=n.normal.length()-e.radius;return n.point=r,t.Vector2Ext.normalize(n.normal),n.minimumTranslationVector=t.Vector2.multiply(new t.Vector2(a),n.normal),!0}return!1},e.pointToCircle=function(e,i,n){var r=t.Vector2.distanceSquared(e,i.position),o=1+i.radius;if(r1)return!1;var l=(c.x*s.y-c.y*s.x)/h;return!(l<0||l>1)&&(o=o.add(e).add(t.Vector2.multiply(new t.Vector2(u),s)),!0)},e.lineToCircle=function(e,i,n,r){var o=t.Vector2.distance(e,i),s=t.Vector2.divide(t.Vector2.subtract(i,e),new t.Vector2(o)),a=t.Vector2.subtract(e,n.position),h=t.Vector2.dot(a,s),c=t.Vector2.dot(a,a)-n.radius*n.radius;if(c>0&&h>0)return!1;var u=h*h-c;return!(u<0)&&(r.fraction=-h-Math.sqrt(u),r.fraction<0&&(r.fraction=0),r.point=t.Vector2.add(e,t.Vector2.multiply(new t.Vector2(r.fraction),s)),r.distance=t.Vector2.distance(e,r.point),r.normal=t.Vector2.normalize(t.Vector2.subtract(r.point,n.position)),r.fraction=r.distance/o,!0)},e.boxToBoxCast=function(e,i,n,r){var o=this.minkowskiDifference(e,i);if(o.contains(0,0)){var s=o.getClosestPointOnBoundsToOrigin();return!s.equals(t.Vector2.zero)&&(r.normal=new t.Vector2(-s.x),r.normal.normalize(),r.distance=0,r.fraction=0,!0)}var a=new t.Ray2D(t.Vector2.zero,new t.Vector2(-n.x)),h=new t.Ref(0);return!!(o.rayIntersects(a,h)&&h.value<=1)&&(r.fraction=h.value,r.distance=n.length()*h.value,r.normal=new t.Vector2(-n.x,-n.y),r.normal.normalize(),r.centroid=t.Vector2.add(e.bounds.center,t.Vector2.multiply(n,new t.Vector2(h.value))),!0)},e}();t.ShapeCollisions=e}(es||(es={})),function(t){var e=function(){function e(){this.mass=1,this.radius=0,this.collidesWithColliders=!0}return e.prototype.applyForce=function(e){this.acceleration.add(t.Vector2.divide(e,new t.Vector2(this.mass)))},e}();t.Particle=e}(es||(es={})),function(t){var e=function(){function e(e){void 0===e&&(e=null),this.gravity=new t.Vector2(0,980),this.constraintIterations=3,this.maximumStepIterations=5,this.allowDragging=!0,this._composites=[],this._tempCircle=new t.Circle(1),this._leftOverTime=0,this._fixedDeltaTime=1/60,this._iterationSteps=0,this._fixedDeltaTimeSq=0,this.simulationBounds=e,this._fixedDeltaTimeSq=Math.pow(this._fixedDeltaTimeSq,2)}return e.prototype.update=function(){this.updateTiming(),this.allowDragging&&this.handleDragging();for(var t=1;t<=this._iterationSteps;t++)for(var e=this._composites.length-1;e>=0;e--){for(var i=this._composites[e],n=0;ni.height?e.y=i.height:e.yi.width&&(e.x=i.width)):(e.yi.height-t.radius&&(e.y=2*(i.height-t.radius)-e.y),e.x>i.width-t.radius&&(e.x=2*(i.width-t.radius)-e.x),e.x=0;t--)this._constraints[t].solve()},e.prototype.updateParticles=function(e,i){for(var n=0;n=0;t--)this._constraints[t].collidesWithColliders&&this._constraints[t].handleCollisions(this.collidesWithLayers)},e.prototype.debugRender=function(t){},e}();t.Composite=e}(es||(es={})),function(t){var e=function(){function t(){this.collidesWithColliders=!0}return t.prototype.handleCollisions=function(t){},t}();t.Constraint=e}(es||(es={})),function(t){var e=function(){return function(){}}();t.TmxGroup=e}(es||(es={})),function(t){var e=function(){return function(){}}();t.TmxImageLayer=e}(es||(es={})),function(t){var e=function(){function e(){}return Object.defineProperty(e.prototype,"offset",{get:function(){return new t.Vector2(this.offsetX,this.offsetY)},enumerable:!0,configurable:!0}),e.prototype.getTileWithGid=function(t){for(var e=0;e=0&&(e.push(this.findBoundsRect(i,o,r,t)),i=-1)}i>=0&&(e.push(this.findBoundsRect(i,this.map.width,r,t)),i=-1)}return e},e.prototype.findBoundsRect=function(e,i,n,r){for(var o=-1,s=n+1;sthis.tileHeight||this.maxTileWidth>this.tileWidth},enumerable:!0,configurable:!0}),i.prototype.getTilesetForTileGid=function(t){if(0==t)return null;for(var e=this.tilesets.length-1;e>=0;e--)if(this.tilesets[e].firstGid<=t)return this.tilesets[e];console.error("tile gid"+t+"未在任何tileset中找到")},i.prototype.worldToTilePositionX=function(e,i){void 0===i&&(i=!0);var n=Math.floor(e/this.tileWidth);return i?t.MathHelper.clamp(n,0,this.width-1):n},i.prototype.worldToTilePositionY=function(e,i){void 0===i&&(i=!0);var n=Math.floor(e/this.tileHeight);return i?t.MathHelper.clamp(n,0,this.height-1):n},i.prototype.getLayer=function(t){return this.layers[t]},i.prototype.update=function(){this.tilesets.forEach(function(t){t.update()})},i.prototype.dispose=function(t){void 0===t&&(t=!0),this._isDisposed||(t&&(this.tilesets.forEach(function(t){t.image&&t.image.dispose()}),this.imageLayers.forEach(function(t){t.image&&t.image.dispose()})),this._isDisposed=!0)},i}(t.TmxDocument);t.TmxMap=e,function(t){t[t.unknown=0]="unknown",t[t.orthogonal=1]="orthogonal",t[t.isometric=2]="isometric",t[t.staggered=3]="staggered",t[t.hexagonal=4]="hexagonal"}(t.OrientationType||(t.OrientationType={})),function(t){t[t.x=0]="x",t[t.y=1]="y"}(t.StaggerAxisType||(t.StaggerAxisType={})),function(t){t[t.odd=0]="odd",t[t.even=1]="even"}(t.StaggerIndexType||(t.StaggerIndexType={})),function(t){t[t.rightDown=0]="rightDown",t[t.rightUp=1]="rightUp",t[t.leftDown=2]="leftDown",t[t.leftUp=3]="leftUp"}(t.RenderOrderType||(t.RenderOrderType={}))}(es||(es={})),function(t){var e=function(){return function(){}}();t.TmxObjectGroup=e;var i=function(){return function(){this.shape=new egret.Shape,this.textField=new egret.TextField}}();t.TmxObject=i;var n=function(){return function(){}}();t.TmxText=n;var r=function(){return function(){}}();t.TmxAlignment=r,function(t){t[t.basic=0]="basic",t[t.point=1]="point",t[t.tile=2]="tile",t[t.ellipse=3]="ellipse",t[t.polygon=4]="polygon",t[t.polyline=5]="polyline",t[t.text=6]="text"}(t.TmxObjectType||(t.TmxObjectType={})),function(t){t[t.unkownOrder=-1]="unkownOrder",t[t.TopDown=0]="TopDown",t[t.IndexOrder=1]="IndexOrder"}(t.DrawOrderType||(t.DrawOrderType={})),function(t){t[t.left=0]="left",t[t.center=1]="center",t[t.right=2]="right",t[t.justify=3]="justify"}(t.TmxHorizontalAlignment||(t.TmxHorizontalAlignment={})),function(t){t[t.top=0]="top",t[t.center=1]="center",t[t.bottom=2]="bottom"}(t.TmxVerticalAlignment||(t.TmxVerticalAlignment={}))}(es||(es={})),function(t){var e=function(){function e(){}return e.loadTmxMap=function(t,e){var i=RES.getRes(e);return this.loadTmxMapData(t,i,RES.getResourceInfo(e))},e.loadTmxMapData=function(e,i,n){return __awaiter(this,void 0,void 0,function(){var r,o,s,a;return __generator(this,function(h){switch(h.label){case 0:e.version=i.version,e.tiledVersion=i.tiledversion,e.width=i.width,e.height=i.height,e.tileWidth=i.tilewidth,e.tileHeight=i.tileheight,e.hexSideLength=i.hexsidelength,e.orientation=this.parseOrientationType(i.orientation),e.staggerAxis=this.parseStaggerAxisType(i.staggeraxis),e.staggerIndex=this.parseStaggerIndexType(i.staggerindex),e.renderOrder=this.parseRenderOrderType(i.renderorder),e.nextObjectID=i.nextobjectid,e.backgroundColor=t.TmxUtils.color16ToUnit(i.color),e.properties=this.parsePropertyDict(i.properties),e.maxTileWidth=e.tileWidth,e.maxTileHeight=e.tileHeight,e.tmxDirectory=n.root+n.url.replace(".","_").replace(n.name,""),e.tilesets=[],r=0,o=i.tilesets,h.label=1;case 1:return rt.map.maxTileWidth&&(t.map.maxTileWidth=e.image.width),e.image.height>t.map.maxTileHeight&&(t.map.maxTileHeight=e.image.height))}),t.tileRegions.forEach(function(e){var i=e.width,n=e.height;i>t.map.maxTileWidth&&(t.map.maxTileWidth=i),i>t.map.maxTileHeight&&(t.map.maxTileHeight=n)})},e.parseOrientationType=function(e){return"unknown"==e?t.OrientationType.unknown:"orthogonal"==e?t.OrientationType.orthogonal:"isometric"==e?t.OrientationType.isometric:"staggered"==e?t.OrientationType.staggered:"hexagonal"==e?t.OrientationType.hexagonal:t.OrientationType.unknown},e.parseStaggerAxisType=function(e){return"y"==e?t.StaggerAxisType.y:t.StaggerAxisType.x},e.parseStaggerIndexType=function(e){return"even"==e?t.StaggerIndexType.even:t.StaggerIndexType.odd},e.parseRenderOrderType=function(e){return"right-up"==e?t.RenderOrderType.rightUp:"left-down"==e?t.RenderOrderType.leftDown:"left-up"==e?t.RenderOrderType.leftUp:t.RenderOrderType.rightDown},e.parsePropertyDict=function(e){if(!e)return null;for(var i=new Map,n=0,r=e;n=e.columns));m+=e.tileWidth+e.spacing);else e.tiles.forEach(function(i,n){e.tileRegions.set(n,new t.Rectangle(0,0,i.image.width,i.image.height))});return[2,e]}})})},e.loadTmxTilesetTile=function(e,i,n,r,o){return __awaiter(this,void 0,void 0,function(){var s,a,h,c,u,l,p,d,f,g,y,m,_;return __generator(this,function(v){switch(v.label){case 0:if(e.tileset=i,e.id=n.id,s=n.terrain)for(e.terrainEdges=new Array(4),a=0,h=0,c=s;h0){a.shape.x=h.x,a.shape.y=h.y,i.addChild(a.shape),a.shape.graphics.clear(),a.shape.graphics.lineStyle(1,10526884);for(l=0;l0&&(u=l.currentAnimationFrameGid);var p=i.tileset.tileRegions.get(u),d=Math.floor(i.x)*s,f=Math.floor(i.y)*a;i.horizontalFlip&&i.verticalFlip?(d+=a+(p.height*o.y-a),f-=p.width*o.x-s):i.horizontalFlip?d+=s+(p.height*o.y-a):i.verticalFlip?f+=s-p.width*o.x:f+=a-p.height*o.y;var g=new t.Vector2(d,f).add(r);if(i.tileset.image){if(n){var y=i.tileset.image.bitmap.getTexture(""+u);y||(y=i.tileset.image.bitmap.createTexture(""+u,p.x,p.y,p.width,p.height)),i.tileset.image.texture=new e(y),n.addChild(i.tileset.image.texture),i.tileset.image.texture.x!=g.x&&(i.tileset.image.texture.x=g.x),i.tileset.image.texture.y!=g.y&&(i.tileset.image.texture.y=g.y),i.verticalFlip&&i.horizontalFlip?(i.tileset.image.texture.scaleX=-1,i.tileset.image.texture.scaleY=-1):i.verticalFlip?(i.tileset.image.texture.scaleX=o.x,i.tileset.image.texture.scaleY=-1):i.horizontalFlip?(i.tileset.image.texture.scaleX=-1,i.tileset.image.texture.scaleY=o.y):(i.tileset.image.texture.scaleX=o.x,i.tileset.image.texture.scaleY=o.y),0!=i.tileset.image.texture.rotation&&(i.tileset.image.texture.rotation=0),0!=i.tileset.image.texture.anchorOffsetX&&(i.tileset.image.texture.anchorOffsetX=0),0!=i.tileset.image.texture.anchorOffsetY&&(i.tileset.image.texture.anchorOffsetY=0)}}else l.image.texture&&(l.image.bitmap.getTexture(u.toString())||(l.image.texture=new e(l.image.bitmap.createTexture(u.toString(),p.x,p.y,p.width,p.height)),n.addChild(l.image.texture)),l.image.texture.x=g.x,l.image.texture.y=g.y,l.image.texture.scaleX=o.x,l.image.texture.scaleY=o.y,l.image.texture.rotation=0,l.image.texture.anchorOffsetX=0,l.image.texture.anchorOffsetY=0,l.image.texture.filters=[h])},i}();t.TiledRendering=i}(es||(es={})),function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.update=function(){this.tiles.forEach(function(t){t.updateAnimatedTiles()})},e}(t.TmxDocument);t.TmxTileset=e;var i=function(){return function(){}}();t.TmxTileOffset=i;var n=function(){return function(){}}();t.TmxTerrain=n}(es||(es={})),function(t){var e=function(){function e(){}return Object.defineProperty(e.prototype,"currentAnimationFrameGid",{get:function(){return this.animationFrames[this._animationCurrentFrame].gid+this.tileset.firstGid},enumerable:!0,configurable:!0}),e.prototype.processProperties=function(){var t;(t=this.properties.get("engine.isDestructable"))&&(this.isDestructable=Boolean(t)),(t=this.properties.get("engine:isSlope"))&&(this.isSlope=Boolean(t)),(t=this.properties.get("engine:isOneWayPlatform"))&&(this.isOneWayPlatform=Boolean(t)),(t=this.properties.get("engine:slopeTopLeft"))&&(this.slopeTopLeft=Number(t)),(t=this.properties.get("engine:slopeTopRight"))&&(this.slopeTopRight=Number(t))},e.prototype.updateAnimatedTiles=function(){0!=this.animationFrames.length&&(this._animationElapsedTime+=t.Time.deltaTime,this._animationElapsedTime>this.animationFrames[this._animationCurrentFrame].duration&&(this._animationCurrentFrame=t.MathHelper.incrementWithWrap(this._animationCurrentFrame,this.animationFrames.length),this._animationElapsedTime=0))},e}();t.TmxTilesetTile=e;var i=function(){return function(){}}();t.TmxAnimationFrame=i}(es||(es={})),function(t){var e=function(){function e(){}return e.decode=function(e,i,n){switch(n=n||"none",i=i||"none"){case"base64":var r=t.Base64Utils.decodeBase64AsArray(e,4);return"none"===n?r:t.Base64Utils.decompress(e,r,n);case"csv":return t.Base64Utils.decodeCSV(e);case"none":for(var o=[],s=0;si;n--)if(t[n]0&&t[r-1]>n;r--)t[r]=t[r-1];t[r]=n}},t.binarySearch=function(t,e){for(var i=0,n=t.length,r=i+n>>1;i=t[r]&&(i=r+1),r=i+n>>1;return t[i]==e?i:-1},t.findElementIndex=function(t,e){for(var i=t.length,n=0;nt[e]&&(e=n);return e},t.getMinElementIndex=function(t){for(var e=0,i=t.length,n=1;n=0;--r)i.unshift(e[r]);return i},t.getDifferAry=function(t,e){t=this.getUniqueAry(t),e=this.getUniqueAry(e);for(var i=t.concat(e),n={},r=[],o=i.length,s=0;s=0;e-=1)t.splice(e,1)},t.cloneList=function(t){return t?t.slice(0,t.length):null},t.equals=function(t,e){if(t==e)return!0;var i=t.length;if(i!=e.length)return!1;for(;i--;)if(t[i]!=e[i])return!1;return!0},t.insert=function(t,e,i){if(!t)return null;var n=t.length;if(e>n&&(e=n),e<0&&(e=0),e==n)t.push(i);else if(0==e)t.unshift(i);else{for(var r=n-1;r>=e;r-=1)t[r+1]=t[r];t[e]=i}return i},t}();!function(t){var e=function(){function t(){}return Object.defineProperty(t,"nativeBase64",{get:function(){return"function"==typeof window.atob},enumerable:!0,configurable:!0}),t.decode=function(t){if(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),this.nativeBase64)return window.atob(t);for(var e,i,n,r,o,s,a=[],h=0;h>4,i=(15&r)<<4|(o=this._keyStr.indexOf(t.charAt(h++)))>>2,n=(3&o)<<6|(s=this._keyStr.indexOf(t.charAt(h++))),a.push(String.fromCharCode(e)),64!==o&&a.push(String.fromCharCode(i)),64!==s&&a.push(String.fromCharCode(n));return a=a.join("")},t.encode=function(t){if(t=t.replace(/\r\n/g,"\n"),!this.nativeBase64){for(var e,i,n,r,o,s,a,h=[],c=0;c>2,o=(3&e)<<4|(i=t.charCodeAt(c++))>>4,s=(15&i)<<2|(n=t.charCodeAt(c++))>>6,a=63&n,isNaN(i)?s=a=64:isNaN(n)&&(a=64),h.push(this._keyStr.charAt(r)),h.push(this._keyStr.charAt(o)),h.push(this._keyStr.charAt(s)),h.push(this._keyStr.charAt(a));return h=h.join("")}window.btoa(t)},t.decodeBase64AsArray=function(e,i){i=i||1;var n,r,o,s=t.decode(e),a=new Uint32Array(s.length/i);for(n=0,o=s.length/i;n=0;--r)a[n]+=s.charCodeAt(n*i+r)<<(r<<3);return a},t.decompress=function(t,e,i){throw new Error("GZIP/ZLIB compressed TMX Tile Map not supported!")},t.decodeCSV=function(t){for(var e=t.replace("\n","").trim().split(","),i=[],n=0;n>16},set:function(t){this._packedValue=4278255615&this._packedValue|t<<16},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this._packedValue>>8},set:function(t){this._packedValue=4294902015&this._packedValue|t<<8},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"r",{get:function(){return this._packedValue},set:function(t){this._packedValue=4294967040&this._packedValue|t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this._packedValue>>24},set:function(t){this._packedValue=16777215&this._packedValue|t<<24},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"packedValue",{get:function(){return this._packedValue},set:function(t){this._packedValue=t},enumerable:!0,configurable:!0}),e.prototype.equals=function(t){return this._packedValue==t._packedValue},e}();t.Color=e}(es||(es={})),function(t){var e=function(){function t(){this.loadedAssets=new Map}return t.prototype.loadRes=function(t,e){var i=this;return void 0===e&&(e=!0),new Promise(function(n,r){var o=i.loadedAssets.get(t);o?n(o):e?RES.getResAsync(t).then(function(e){i.loadedAssets.set(t,e),n(e)}).catch(function(e){console.error("资源加载错误:",t,e),r(e)}):RES.getResByUrl(t).then(function(e){i.loadedAssets.set(t,e),n(e)}).catch(function(e){console.error("资源加载错误:",t,e),r(e)})})},t.prototype.dispose=function(){this.loadedAssets.forEach(function(t){var e=t;RES.destroyRes(e)&&e.dispose()}),this.loadedAssets.clear()},t}();t.ContentManager=e}(es||(es={})),function(t){var e=function(){function t(){}return t.getColorMatrix=function(t){var e=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];return e[0]=Math.floor(t/256/256)/255,e[6]=Math.floor(t/256%256)/255,e[12]=t%256/255,new egret.ColorMatrixFilter(e)},t}();t.DrawUtils=e}(es||(es={})),function(t){var e=function(){function e(){}return e.oppositeEdge=function(e){switch(e){case t.Edge.bottom:return t.Edge.top;case t.Edge.top:return t.Edge.bottom;case t.Edge.left:return t.Edge.right;case t.Edge.right:return t.Edge.left}},e.isHorizontal=function(e){return e==t.Edge.right||e==t.Edge.left},e.isVertical=function(e){return e==t.Edge.top||e==t.Edge.bottom},e}();t.EdgeExt=e}(es||(es={})),function(t){var e=function(){return function(t,e){this.func=t,this.context=e}}();t.FuncPack=e;var i=function(){function t(){this._messageTable=new Map}return t.prototype.addObserver=function(t,i,n){var r=this._messageTable.get(t);r||(r=[],this._messageTable.set(t,r)),-1!=r.findIndex(function(t){return t.func==i})&&console.warn("您试图添加相同的观察者两次"),r.push(new e(i,n))},t.prototype.removeObserver=function(t,e){var i=this._messageTable.get(t),n=i.findIndex(function(t){return t.func==e});-1!=n&&i.removeAt(n)},t.prototype.emit=function(t,e){var i=this._messageTable.get(t);if(i)for(var n=i.length-1;n>=0;n--)i[n].func.call(i[n].context,e)},t}();t.Emitter=i}(es||(es={})),function(t){!function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.left=2]="left",t[t.right=3]="right"}(t.Edge||(t.Edge={}))}(es||(es={})),function(t){var e=function(){function t(){}return t.repeat=function(t,e){for(var i=[];e--;)i.push(t);return i},t}();t.Enumerable=e}(es||(es={})),function(t){var e=function(){function t(){}return t.default=function(){return new t},t.prototype.equals=function(t,e){return"function"==typeof t.equals?t.equals(e):t===e},t}();t.EqualityComparer=e}(es||(es={})),function(t){var e=function(){function t(){}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this.setEnabled(t)},enumerable:!0,configurable:!0}),t.prototype.setEnabled=function(t){this._enabled!=t&&(this._enabled=t,this._enabled?this.onEnabled():this.onDisabled())},t.prototype.onEnabled=function(){},t.prototype.onDisabled=function(){},t.prototype.update=function(){},t}();t.GlobalManager=e}(es||(es={})),function(t){var e=function(){function t(){}return t.warmCache=function(t){if((t-=this._objectQueue.length)>0)for(var e=0;ethis._objectQueue.length;)this._objectQueue.shift()},t.clearCache=function(){this._objectQueue.length=0},t.obtain=function(){return this._objectQueue.length>0?this._objectQueue.shift():[]},t.free=function(t){this._objectQueue.unshift(t),t.length=0},t._objectQueue=[],t}();t.ListPool=e}(es||(es={})),function(t){var e=function(){function t(){}return t.toNumber=function(t){return null==t?0:Number(t)},t}();t.NumberExtension=e}(es||(es={})),function(t){var e=function(){function t(t,e){this.first=t,this.second=e}return t.prototype.clear=function(){this.first=this.second=null},t.prototype.equals=function(t){return this.first==t.first&&this.second==t.second},t}();t.Pair=e}(es||(es={})),function(t){var e=function(){function t(){}return t.warmCache=function(t,e){if((e-=this._objectQueue.length)>0)for(var i=0;ithis._objectQueue.length;)this._objectQueue.shift()},t.clearCache=function(){this._objectQueue.length=0},t.obtain=function(t){return this._objectQueue.length>0?this._objectQueue.shift():new t},t.free=function(t){this._objectQueue.unshift(t),egret.is(t,"IPoolable")&&t.reset()},t._objectQueue=[],t}();t.Pool=e}(es||(es={}));var RandomUtils=function(){function t(){}return t.randrange=function(t,e,i){if(void 0===i&&(i=1),0==i)throw new Error("step 不能为 0");var n=e-t;if(0==n)throw new Error("没有可用的范围("+t+","+e+")");n<0&&(n=t-e);var r=Math.floor((n+i-1)/i);return Math.floor(this.random()*r)*i+Math.min(t,e)},t.randint=function(t,e){return(t=Math.floor(t))>(e=Math.floor(e))?t++:e++,this.randrange(t,e)},t.randnum=function(t,e){return this.random()*(e-t)+t},t.shuffle=function(t){return t.sort(this._randomCompare),t},t.choice=function(t){if(!t.hasOwnProperty("length"))throw new Error("无法对此对象执行此操作");var e=Math.floor(this.random()*t.length);return t instanceof String?String(t).charAt(e):t[e]},t.sample=function(t,e){var i=t.length;if(e<=0||i=0;)s=Math.floor(this.random()*i);n.push(t[s]),r.push(s)}return n},t.random=function(){return Math.random()},t.boolean=function(t){return void 0===t&&(t=.5),this.random().5?1:-1},t}();!function(t){var e=function(){function e(){}return e.getSide=function(e,i){switch(i){case t.Edge.top:return e.top;case t.Edge.bottom:return e.bottom;case t.Edge.left:return e.left;case t.Edge.right:return e.right}},e.union=function(e,i){var n=new t.Rectangle(i.x,i.y,0,0),r=new t.Rectangle;return r.x=Math.min(e.x,n.x),r.y=Math.min(e.y,n.y),r.width=Math.max(e.right,n.right)-r.x,r.height=Math.max(e.bottom,r.bottom)-r.y,r},e.getHalfRect=function(e,i){switch(i){case t.Edge.top:return new t.Rectangle(e.x,e.y,e.width,e.height/2);case t.Edge.bottom:return new t.Rectangle(e.x,e.y+e.height/2,e.width,e.height/2);case t.Edge.left:return new t.Rectangle(e.x,e.y,e.width/2,e.height);case t.Edge.right:return new t.Rectangle(e.x+e.width/2,e.y,e.width/2,e.height)}},e.getRectEdgePortion=function(e,i,n){switch(void 0===n&&(n=1),i){case t.Edge.top:return new t.Rectangle(e.x,e.y,e.width,n);case t.Edge.bottom:return new t.Rectangle(e.x,e.y+e.height-n,e.width,n);case t.Edge.left:return new t.Rectangle(e.x,e.y,n,e.height);case t.Edge.right:return new t.Rectangle(e.x+e.width-n,e.y,n,e.height)}},e.expandSide=function(e,i,n){switch(n=Math.abs(n),i){case t.Edge.top:e.y-=n,e.height+=n;break;case t.Edge.bottom:e.height+=n;break;case t.Edge.left:e.x-=n,e.width+=n;break;case t.Edge.right:e.width+=n}},e.contract=function(t,e,i){t.x+=e,t.y+=i,t.width-=2*e,t.height-=2*i},e}();t.RectangleExt=e}(es||(es={})),function(t){var e=function(){return function(t){this.value=t}}();t.Ref=e}(es||(es={})),function(t){var e=function(){function t(){}return t.prototype.update=function(t){this.remainder+=t;var e=Math.trunc(this.remainder);return this.remainder-=e,e},t.prototype.reset=function(){this.remainder=0},t}();t.SubpixelNumber=e}(es||(es={})),function(t){var e=function(){function e(){this.triangleIndices=[],this._triPrev=new Array(12),this._triNext=new Array(12)}return e.testPointTriangle=function(e,i,n,r){return!(t.Vector2Ext.cross(t.Vector2.subtract(e,i),t.Vector2.subtract(n,i))<0)&&(!(t.Vector2Ext.cross(t.Vector2.subtract(e,n),t.Vector2.subtract(r,n))<0)&&!(t.Vector2Ext.cross(t.Vector2.subtract(e,r),t.Vector2.subtract(i,r))<0))},e.prototype.triangulate=function(i,n){void 0===n&&(n=!0);var r=i.length;this.initialize(r);for(var o=0,s=0;r>3&&o<500;){o++;var a=!0,h=i[this._triPrev[s]],c=i[s],u=i[this._triNext[s]];if(t.Vector2Ext.isTriangleCCW(h,c,u)){var l=this._triNext[this._triNext[s]];do{if(e.testPointTriangle(i[l],h,c,u)){a=!1;break}l=this._triNext[l]}while(l!=this._triPrev[s])}else a=!1;a?(this.triangleIndices.push(this._triPrev[s]),this.triangleIndices.push(s),this.triangleIndices.push(this._triNext[s]),this._triNext[this._triPrev[s]]=this._triNext[s],this._triPrev[this._triNext[s]]=this._triPrev[s],r--,s=this._triPrev[s]):s=this._triNext[s]}this.triangleIndices.push(this._triPrev[s]),this.triangleIndices.push(s),this.triangleIndices.push(this._triNext[s]),n||this.triangleIndices.reverse()},e.prototype.initialize=function(t){this.triangleIndices.length=0,this._triNext.lengtht.MathHelper.Epsilon?e.divide(new t.Vector2(i)):e.x=e.y=0},e.transformA=function(t,e,i,n,r,o){for(var s=0;sthis.safeArea.right&&(s.x=this.safeArea.right-s.width),s.topthis.safeArea.bottom&&(s.y=this.safeArea.bottom-s.height),s},i}();t.Layout=i,function(t){t[t.none=0]="none",t[t.left=1]="left",t[t.right=2]="right",t[t.horizontalCenter=4]="horizontalCenter",t[t.top=8]="top",t[t.bottom=16]="bottom",t[t.verticalCenter=32]="verticalCenter",t[t.topLeft=9]="topLeft",t[t.topRight=10]="topRight",t[t.topCenter=12]="topCenter",t[t.bottomLeft=17]="bottomLeft",t[t.bottomRight=18]="bottomRight",t[t.bottomCenter=20]="bottomCenter",t[t.centerLeft=33]="centerLeft",t[t.centerRight=34]="centerRight",t[t.center=36]="center"}(e=t.Alignment||(t.Alignment={}))}(es||(es={})),function(t){var e,i=function(){function t(t){void 0===t&&(t=n),this.getSystemTime=t,this._stopDuration=0,this._completeSlices=[]}return t.prototype.getState=function(){return void 0===this._startSystemTime?e.IDLE:void 0===this._stopSystemTime?e.RUNNING:e.STOPPED},t.prototype.isIdle=function(){return this.getState()===e.IDLE},t.prototype.isRunning=function(){return this.getState()===e.RUNNING},t.prototype.isStopped=function(){return this.getState()===e.STOPPED},t.prototype.slice=function(){return this.recordPendingSlice()},t.prototype.getCompletedSlices=function(){return Array.from(this._completeSlices)},t.prototype.getCompletedAndPendingSlices=function(){return this._completeSlices.concat([this.getPendingSlice()])},t.prototype.getPendingSlice=function(){return this.calculatePendingSlice()},t.prototype.getTime=function(){return this.caculateStopwatchTime()},t.prototype.reset=function(){this._startSystemTime=this._pendingSliceStartStopwatchTime=this._stopSystemTime=void 0,this._stopDuration=0,this._completeSlices=[]},t.prototype.start=function(t){if(void 0===t&&(t=!1),t&&this.reset(),void 0!==this._stopSystemTime){var e=(i=this.getSystemTime())-this._stopSystemTime;this._stopDuration+=e,this._stopSystemTime=void 0}else if(void 0===this._startSystemTime){var i=this.getSystemTime();this._startSystemTime=i,this._pendingSliceStartStopwatchTime=0}},t.prototype.stop=function(t){if(void 0===t&&(t=!1),void 0===this._startSystemTime)return 0;var e=this.getSystemTimeOfCurrentStopwatchTime();return t&&this.recordPendingSlice(this.caculateStopwatchTime(e)),this._stopSystemTime=e,this.getTime()},t.prototype.calculatePendingSlice=function(t){return void 0===this._pendingSliceStartStopwatchTime?Object.freeze({startTime:0,endTime:0,duration:0}):(void 0===t&&(t=this.getTime()),Object.freeze({startTime:this._pendingSliceStartStopwatchTime,endTime:t,duration:t-this._pendingSliceStartStopwatchTime}))},t.prototype.caculateStopwatchTime=function(t){return void 0===this._startSystemTime?0:(void 0===t&&(t=this.getSystemTimeOfCurrentStopwatchTime()),t-this._startSystemTime-this._stopDuration)},t.prototype.getSystemTimeOfCurrentStopwatchTime=function(){return void 0===this._stopSystemTime?this.getSystemTime():this._stopSystemTime},t.prototype.recordPendingSlice=function(t){if(void 0!==this._pendingSliceStartStopwatchTime){void 0===t&&(t=this.getTime());var e=this.calculatePendingSlice(t);return this._pendingSliceStartStopwatchTime=e.endTime,this._completeSlices.push(e),e}return this.calculatePendingSlice()},t}();t.Stopwatch=i,function(t){t.IDLE="IDLE",t.RUNNING="RUNNING",t.STOPPED="STOPPED"}(e||(e={})),t.setDefaultSystemTimeGetter=function(t){void 0===t&&(t=Date.now),n=t};var n=Date.now}(stopwatch||(stopwatch={})),function(t){var e=function(){function e(){this.showLog=!1,this.markers=[],this.stopwacth=new stopwatch.Stopwatch,this._markerNameToIdMap=new Map,this._rectShape1=new egret.Shape,this._rectShape2=new egret.Shape,this._rectShape3=new egret.Shape,this._rectShape4=new egret.Shape,this._rectShape5=new egret.Shape,this._rectShape6=new egret.Shape,this.logs=new Array(2);for(var e=0;e=e.logSnapDuration&&(u.logs[n].snapMin=u.logs[n].min,u.logs[n].snapMax=u.logs[n].max,u.logs[n].snapAvg=u.logs[n].avg,u.logs[n].samples=0)):(u.logs[n].min=h,u.logs[n].max=h,u.logs[n].avg=h,u.logs[n].initialized=!0)}o.markCount=r.nestCount,o.nestCount=r.nestCount}this.stopwacth.reset(),this.stopwacth.start()}},e.prototype.beginMark=function(t,i,n){if(void 0===n&&(n=0),n<0||n>=e.maxBars)throw new Error("barIndex argument out of range");var r=this.curLog.bars[n];if(r.markCount>=e.maxSamples)throw new Error("超出采样次数,可以设置更大的数字为timeruler.maxsaple,或者降低采样次数");if(r.nestCount>=e.maxNestCall)throw new Error("超出采样次数,可以设置更大的数字为timeruler.maxsaple,或者降低采样次数");var s=this._markerNameToIdMap.get(t);isNaN(s)&&(s=this.markers.length,this._markerNameToIdMap.set(t,s),this.markers.push(new o(t))),r.markerNests[r.nestCount++]=r.markCount,r.markers[r.markCount].markerId=s,r.markers[r.markCount].color=i,r.markers[r.markCount].beginTime=this.stopwacth.getTime(),r.markers[r.markCount].endTime=-1,r.markCount++},e.prototype.endMark=function(t,i){if(void 0===i&&(i=0),i<0||i>=e.maxBars)throw new Error("barIndex参数超出范围");var n=this.curLog.bars[i];if(n.nestCount<=0)throw new Error("先调用beginMark方法,再调用endMark方法");var r=this._markerNameToIdMap.get(t);if(isNaN(r))throw new Error("标记 "+t+" 未注册。请确认您指定的名称与 beginMark 方法使用的名称相同");var o=n.markerNests[--n.nestCount];if(n.markers[o].markerId!=r)throw new Error("beginMark/endMark方法的调用顺序不正确,beginMark(A),beginMark(B),endMark(B),endMark(A),但你不能像beginMark(A),beginMark(B),endMark(A),endMark(B)这样调用。");n.markers[o].endTime=this.stopwacth.getTime()},e.prototype.getAverageTime=function(t,i){if(t<0||t>=e.maxBars)throw new Error("barIndex参数超出范围");var n=0,r=this._markerNameToIdMap.get(i);return r&&(n=this.markers[r].logs[t].avg),n},e.prototype.resetLog=function(){this.markers.forEach(function(t){for(var e=0;e0&&(r+=e.barHeight+2*e.barPadding,o=Math.max(o,t.markers[t.markCount-1].endTime))});var s=this.sampleFrames*(1/60*1e3);this._frameAdjust=o>s?Math.max(0,this._frameAdjust)+1:Math.min(0,this._frameAdjust)-1,Math.max(this._frameAdjust)>e.autoAdjustDelay&&(this.sampleFrames=Math.min(e.maxSampleFrames,this.sampleFrames),this.sampleFrames=Math.max(this.targetSampleFrames,Math.floor(o/(1/60*1e3))+1),this._frameAdjust=0);var a=n/s,h=i.y-(r-e.barHeight),c=h,u=new t.Rectangle(i.x,c,n,r);this._rectShape1.graphics.clear(),this._rectShape1.graphics.beginFill(0,128/255),this._rectShape1.graphics.drawRect(u.x,u.y,u.width,u.height),this._rectShape1.graphics.endFill(),u.height=e.barHeight,this._rectShape2.graphics.clear();for(var l=0,p=this.prevLog.bars;l0)for(var f=0;f0?(i.waitTimer-=i.useUnscaledDeltaTime?t.Time.unscaledDeltaTime:t.Time.deltaTime,this._shouldRunNextFrame.push(i)):this.tickCoroutine(i)&&this._shouldRunNextFrame.push(i)}}this._unblockedCoroutines.length=0,this._unblockedCoroutines.concat(this._shouldRunNextFrame),this._shouldRunNextFrame.length=0,this._isInUpdate=!1},n.prototype.tickCoroutine=function(i){var n=i.enumerator.next();return!n.value||n.done?(t.Pool.free(i),!1):!n.value||(n.value instanceof t.WaitForSeconds?(i.waitTimer=n.value.waitTime,!0):n.value instanceof Number?(console.warn("协同程序检查返回一个Number类型,请不要在生产环境使用"),i.waitTimer=Number(n),!0):!(n.value instanceof e)||(i.waitForCoroutine=n.value,!0))},n}(t.GlobalManager);t.CoroutineManager=i}(es||(es={})),function(t){var e=function(){function e(){this.x=0,this.y=0,this.touchPoint=-1,this.touchDown=!1}return Object.defineProperty(e.prototype,"position",{get:function(){return new t.Vector2(this.x,this.y)},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.x=0,this.y=0,this.touchDown=!1,this.touchPoint=-1},e}();t.TouchState=e;var i=function(){function i(){}return Object.defineProperty(i,"gameTouchs",{get:function(){return this._gameTouchs},enumerable:!0,configurable:!0}),Object.defineProperty(i,"resolutionScale",{get:function(){return this._resolutionScale},enumerable:!0,configurable:!0}),Object.defineProperty(i,"totalTouchCount",{get:function(){return this._totalTouchCount},enumerable:!0,configurable:!0}),Object.defineProperty(i,"touchPosition",{get:function(){return this._gameTouchs[0]?this._gameTouchs[0].position:t.Vector2.zero},enumerable:!0,configurable:!0}),Object.defineProperty(i,"maxSupportedTouch",{get:function(){return t.Core._instance.stage.maxTouches},set:function(e){t.Core._instance.stage.maxTouches=e,this.initTouchCache()},enumerable:!0,configurable:!0}),Object.defineProperty(i,"touchPositionDelta",{get:function(){var e=t.Vector2.subtract(this.touchPosition,this._previousTouchState.position);return e.length()>0&&this.setpreviousTouchState(this._gameTouchs[0]),e},enumerable:!0,configurable:!0}),i.initialize=function(){this._init||(this._init=!0,t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_BEGIN,this.touchBegin,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_MOVE,this.touchMove,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_END,this.touchEnd,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_CANCEL,this.touchEnd,this),t.Core._instance.stage.addEventListener(egret.TouchEvent.TOUCH_RELEASE_OUTSIDE,this.touchEnd,this),this.initTouchCache())},i.update=function(){KeyboardUtils.update();for(var t=0;t0,this._willRepeat||(this.isRepeating=!1)},i.prototype.update=function(){this._bufferCounter-=t.Time.unscaledDeltaTime,this.isRepeating=!1;for(var e=!1,i=0;i0||this.isRepeating)return!0;for(var t=0,e=this.nodes;ta||i[c].height>a)throw new Error("一个纹理的大小比图集的大小大");h.push(new t.Rectangle(0,0,i[c].width,i[c].height))}for(;h.length>0;){var u=new egret.RenderTexture,l=new t.RectanglePacker(a,a,1);for(c=0;c0){for(var p=new t.IntegerRectangle,d=[],f=[],g=[],y=[],m=0;m0;)this.freeRectangle(this._insertedRectangles.pop());for(;this._freeAreas.length>0;)this.freeRectangle(this._freeAreas.pop());for(this._width=t,this._height=e,this._packedWidth=0,this._packedHeight=0,this._freeAreas.push(this.allocateRectangle(0,0,this._width,this._height));this._insertedRectangles.length>0;)this.freeSize(this._insertList.pop());this._padding=i},e.prototype.insertRectangle=function(t,e,i){var n=this.allocateSize(t,e,i);this._insertList.push(n)},e.prototype.packRectangles=function(t){for(void 0===t&&(t=!0),t&&this._insertList.sort(function(t,e){return t.width-e.width});this._insertList.length>0;){var e=this._insertList.pop(),i=e.width,n=e.height,r=this.getFreeAreaIndex(i,n);if(r>=0){var o=this._freeAreas[r],s=this.allocateRectangle(o.x,o.y,i,n);for(s.id=e.id,this.generateNewFreeAreas(s,this._freeAreas,this._newFreeAreas);this._newFreeAreas.length>0;)this._freeAreas.push(this._newFreeAreas.pop());this._insertedRectangles.push(s),s.right>this._packedWidth&&(this._packedWidth=s.right),s.bottom>this._packedHeight&&(this._packedHeight=s.bottom)}this.freeSize(e)}return this.rectangleCount},e.prototype.getRectangle=function(t,e){var i=this._insertedRectangles[t];return e.x=i.x,e.y=i.y,e.width=i.width,e.height=i.height,e},e.prototype.getRectangleId=function(t){return this._insertedRectangles[t].id},e.prototype.generateNewFreeAreas=function(t,e,i){var n=t.x,r=t.y,o=t.right+1+this._padding,s=t.bottom+1+this._padding,a=null;0==this._padding&&(a=t);for(var h=e.length-1;h>=0;h--){var c=e[h];if(!(n>=c.right||o<=c.x||r>=c.bottom||s<=c.y)){null==a&&(a=this.allocateRectangle(t.x,t.y,t.width+this._padding,t.height+this._padding)),this.generateDividedAreas(a,c,i);var u=e.pop();h=0;e--)for(var i=t[e],n=t.length-1;n>=0;n--)if(e!=n){var r=t[n];if(i.x>=r.x&&i.y>=r.y&&i.right<=r.right&&i.bottom<=r.bottom){this.freeRectangle(i);var o=t.pop();e0&&(i.push(this.allocateRectangle(t.right,e.y,r,e.height)),n++);var o=t.x-e.x;o>0&&(i.push(this.allocateRectangle(e.x,e.y,o,e.height)),n++);var s=e.bottom-t.bottom;s>0&&(i.push(this.allocateRectangle(e.x,t.bottom,e.width,s)),n++);var a=t.y-e.y;a>0&&(i.push(this.allocateRectangle(e.x,e.y,e.width,a)),n++),0==n&&(t.width=0;s--){var a=this._freeAreas[s];if(a.x0){var r=this._sortableSizeStack.pop();return r.width=e,r.height=i,r.id=n,r}return new t.SortableSize(e,i,n)},e.prototype.freeSize=function(t){this._sortableSizeStack.push(t)},e.prototype.allocateRectangle=function(e,i,n,r){if(this._rectangleStack.length>0){var o=this._rectangleStack.pop();return o.x=e,o.y=i,o.width=n,o.height=r,o.right=e+n,o.bottom=i+r,o}return new t.IntegerRectangle(e,i,n,r)},e.prototype.freeRectangle=function(t){this._rectangleStack.push(t)},e}();t.RectanglePacker=e}(es||(es={})),function(t){var e=function(){return function(t,e,i){this.width=t,this.height=e,this.id=i}}();t.SortableSize=e}(es||(es={})),function(t){var e=function(){return function(t){this.assets=t}}();t.TextureAssets=e;var i=function(){return function(){}}();t.TextureAsset=i}(es||(es={})),function(t){var e=function(){return function(t,e){this.texture=t,this.id=e}}();t.TextureToPack=e}(es||(es={})),function(t){var e=function(){function e(){this._timeInSeconds=0,this._repeats=!1,this._isDone=!1,this._elapsedTime=0}return e.prototype.getContext=function(){return this.context},e.prototype.reset=function(){this._elapsedTime=0},e.prototype.stop=function(){this._isDone=!0},e.prototype.tick=function(){return!this._isDone&&this._elapsedTime>this._timeInSeconds&&(this._elapsedTime-=this._timeInSeconds,this._onTime(this),this._isDone||this._repeats||(this._isDone=!0)),this._elapsedTime+=t.Time.deltaTime,this._isDone},e.prototype.initialize=function(t,e,i,n){this._timeInSeconds=t,this._repeats=e,this.context=i,this._onTime=n},e.prototype.unload=function(){this.context=null,this._onTime=null},e}();t.Timer=e}(es||(es={})),function(t){var e=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t._timers=[],t}return __extends(i,e),i.prototype.update=function(){for(var t=this._timers.length-1;t>=0;t--)this._timers[t].tick()&&(this._timers[t].unload(),this._timers.removeAt(t))},i.prototype.schedule=function(e,i,n,r){var o=new t.Timer;return o.initialize(e,i,n,r),this._timers.push(o),o},i}(t.GlobalManager);t.TimerManager=e}(es||(es={})); \ No newline at end of file diff --git a/source/docs/assets/css/main.css b/source/docs/assets/css/main.css new file mode 100644 index 00000000..959edd73 --- /dev/null +++ b/source/docs/assets/css/main.css @@ -0,0 +1,2679 @@ +/*! normalize.css v1.1.3 | MIT License | git.io/normalize */ +/* ========================================================================== + * * HTML5 display definitions + * * ========================================================================== */ +/** + * * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3. */ +article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { + display: block; +} + +/** + * * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3. */ +audio, canvas, video { + display: inline-block; + *display: inline; + *zoom: 1; +} + +/** + * * Prevent modern browsers from displaying `audio` without controls. + * * Remove excess height in iOS 5 devices. */ +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4. + * * Known issue: no IE 6 support. */ +[hidden] { + display: none; +} + +/* ========================================================================== + * * Base + * * ========================================================================== */ +/** + * * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using + * * `em` units. + * * 2. Prevent iOS text size adjust after orientation change, without disabling + * * user zoom. */ +html { + font-size: 100%; + /* 1 */ + -ms-text-size-adjust: 100%; + /* 2 */ + -webkit-text-size-adjust: 100%; + /* 2 */ + font-family: sans-serif; +} + +/** + * * Address `font-family` inconsistency between `textarea` and other form + * * elements. */ +button, input, select, textarea { + font-family: sans-serif; +} + +/** + * * Address margins handled incorrectly in IE 6/7. */ +body { + margin: 0; +} + +/* ========================================================================== + * * Links + * * ========================================================================== */ +/** + * * Address `outline` inconsistency between Chrome and other browsers. */ +a:focus { + outline: thin dotted; +} +a:active, a:hover { + outline: 0; +} + +/** + * * Improve readability when focused and also mouse hovered in all browsers. */ +/* ========================================================================== + * * Typography + * * ========================================================================== */ +/** + * * Address font sizes and margins set differently in IE 6/7. + * * Address font sizes within `section` and `article` in Firefox 4+, Safari 5, + * * and Chrome. */ +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +h2 { + font-size: 1.5em; + margin: 0.83em 0; +} + +h3 { + font-size: 1.17em; + margin: 1em 0; +} + +h4, .tsd-index-panel h3 { + font-size: 1em; + margin: 1.33em 0; +} + +h5 { + font-size: 0.83em; + margin: 1.67em 0; +} + +h6 { + font-size: 0.67em; + margin: 2.33em 0; +} + +/** + * * Address styling not present in IE 7/8/9, Safari 5, and Chrome. */ +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome. */ +b, strong { + font-weight: bold; +} + +blockquote { + margin: 1em 40px; +} + +/** + * * Address styling not present in Safari 5 and Chrome. */ +dfn { + font-style: italic; +} + +/** + * * Address differences between Firefox and other browsers. + * * Known issue: no IE 6/7 normalization. */ +hr { + box-sizing: content-box; + height: 0; +} + +/** + * * Address styling not present in IE 6/7/8/9. */ +mark { + background: #ff0; + color: #000; +} + +/** + * * Address margins set differently in IE 6/7. */ +p, pre { + margin: 1em 0; +} + +/** + * * Correct font family set oddly in IE 6, Safari 4/5, and Chrome. */ +code, kbd, pre, samp { + font-family: monospace, serif; + _font-family: "courier new", monospace; + font-size: 1em; +} + +/** + * * Improve readability of pre-formatted text in all browsers. */ +pre { + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; +} + +/** + * * Address CSS quotes not supported in IE 6/7. */ +q { + quotes: none; +} +q:before, q:after { + content: ""; + content: none; +} + +/** + * * Address `quotes` property not supported in Safari 4. */ +/** + * * Address inconsistent and variable font size in all browsers. */ +small { + font-size: 80%; +} + +/** + * * Prevent `sub` and `sup` affecting `line-height` in all browsers. */ +sub { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* ========================================================================== + * * Lists + * * ========================================================================== */ +/** + * * Address margins set differently in IE 6/7. */ +dl, menu, ol, ul { + margin: 1em 0; +} + +dd { + margin: 0 0 0 40px; +} + +/** + * * Address paddings set differently in IE 6/7. */ +menu, ol, ul { + padding: 0 0 0 40px; +} + +/** + * * Correct list images handled incorrectly in IE 7. */ +nav ul, nav ol { + list-style: none; + list-style-image: none; +} + +/* ========================================================================== + * * Embedded content + * * ========================================================================== */ +/** + * * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3. + * * 2. Improve image quality when scaled in IE 7. */ +img { + border: 0; + /* 1 */ + -ms-interpolation-mode: bicubic; +} + +/* 2 */ +/** + * * Correct overflow displayed oddly in IE 9. */ +svg:not(:root) { + overflow: hidden; +} + +/* ========================================================================== + * * Figures + * * ========================================================================== */ +/** + * * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11. */ +figure, form { + margin: 0; +} + +/* ========================================================================== + * * Forms + * * ========================================================================== */ +/** + * * Correct margin displayed oddly in IE 6/7. */ +/** + * * Define consistent border, margin, and padding. */ +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * * 1. Correct color not being inherited in IE 6/7/8/9. + * * 2. Correct text not wrapping in Firefox 3. + * * 3. Correct alignment displayed oddly in IE 6/7. */ +legend { + border: 0; + /* 1 */ + padding: 0; + white-space: normal; + /* 2 */ + *margin-left: -7px; +} + +/* 3 */ +/** + * * 1. Correct font size not being inherited in all browsers. + * * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5, + * * and Chrome. + * * 3. Improve appearance and consistency in all browsers. */ +button, input, select, textarea { + font-size: 100%; + /* 1 */ + margin: 0; + /* 2 */ + vertical-align: baseline; + /* 3 */ + *vertical-align: middle; +} + +/* 3 */ +/** + * * Address Firefox 3+ setting `line-height` on `input` using `!important` in + * * the UA stylesheet. */ +button, input { + line-height: normal; +} + +/** + * * Address inconsistent `text-transform` inheritance for `button` and `select`. + * * All other form control elements do not inherit `text-transform` values. + * * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+. + * * Correct `select` style inheritance in Firefox 4+ and Opera. */ +button, select { + text-transform: none; +} + +/** + * * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * * and `video` controls. + * * 2. Correct inability to style clickable `input` types in iOS. + * * 3. Improve usability and consistency of cursor style between image-type + * * `input` and others. + * * 4. Remove inner spacing in IE 7 without affecting normal text inputs. + * * Known issue: inner spacing remains in IE 6. */ +button, html input[type=button] { + -webkit-appearance: button; + /* 2 */ + cursor: pointer; + /* 3 */ + *overflow: visible; +} + +/* 4 */ +input[type=reset], input[type=submit] { + -webkit-appearance: button; + /* 2 */ + cursor: pointer; + /* 3 */ + *overflow: visible; +} + +/* 4 */ +/** + * * Re-set default cursor for disabled elements. */ +button[disabled], html input[disabled] { + cursor: default; +} + +/** + * * 1. Address box sizing set to content-box in IE 8/9. + * * 2. Remove excess padding in IE 8/9. + * * 3. Remove excess padding in IE 7. + * * Known issue: excess padding remains in IE 6. */ +input { + /* 3 */ +} +input[type=checkbox], input[type=radio] { + box-sizing: border-box; + /* 1 */ + padding: 0; + /* 2 */ + *height: 13px; + /* 3 */ + *width: 13px; +} +input[type=search] { + -webkit-appearance: textfield; + /* 1 */ + /* 2 */ + box-sizing: content-box; +} +input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. + * * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome + * * (include `-moz` to future-proof). */ +/** + * * Remove inner padding and search cancel button in Safari 5 and Chrome + * * on OS X. */ +/** + * * Remove inner padding and border in Firefox 3+. */ +button::-moz-focus-inner, input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * * 1. Remove default vertical scrollbar in IE 6/7/8/9. + * * 2. Improve readability and alignment in all browsers. */ +textarea { + overflow: auto; + /* 1 */ + vertical-align: top; +} + +/* 2 */ +/* ========================================================================== + * * Tables + * * ========================================================================== */ +/** + * * Remove most spacing between table cells. */ +table { + border-collapse: collapse; + border-spacing: 0; +} + +/* * + * *Visual Studio-like style based on original C# coloring by Jason Diamond */ +.hljs { + display: inline-block; + padding: 0.5em; + background: white; + color: black; +} + +.hljs-comment, .hljs-annotation, .hljs-template_comment, .diff .hljs-header, .hljs-chunk, .apache .hljs-cbracket { + color: #008000; +} + +.hljs-keyword, .hljs-id, .hljs-built_in, .css .smalltalk .hljs-class, .hljs-winutils, .bash .hljs-variable, .tex .hljs-command, .hljs-request, .hljs-status, .nginx .hljs-title { + color: #00f; +} + +.xml .hljs-tag { + color: #00f; +} +.xml .hljs-tag .hljs-value { + color: #00f; +} + +.hljs-string, .hljs-title, .hljs-parent, .hljs-tag .hljs-value, .hljs-rules .hljs-value { + color: #a31515; +} + +.ruby .hljs-symbol { + color: #a31515; +} +.ruby .hljs-symbol .hljs-string { + color: #a31515; +} + +.hljs-template_tag, .django .hljs-variable, .hljs-addition, .hljs-flow, .hljs-stream, .apache .hljs-tag, .hljs-date, .tex .hljs-formula, .coffeescript .hljs-attribute { + color: #a31515; +} + +.ruby .hljs-string, .hljs-decorator, .hljs-filter .hljs-argument, .hljs-localvars, .hljs-array, .hljs-attr_selector, .hljs-pseudo, .hljs-pi, .hljs-doctype, .hljs-deletion, .hljs-envvar, .hljs-shebang, .hljs-preprocessor, .hljs-pragma, .userType, .apache .hljs-sqbracket, .nginx .hljs-built_in, .tex .hljs-special, .hljs-prompt { + color: #2b91af; +} + +.hljs-phpdoc, .hljs-javadoc, .hljs-xmlDocTag { + color: #808080; +} + +.vhdl .hljs-typename { + font-weight: bold; +} +.vhdl .hljs-string { + color: #666666; +} +.vhdl .hljs-literal { + color: #a31515; +} +.vhdl .hljs-attribute { + color: #00b0e8; +} + +.xml .hljs-attribute { + color: #f00; +} + +ul.tsd-descriptions > li > :first-child, .tsd-panel > :first-child, .col > :first-child, .col-11 > :first-child, .col-10 > :first-child, .col-9 > :first-child, .col-8 > :first-child, .col-7 > :first-child, .col-6 > :first-child, .col-5 > :first-child, .col-4 > :first-child, .col-3 > :first-child, .col-2 > :first-child, .col-1 > :first-child, +ul.tsd-descriptions > li > :first-child > :first-child, +.tsd-panel > :first-child > :first-child, +.col > :first-child > :first-child, +.col-11 > :first-child > :first-child, +.col-10 > :first-child > :first-child, +.col-9 > :first-child > :first-child, +.col-8 > :first-child > :first-child, +.col-7 > :first-child > :first-child, +.col-6 > :first-child > :first-child, +.col-5 > :first-child > :first-child, +.col-4 > :first-child > :first-child, +.col-3 > :first-child > :first-child, +.col-2 > :first-child > :first-child, +.col-1 > :first-child > :first-child, +ul.tsd-descriptions > li > :first-child > :first-child > :first-child, +.tsd-panel > :first-child > :first-child > :first-child, +.col > :first-child > :first-child > :first-child, +.col-11 > :first-child > :first-child > :first-child, +.col-10 > :first-child > :first-child > :first-child, +.col-9 > :first-child > :first-child > :first-child, +.col-8 > :first-child > :first-child > :first-child, +.col-7 > :first-child > :first-child > :first-child, +.col-6 > :first-child > :first-child > :first-child, +.col-5 > :first-child > :first-child > :first-child, +.col-4 > :first-child > :first-child > :first-child, +.col-3 > :first-child > :first-child > :first-child, +.col-2 > :first-child > :first-child > :first-child, +.col-1 > :first-child > :first-child > :first-child { + margin-top: 0; +} +ul.tsd-descriptions > li > :last-child, .tsd-panel > :last-child, .col > :last-child, .col-11 > :last-child, .col-10 > :last-child, .col-9 > :last-child, .col-8 > :last-child, .col-7 > :last-child, .col-6 > :last-child, .col-5 > :last-child, .col-4 > :last-child, .col-3 > :last-child, .col-2 > :last-child, .col-1 > :last-child, +ul.tsd-descriptions > li > :last-child > :last-child, +.tsd-panel > :last-child > :last-child, +.col > :last-child > :last-child, +.col-11 > :last-child > :last-child, +.col-10 > :last-child > :last-child, +.col-9 > :last-child > :last-child, +.col-8 > :last-child > :last-child, +.col-7 > :last-child > :last-child, +.col-6 > :last-child > :last-child, +.col-5 > :last-child > :last-child, +.col-4 > :last-child > :last-child, +.col-3 > :last-child > :last-child, +.col-2 > :last-child > :last-child, +.col-1 > :last-child > :last-child, +ul.tsd-descriptions > li > :last-child > :last-child > :last-child, +.tsd-panel > :last-child > :last-child > :last-child, +.col > :last-child > :last-child > :last-child, +.col-11 > :last-child > :last-child > :last-child, +.col-10 > :last-child > :last-child > :last-child, +.col-9 > :last-child > :last-child > :last-child, +.col-8 > :last-child > :last-child > :last-child, +.col-7 > :last-child > :last-child > :last-child, +.col-6 > :last-child > :last-child > :last-child, +.col-5 > :last-child > :last-child > :last-child, +.col-4 > :last-child > :last-child > :last-child, +.col-3 > :last-child > :last-child > :last-child, +.col-2 > :last-child > :last-child > :last-child, +.col-1 > :last-child > :last-child > :last-child { + margin-bottom: 0; +} + +.container { + max-width: 1200px; + margin: 0 auto; + padding: 0 40px; +} +@media (max-width: 640px) { + .container { + padding: 0 20px; + } +} + +.container-main { + padding-bottom: 200px; +} + +.row { + display: -ms-flexbox; + display: flex; + position: relative; + margin: 0 -10px; +} +.row:after { + visibility: hidden; + display: block; + content: ""; + clear: both; + height: 0; +} + +.col, .col-11, .col-10, .col-9, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3, .col-2, .col-1 { + box-sizing: border-box; + float: left; + padding: 0 10px; +} + +.col-1 { + width: 8.3333333333%; +} + +.offset-1 { + margin-left: 8.3333333333%; +} + +.col-2 { + width: 16.6666666667%; +} + +.offset-2 { + margin-left: 16.6666666667%; +} + +.col-3 { + width: 25%; +} + +.offset-3 { + margin-left: 25%; +} + +.col-4 { + width: 33.3333333333%; +} + +.offset-4 { + margin-left: 33.3333333333%; +} + +.col-5 { + width: 41.6666666667%; +} + +.offset-5 { + margin-left: 41.6666666667%; +} + +.col-6 { + width: 50%; +} + +.offset-6 { + margin-left: 50%; +} + +.col-7 { + width: 58.3333333333%; +} + +.offset-7 { + margin-left: 58.3333333333%; +} + +.col-8 { + width: 66.6666666667%; +} + +.offset-8 { + margin-left: 66.6666666667%; +} + +.col-9 { + width: 75%; +} + +.offset-9 { + margin-left: 75%; +} + +.col-10 { + width: 83.3333333333%; +} + +.offset-10 { + margin-left: 83.3333333333%; +} + +.col-11 { + width: 91.6666666667%; +} + +.offset-11 { + margin-left: 91.6666666667%; +} + +.tsd-kind-icon { + display: block; + position: relative; + padding-left: 20px; + text-indent: -20px; +} +.tsd-kind-icon:before { + content: ""; + display: inline-block; + vertical-align: middle; + width: 17px; + height: 17px; + margin: 0 3px 2px 0; + background-image: url(../images/icons.png); +} +@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { + .tsd-kind-icon:before { + background-image: url(../images/icons@2x.png); + background-size: 238px 204px; + } +} + +.tsd-signature.tsd-kind-icon:before { + background-position: 0 -153px; +} + +.tsd-kind-object-literal > .tsd-kind-icon:before { + background-position: 0px -17px; +} +.tsd-kind-object-literal.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -17px; +} +.tsd-kind-object-literal.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -17px; +} + +.tsd-kind-class > .tsd-kind-icon:before { + background-position: 0px -34px; +} +.tsd-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -34px; +} +.tsd-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -34px; +} + +.tsd-kind-class.tsd-has-type-parameter > .tsd-kind-icon:before { + background-position: 0px -51px; +} +.tsd-kind-class.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -51px; +} +.tsd-kind-class.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -51px; +} + +.tsd-kind-interface > .tsd-kind-icon:before { + background-position: 0px -68px; +} +.tsd-kind-interface.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -68px; +} +.tsd-kind-interface.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -68px; +} + +.tsd-kind-interface.tsd-has-type-parameter > .tsd-kind-icon:before { + background-position: 0px -85px; +} +.tsd-kind-interface.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -85px; +} +.tsd-kind-interface.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -85px; +} + +.tsd-kind-namespace > .tsd-kind-icon:before { + background-position: 0px -102px; +} +.tsd-kind-namespace.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -102px; +} +.tsd-kind-namespace.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -102px; +} + +.tsd-kind-module > .tsd-kind-icon:before { + background-position: 0px -102px; +} +.tsd-kind-module.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -102px; +} +.tsd-kind-module.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -102px; +} + +.tsd-kind-enum > .tsd-kind-icon:before { + background-position: 0px -119px; +} +.tsd-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -119px; +} +.tsd-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -119px; +} + +.tsd-kind-enum-member > .tsd-kind-icon:before { + background-position: 0px -136px; +} +.tsd-kind-enum-member.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -136px; +} +.tsd-kind-enum-member.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -136px; +} + +.tsd-kind-signature > .tsd-kind-icon:before { + background-position: 0px -153px; +} +.tsd-kind-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -153px; +} +.tsd-kind-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -153px; +} + +.tsd-kind-type-alias > .tsd-kind-icon:before { + background-position: 0px -170px; +} +.tsd-kind-type-alias.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -170px; +} +.tsd-kind-type-alias.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -170px; +} + +.tsd-kind-type-alias.tsd-has-type-parameter > .tsd-kind-icon:before { + background-position: 0px -187px; +} +.tsd-kind-type-alias.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { + background-position: -17px -187px; +} +.tsd-kind-type-alias.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { + background-position: -34px -187px; +} + +.tsd-kind-variable > .tsd-kind-icon:before { + background-position: -136px -0px; +} +.tsd-kind-variable.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -0px; +} +.tsd-kind-variable.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -0px; +} +.tsd-kind-variable.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -0px; +} +.tsd-kind-variable.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -0px; +} +.tsd-kind-variable.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -0px; +} +.tsd-kind-variable.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -0px; +} +.tsd-kind-variable.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -0px; +} +.tsd-kind-variable.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -0px; +} +.tsd-kind-variable.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -0px; +} +.tsd-kind-variable.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -0px; +} +.tsd-kind-variable.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -0px; +} +.tsd-kind-variable.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -0px; +} + +.tsd-kind-property > .tsd-kind-icon:before { + background-position: -136px -0px; +} +.tsd-kind-property.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -0px; +} +.tsd-kind-property.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -0px; +} +.tsd-kind-property.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -0px; +} +.tsd-kind-property.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -0px; +} +.tsd-kind-property.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -0px; +} +.tsd-kind-property.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -0px; +} +.tsd-kind-property.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -0px; +} +.tsd-kind-property.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -0px; +} +.tsd-kind-property.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -0px; +} +.tsd-kind-property.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -0px; +} +.tsd-kind-property.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -0px; +} +.tsd-kind-property.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -0px; +} + +.tsd-kind-get-signature > .tsd-kind-icon:before { + background-position: -136px -17px; +} +.tsd-kind-get-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -17px; +} +.tsd-kind-get-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -17px; +} +.tsd-kind-get-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -17px; +} + +.tsd-kind-set-signature > .tsd-kind-icon:before { + background-position: -136px -34px; +} +.tsd-kind-set-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -34px; +} +.tsd-kind-set-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -34px; +} +.tsd-kind-set-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -34px; +} + +.tsd-kind-accessor > .tsd-kind-icon:before { + background-position: -136px -51px; +} +.tsd-kind-accessor.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -51px; +} +.tsd-kind-accessor.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -51px; +} +.tsd-kind-accessor.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -51px; +} + +.tsd-kind-function > .tsd-kind-icon:before { + background-position: -136px -68px; +} +.tsd-kind-function.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -68px; +} +.tsd-kind-function.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-function.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -68px; +} +.tsd-kind-function.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -68px; +} +.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -68px; +} +.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -68px; +} +.tsd-kind-function.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-function.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -68px; +} +.tsd-kind-function.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -68px; +} +.tsd-kind-function.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-function.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -68px; +} +.tsd-kind-function.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -68px; +} + +.tsd-kind-method > .tsd-kind-icon:before { + background-position: -136px -68px; +} +.tsd-kind-method.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -68px; +} +.tsd-kind-method.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-method.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -68px; +} +.tsd-kind-method.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -68px; +} +.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -68px; +} +.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -68px; +} +.tsd-kind-method.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-method.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -68px; +} +.tsd-kind-method.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -68px; +} +.tsd-kind-method.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-method.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -68px; +} +.tsd-kind-method.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -68px; +} + +.tsd-kind-call-signature > .tsd-kind-icon:before { + background-position: -136px -68px; +} +.tsd-kind-call-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -68px; +} +.tsd-kind-call-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -68px; +} +.tsd-kind-call-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -68px; +} + +.tsd-kind-function.tsd-has-type-parameter > .tsd-kind-icon:before { + background-position: -136px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -85px; +} +.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -85px; +} + +.tsd-kind-method.tsd-has-type-parameter > .tsd-kind-icon:before { + background-position: -136px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -85px; +} +.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -85px; +} + +.tsd-kind-constructor > .tsd-kind-icon:before { + background-position: -136px -102px; +} +.tsd-kind-constructor.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -102px; +} +.tsd-kind-constructor.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -102px; +} +.tsd-kind-constructor.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -102px; +} + +.tsd-kind-constructor-signature > .tsd-kind-icon:before { + background-position: -136px -102px; +} +.tsd-kind-constructor-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -102px; +} +.tsd-kind-constructor-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -102px; +} +.tsd-kind-constructor-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -102px; +} + +.tsd-kind-index-signature > .tsd-kind-icon:before { + background-position: -136px -119px; +} +.tsd-kind-index-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -119px; +} +.tsd-kind-index-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -119px; +} +.tsd-kind-index-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -119px; +} + +.tsd-kind-event > .tsd-kind-icon:before { + background-position: -136px -136px; +} +.tsd-kind-event.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -136px; +} +.tsd-kind-event.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -136px; +} +.tsd-kind-event.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -136px; +} +.tsd-kind-event.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -136px; +} +.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -136px; +} +.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -136px; +} +.tsd-kind-event.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -136px; +} +.tsd-kind-event.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -136px; +} +.tsd-kind-event.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -136px; +} +.tsd-kind-event.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -136px; +} +.tsd-kind-event.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -136px; +} +.tsd-kind-event.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -136px; +} + +.tsd-is-static > .tsd-kind-icon:before { + background-position: -136px -153px; +} +.tsd-is-static.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -153px; +} +.tsd-is-static.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -153px; +} +.tsd-is-static.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -153px; +} +.tsd-is-static.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -153px; +} +.tsd-is-static.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -153px; +} +.tsd-is-static.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -153px; +} +.tsd-is-static.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -153px; +} +.tsd-is-static.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -153px; +} +.tsd-is-static.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -153px; +} +.tsd-is-static.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -153px; +} +.tsd-is-static.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -153px; +} +.tsd-is-static.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -153px; +} + +.tsd-is-static.tsd-kind-function > .tsd-kind-icon:before { + background-position: -136px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -170px; +} +.tsd-is-static.tsd-kind-function.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -170px; +} + +.tsd-is-static.tsd-kind-method > .tsd-kind-icon:before { + background-position: -136px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -170px; +} +.tsd-is-static.tsd-kind-method.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -170px; +} + +.tsd-is-static.tsd-kind-call-signature > .tsd-kind-icon:before { + background-position: -136px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -170px; +} +.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -170px; +} + +.tsd-is-static.tsd-kind-event > .tsd-kind-icon:before { + background-position: -136px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-is-protected > .tsd-kind-icon:before { + background-position: -153px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-class > .tsd-kind-icon:before { + background-position: -51px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -68px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { + background-position: -85px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -102px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum > .tsd-kind-icon:before { + background-position: -170px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { + background-position: -187px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { + background-position: -119px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-interface > .tsd-kind-icon:before { + background-position: -204px -187px; +} +.tsd-is-static.tsd-kind-event.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { + background-position: -221px -187px; +} + +@keyframes fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } +} +@keyframes fade-out { + from { + opacity: 1; + visibility: visible; + } + to { + opacity: 0; + } +} +@keyframes fade-in-delayed { + 0% { + opacity: 0; + } + 33% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes fade-out-delayed { + 0% { + opacity: 1; + visibility: visible; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } +} +@keyframes shift-to-left { + from { + transform: translate(0, 0); + } + to { + transform: translate(-25%, 0); + } +} +@keyframes unshift-to-left { + from { + transform: translate(-25%, 0); + } + to { + transform: translate(0, 0); + } +} +@keyframes pop-in-from-right { + from { + transform: translate(100%, 0); + } + to { + transform: translate(0, 0); + } +} +@keyframes pop-out-to-right { + from { + transform: translate(0, 0); + visibility: visible; + } + to { + transform: translate(100%, 0); + } +} +body { + background: #fdfdfd; + font-family: "Segoe UI", sans-serif; + font-size: 16px; + color: #222; +} + +a { + color: #4da6ff; + text-decoration: none; +} +a:hover { + text-decoration: underline; +} + +code, pre { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + padding: 0.2em; + margin: 0; + font-size: 14px; + background-color: rgba(0, 0, 0, 0.04); +} + +pre { + padding: 10px; +} +pre code { + padding: 0; + font-size: 100%; + background-color: transparent; +} + +.tsd-typography { + line-height: 1.333em; +} +.tsd-typography ul { + list-style: square; + padding: 0 0 0 20px; + margin: 0; +} +.tsd-typography h4, .tsd-typography .tsd-index-panel h3, .tsd-index-panel .tsd-typography h3, .tsd-typography h5, .tsd-typography h6 { + font-size: 1em; + margin: 0; +} +.tsd-typography h5, .tsd-typography h6 { + font-weight: normal; +} +.tsd-typography p, .tsd-typography ul, .tsd-typography ol { + margin: 1em 0; +} + +@media (min-width: 901px) and (max-width: 1024px) { + html.default .col-content { + width: 72%; + } + html.default .col-menu { + width: 28%; + } + html.default .tsd-navigation { + padding-left: 10px; + } +} +@media (max-width: 900px) { + html.default .col-content { + float: none; + width: 100%; + } + html.default .col-menu { + position: fixed !important; + overflow: auto; + -webkit-overflow-scrolling: touch; + z-index: 1024; + top: 0 !important; + bottom: 0 !important; + left: auto !important; + right: 0 !important; + width: 100%; + padding: 20px 20px 0 0; + max-width: 450px; + visibility: hidden; + background-color: #fff; + transform: translate(100%, 0); + } + html.default .col-menu > *:last-child { + padding-bottom: 20px; + } + html.default .overlay { + content: ""; + display: block; + position: fixed; + z-index: 1023; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.75); + visibility: hidden; + } + html.default.to-has-menu .overlay { + animation: fade-in 0.4s; + } + html.default.to-has-menu header, +html.default.to-has-menu footer, +html.default.to-has-menu .col-content { + animation: shift-to-left 0.4s; + } + html.default.to-has-menu .col-menu { + animation: pop-in-from-right 0.4s; + } + html.default.from-has-menu .overlay { + animation: fade-out 0.4s; + } + html.default.from-has-menu header, +html.default.from-has-menu footer, +html.default.from-has-menu .col-content { + animation: unshift-to-left 0.4s; + } + html.default.from-has-menu .col-menu { + animation: pop-out-to-right 0.4s; + } + html.default.has-menu body { + overflow: hidden; + } + html.default.has-menu .overlay { + visibility: visible; + } + html.default.has-menu header, +html.default.has-menu footer, +html.default.has-menu .col-content { + transform: translate(-25%, 0); + } + html.default.has-menu .col-menu { + visibility: visible; + transform: translate(0, 0); + } +} + +.tsd-page-title { + padding: 70px 0 20px 0; + margin: 0 0 40px 0; + background: #fff; + box-shadow: 0 0 5px rgba(0, 0, 0, 0.35); +} +.tsd-page-title h1 { + margin: 0; +} + +.tsd-breadcrumb { + margin: 0; + padding: 0; + color: #808080; +} +.tsd-breadcrumb a { + color: #808080; + text-decoration: none; +} +.tsd-breadcrumb a:hover { + text-decoration: underline; +} +.tsd-breadcrumb li { + display: inline; +} +.tsd-breadcrumb li:after { + content: " / "; +} + +html.minimal .container { + margin: 0; +} +html.minimal .container-main { + padding-top: 50px; + padding-bottom: 0; +} +html.minimal .content-wrap { + padding-left: 300px; +} +html.minimal .tsd-navigation { + position: fixed !important; + overflow: auto; + -webkit-overflow-scrolling: touch; + box-sizing: border-box; + z-index: 1; + left: 0; + top: 40px; + bottom: 0; + width: 300px; + padding: 20px; + margin: 0; +} +html.minimal .tsd-member .tsd-member { + margin-left: 0; +} +html.minimal .tsd-page-toolbar { + position: fixed; + z-index: 2; +} +html.minimal #tsd-filter .tsd-filter-group { + right: 0; + transform: none; +} +html.minimal footer { + background-color: transparent; +} +html.minimal footer .container { + padding: 0; +} +html.minimal .tsd-generator { + padding: 0; +} +@media (max-width: 900px) { + html.minimal .tsd-navigation { + display: none; + } + html.minimal .content-wrap { + padding-left: 0; + } +} + +dl.tsd-comment-tags { + overflow: hidden; +} +dl.tsd-comment-tags dt { + float: left; + padding: 1px 5px; + margin: 0 10px 0 0; + border-radius: 4px; + border: 1px solid #808080; + color: #808080; + font-size: 0.8em; + font-weight: normal; +} +dl.tsd-comment-tags dd { + margin: 0 0 10px 0; +} +dl.tsd-comment-tags dd:before, dl.tsd-comment-tags dd:after { + display: table; + content: " "; +} +dl.tsd-comment-tags dd pre, dl.tsd-comment-tags dd:after { + clear: both; +} +dl.tsd-comment-tags p { + margin: 0; +} + +.tsd-panel.tsd-comment .lead { + font-size: 1.1em; + line-height: 1.333em; + margin-bottom: 2em; +} +.tsd-panel.tsd-comment .lead:last-child { + margin-bottom: 0; +} + +.toggle-protected .tsd-is-private { + display: none; +} + +.toggle-public .tsd-is-private, +.toggle-public .tsd-is-protected, +.toggle-public .tsd-is-private-protected { + display: none; +} + +.toggle-inherited .tsd-is-inherited { + display: none; +} + +.toggle-only-exported .tsd-is-not-exported { + display: none; +} + +.toggle-externals .tsd-is-external { + display: none; +} + +#tsd-filter { + position: relative; + display: inline-block; + height: 40px; + vertical-align: bottom; +} +.no-filter #tsd-filter { + display: none; +} +#tsd-filter .tsd-filter-group { + display: inline-block; + height: 40px; + vertical-align: bottom; + white-space: nowrap; +} +#tsd-filter input { + display: none; +} +@media (max-width: 900px) { + #tsd-filter .tsd-filter-group { + display: block; + position: absolute; + top: 40px; + right: 20px; + height: auto; + background-color: #fff; + visibility: hidden; + transform: translate(50%, 0); + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); + } + .has-options #tsd-filter .tsd-filter-group { + visibility: visible; + } + .to-has-options #tsd-filter .tsd-filter-group { + animation: fade-in 0.2s; + } + .from-has-options #tsd-filter .tsd-filter-group { + animation: fade-out 0.2s; + } + #tsd-filter label, +#tsd-filter .tsd-select { + display: block; + padding-right: 20px; + } +} + +footer { + border-top: 1px solid #eee; + background-color: #fff; +} +footer.with-border-bottom { + border-bottom: 1px solid #eee; +} +footer .tsd-legend-group { + font-size: 0; +} +footer .tsd-legend { + display: inline-block; + width: 25%; + padding: 0; + font-size: 16px; + list-style: none; + line-height: 1.333em; + vertical-align: top; +} +@media (max-width: 900px) { + footer .tsd-legend { + width: 50%; + } +} + +.tsd-hierarchy { + list-style: square; + padding: 0 0 0 20px; + margin: 0; +} +.tsd-hierarchy .target { + font-weight: bold; +} + +.tsd-index-panel .tsd-index-content { + margin-bottom: -30px !important; +} +.tsd-index-panel .tsd-index-section { + margin-bottom: 30px !important; +} +.tsd-index-panel h3 { + margin: 0 -20px 10px -20px; + padding: 0 20px 10px 20px; + border-bottom: 1px solid #eee; +} +.tsd-index-panel ul.tsd-index-list { + -moz-column-count: 3; + -ms-column-count: 3; + -o-column-count: 3; + column-count: 3; + -moz-column-gap: 20px; + -ms-column-gap: 20px; + -o-column-gap: 20px; + column-gap: 20px; + padding: 0; + list-style: none; + line-height: 1.333em; +} +@media (max-width: 900px) { + .tsd-index-panel ul.tsd-index-list { + -moz-column-count: 1; + -ms-column-count: 1; + -o-column-count: 1; + column-count: 1; + } +} +@media (min-width: 901px) and (max-width: 1024px) { + .tsd-index-panel ul.tsd-index-list { + -moz-column-count: 2; + -ms-column-count: 2; + -o-column-count: 2; + column-count: 2; + } +} +.tsd-index-panel ul.tsd-index-list li { + -webkit-page-break-inside: avoid; + -moz-page-break-inside: avoid; + -ms-page-break-inside: avoid; + -o-page-break-inside: avoid; + page-break-inside: avoid; +} +.tsd-index-panel a, +.tsd-index-panel .tsd-parent-kind-module a { + color: #9600ff; +} +.tsd-index-panel .tsd-parent-kind-interface a { + color: #7da01f; +} +.tsd-index-panel .tsd-parent-kind-enum a { + color: #cc9900; +} +.tsd-index-panel .tsd-parent-kind-class a { + color: #4da6ff; +} +.tsd-index-panel .tsd-kind-module a { + color: #9600ff; +} +.tsd-index-panel .tsd-kind-interface a { + color: #7da01f; +} +.tsd-index-panel .tsd-kind-enum a { + color: #cc9900; +} +.tsd-index-panel .tsd-kind-class a { + color: #4da6ff; +} +.tsd-index-panel .tsd-is-private a { + color: #808080; +} + +.tsd-flag { + display: inline-block; + padding: 1px 5px; + border-radius: 4px; + color: #fff; + background-color: #808080; + text-indent: 0; + font-size: 14px; + font-weight: normal; +} + +.tsd-anchor { + position: absolute; + top: -100px; +} + +.tsd-member { + position: relative; +} +.tsd-member .tsd-anchor + h3 { + margin-top: 0; + margin-bottom: 0; + border-bottom: none; +} + +.tsd-navigation { + margin: 0 0 0 40px; +} +.tsd-navigation a { + display: block; + padding-top: 2px; + padding-bottom: 2px; + border-left: 2px solid transparent; + color: #222; + text-decoration: none; + transition: border-left-color 0.1s; +} +.tsd-navigation a:hover { + text-decoration: underline; +} +.tsd-navigation ul { + margin: 0; + padding: 0; + list-style: none; +} +.tsd-navigation li { + padding: 0; +} + +.tsd-navigation.primary { + padding-bottom: 40px; +} +.tsd-navigation.primary a { + display: block; + padding-top: 6px; + padding-bottom: 6px; +} +.tsd-navigation.primary ul li a { + padding-left: 5px; +} +.tsd-navigation.primary ul li li a { + padding-left: 25px; +} +.tsd-navigation.primary ul li li li a { + padding-left: 45px; +} +.tsd-navigation.primary ul li li li li a { + padding-left: 65px; +} +.tsd-navigation.primary ul li li li li li a { + padding-left: 85px; +} +.tsd-navigation.primary ul li li li li li li a { + padding-left: 105px; +} +.tsd-navigation.primary > ul { + border-bottom: 1px solid #eee; +} +.tsd-navigation.primary li { + border-top: 1px solid #eee; +} +.tsd-navigation.primary li.current > a { + font-weight: bold; +} +.tsd-navigation.primary li.label span { + display: block; + padding: 20px 0 6px 5px; + color: #808080; +} +.tsd-navigation.primary li.globals + li > span, .tsd-navigation.primary li.globals + li > a { + padding-top: 20px; +} + +.tsd-navigation.secondary { + max-height: calc(100vh - 1rem - 40px); + overflow: auto; + position: -webkit-sticky; + position: sticky; + top: calc(.5rem + 40px); + transition: 0.3s; +} +.tsd-navigation.secondary.tsd-navigation--toolbar-hide { + max-height: calc(100vh - 1rem); + top: 0.5rem; +} +.tsd-navigation.secondary ul { + transition: opacity 0.2s; +} +.tsd-navigation.secondary ul li a { + padding-left: 25px; +} +.tsd-navigation.secondary ul li li a { + padding-left: 45px; +} +.tsd-navigation.secondary ul li li li a { + padding-left: 65px; +} +.tsd-navigation.secondary ul li li li li a { + padding-left: 85px; +} +.tsd-navigation.secondary ul li li li li li a { + padding-left: 105px; +} +.tsd-navigation.secondary ul li li li li li li a { + padding-left: 125px; +} +.tsd-navigation.secondary ul.current a { + border-left-color: #eee; +} +.tsd-navigation.secondary li.focus > a, +.tsd-navigation.secondary ul.current li.focus > a { + border-left-color: #000; +} +.tsd-navigation.secondary li.current { + margin-top: 20px; + margin-bottom: 20px; + border-left-color: #eee; +} +.tsd-navigation.secondary li.current > a { + font-weight: bold; +} + +@media (min-width: 901px) { + .menu-sticky-wrap { + position: static; + } +} + +.tsd-panel { + margin: 20px 0; + padding: 20px; + background-color: #fff; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); +} +.tsd-panel:empty { + display: none; +} +.tsd-panel > h1, .tsd-panel > h2, .tsd-panel > h3 { + margin: 1.5em -20px 10px -20px; + padding: 0 20px 10px 20px; + border-bottom: 1px solid #eee; +} +.tsd-panel > h1.tsd-before-signature, .tsd-panel > h2.tsd-before-signature, .tsd-panel > h3.tsd-before-signature { + margin-bottom: 0; + border-bottom: 0; +} +.tsd-panel table { + display: block; + width: 100%; + overflow: auto; + margin-top: 10px; + word-break: normal; + word-break: keep-all; +} +.tsd-panel table th { + font-weight: bold; +} +.tsd-panel table th, .tsd-panel table td { + padding: 6px 13px; + border: 1px solid #ddd; +} +.tsd-panel table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} +.tsd-panel table tr:nth-child(2n) { + background-color: #f8f8f8; +} + +.tsd-panel-group { + margin: 60px 0; +} +.tsd-panel-group > h1, .tsd-panel-group > h2, .tsd-panel-group > h3 { + padding-left: 20px; + padding-right: 20px; +} + +#tsd-search { + transition: background-color 0.2s; +} +#tsd-search .title { + position: relative; + z-index: 2; +} +#tsd-search .field { + position: absolute; + left: 0; + top: 0; + right: 40px; + height: 40px; +} +#tsd-search .field input { + box-sizing: border-box; + position: relative; + top: -50px; + z-index: 1; + width: 100%; + padding: 0 10px; + opacity: 0; + outline: 0; + border: 0; + background: transparent; + color: #222; +} +#tsd-search .field label { + position: absolute; + overflow: hidden; + right: -40px; +} +#tsd-search .field input, +#tsd-search .title { + transition: opacity 0.2s; +} +#tsd-search .results { + position: absolute; + visibility: hidden; + top: 40px; + width: 100%; + margin: 0; + padding: 0; + list-style: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); +} +#tsd-search .results li { + padding: 0 10px; + background-color: #fdfdfd; +} +#tsd-search .results li:nth-child(even) { + background-color: #fff; +} +#tsd-search .results li.state { + display: none; +} +#tsd-search .results li.current, +#tsd-search .results li:hover { + background-color: #eee; +} +#tsd-search .results a { + display: block; +} +#tsd-search .results a:before { + top: 10px; +} +#tsd-search .results span.parent { + color: #808080; + font-weight: normal; +} +#tsd-search.has-focus { + background-color: #eee; +} +#tsd-search.has-focus .field input { + top: 0; + opacity: 1; +} +#tsd-search.has-focus .title { + z-index: 0; + opacity: 0; +} +#tsd-search.has-focus .results { + visibility: visible; +} +#tsd-search.loading .results li.state.loading { + display: block; +} +#tsd-search.failure .results li.state.failure { + display: block; +} + +.tsd-signature { + margin: 0 0 1em 0; + padding: 10px; + border: 1px solid #eee; + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 14px; + overflow-x: auto; +} +.tsd-signature.tsd-kind-icon { + padding-left: 30px; +} +.tsd-signature.tsd-kind-icon:before { + top: 10px; + left: 10px; +} +.tsd-panel > .tsd-signature { + margin-left: -20px; + margin-right: -20px; + border-width: 1px 0; +} +.tsd-panel > .tsd-signature.tsd-kind-icon { + padding-left: 40px; +} +.tsd-panel > .tsd-signature.tsd-kind-icon:before { + left: 20px; +} + +.tsd-signature-symbol { + color: #808080; + font-weight: normal; +} + +.tsd-signature-type { + font-style: italic; + font-weight: normal; +} + +.tsd-signatures { + padding: 0; + margin: 0 0 1em 0; + border: 1px solid #eee; +} +.tsd-signatures .tsd-signature { + margin: 0; + border-width: 1px 0 0 0; + transition: background-color 0.1s; +} +.tsd-signatures .tsd-signature:first-child { + border-top-width: 0; +} +.tsd-signatures .tsd-signature.current { + background-color: #eee; +} +.tsd-signatures.active > .tsd-signature { + cursor: pointer; +} +.tsd-panel > .tsd-signatures { + margin-left: -20px; + margin-right: -20px; + border-width: 1px 0; +} +.tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon { + padding-left: 40px; +} +.tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon:before { + left: 20px; +} +.tsd-panel > a.anchor + .tsd-signatures { + border-top-width: 0; + margin-top: -20px; +} + +ul.tsd-descriptions { + position: relative; + overflow: hidden; + padding: 0; + list-style: none; +} +ul.tsd-descriptions.active > .tsd-description { + display: none; +} +ul.tsd-descriptions.active > .tsd-description.current { + display: block; +} +ul.tsd-descriptions.active > .tsd-description.fade-in { + animation: fade-in-delayed 0.3s; +} +ul.tsd-descriptions.active > .tsd-description.fade-out { + animation: fade-out-delayed 0.3s; + position: absolute; + display: block; + top: 0; + left: 0; + right: 0; + opacity: 0; + visibility: hidden; +} +ul.tsd-descriptions h4, ul.tsd-descriptions .tsd-index-panel h3, .tsd-index-panel ul.tsd-descriptions h3 { + font-size: 16px; + margin: 1em 0 0.5em 0; +} + +ul.tsd-parameters, +ul.tsd-type-parameters { + list-style: square; + margin: 0; + padding-left: 20px; +} +ul.tsd-parameters > li.tsd-parameter-signature, +ul.tsd-type-parameters > li.tsd-parameter-signature { + list-style: none; + margin-left: -20px; +} +ul.tsd-parameters h5, +ul.tsd-type-parameters h5 { + font-size: 16px; + margin: 1em 0 0.5em 0; +} +ul.tsd-parameters .tsd-comment, +ul.tsd-type-parameters .tsd-comment { + margin-top: -0.5em; +} + +.tsd-sources { + font-size: 14px; + color: #808080; + margin: 0 0 1em 0; +} +.tsd-sources a { + color: #808080; + text-decoration: underline; +} +.tsd-sources ul, .tsd-sources p { + margin: 0 !important; +} +.tsd-sources ul { + list-style: none; + padding: 0; +} + +.tsd-page-toolbar { + position: fixed; + z-index: 1; + top: 0; + left: 0; + width: 100%; + height: 40px; + color: #333; + background: #fff; + border-bottom: 1px solid #eee; + transition: transform 0.3s linear; +} +.tsd-page-toolbar a { + color: #333; + text-decoration: none; +} +.tsd-page-toolbar a.title { + font-weight: bold; +} +.tsd-page-toolbar a.title:hover { + text-decoration: underline; +} +.tsd-page-toolbar .table-wrap { + display: table; + width: 100%; + height: 40px; +} +.tsd-page-toolbar .table-cell { + display: table-cell; + position: relative; + white-space: nowrap; + line-height: 40px; +} +.tsd-page-toolbar .table-cell:first-child { + width: 100%; +} + +.tsd-page-toolbar--hide { + transform: translateY(-100%); +} + +.tsd-select .tsd-select-list li:before, .tsd-select .tsd-select-label:before, .tsd-widget:before { + content: ""; + display: inline-block; + width: 40px; + height: 40px; + margin: 0 -8px 0 0; + background-image: url(../images/widgets.png); + background-repeat: no-repeat; + text-indent: -1024px; + vertical-align: bottom; +} +@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { + .tsd-select .tsd-select-list li:before, .tsd-select .tsd-select-label:before, .tsd-widget:before { + background-image: url(../images/widgets@2x.png); + background-size: 320px 40px; + } +} + +.tsd-widget { + display: inline-block; + overflow: hidden; + opacity: 0.6; + height: 40px; + transition: opacity 0.1s, background-color 0.2s; + vertical-align: bottom; + cursor: pointer; +} +.tsd-widget:hover { + opacity: 0.8; +} +.tsd-widget.active { + opacity: 1; + background-color: #eee; +} +.tsd-widget.no-caption { + width: 40px; +} +.tsd-widget.no-caption:before { + margin: 0; +} +.tsd-widget.search:before { + background-position: 0 0; +} +.tsd-widget.menu:before { + background-position: -40px 0; +} +.tsd-widget.options:before { + background-position: -80px 0; +} +.tsd-widget.options, .tsd-widget.menu { + display: none; +} +@media (max-width: 900px) { + .tsd-widget.options, .tsd-widget.menu { + display: inline-block; + } +} +input[type=checkbox] + .tsd-widget:before { + background-position: -120px 0; +} +input[type=checkbox]:checked + .tsd-widget:before { + background-position: -160px 0; +} + +.tsd-select { + position: relative; + display: inline-block; + height: 40px; + transition: opacity 0.1s, background-color 0.2s; + vertical-align: bottom; + cursor: pointer; +} +.tsd-select .tsd-select-label { + opacity: 0.6; + transition: opacity 0.2s; +} +.tsd-select .tsd-select-label:before { + background-position: -240px 0; +} +.tsd-select.active .tsd-select-label { + opacity: 0.8; +} +.tsd-select.active .tsd-select-list { + visibility: visible; + opacity: 1; + transition-delay: 0s; +} +.tsd-select .tsd-select-list { + position: absolute; + visibility: hidden; + top: 40px; + left: 0; + margin: 0; + padding: 0; + opacity: 0; + list-style: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); + transition: visibility 0s 0.2s, opacity 0.2s; +} +.tsd-select .tsd-select-list li { + padding: 0 20px 0 0; + background-color: #fdfdfd; +} +.tsd-select .tsd-select-list li:before { + background-position: 40px 0; +} +.tsd-select .tsd-select-list li:nth-child(even) { + background-color: #fff; +} +.tsd-select .tsd-select-list li:hover { + background-color: #eee; +} +.tsd-select .tsd-select-list li.selected:before { + background-position: -200px 0; +} +@media (max-width: 900px) { + .tsd-select .tsd-select-list { + top: 0; + left: auto; + right: 100%; + margin-right: -5px; + } + .tsd-select .tsd-select-label:before { + background-position: -280px 0; + } +} + +img { + max-width: 100%; +} \ No newline at end of file diff --git a/source/docs/assets/images/icons.png b/source/docs/assets/images/icons.png new file mode 100644 index 00000000..3836d5fe Binary files /dev/null and b/source/docs/assets/images/icons.png differ diff --git a/source/docs/assets/images/icons@2x.png b/source/docs/assets/images/icons@2x.png new file mode 100644 index 00000000..5a209e2f Binary files /dev/null and b/source/docs/assets/images/icons@2x.png differ diff --git a/source/docs/assets/images/widgets.png b/source/docs/assets/images/widgets.png new file mode 100644 index 00000000..c7380532 Binary files /dev/null and b/source/docs/assets/images/widgets.png differ diff --git a/source/docs/assets/images/widgets@2x.png b/source/docs/assets/images/widgets@2x.png new file mode 100644 index 00000000..4bbbd572 Binary files /dev/null and b/source/docs/assets/images/widgets@2x.png differ diff --git a/source/docs/assets/js/main.js b/source/docs/assets/js/main.js new file mode 100644 index 00000000..fe9fac3b --- /dev/null +++ b/source/docs/assets/js/main.js @@ -0,0 +1 @@ +!function(){var e=function(t){var r=new e.Builder;return r.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),r.searchPipeline.add(e.stemmer),t.call(r,r),r.build()};e.version="2.3.7",e.utils={},e.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),e.utils.asString=function(e){return null==e?"":e.toString()},e.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),i=0;i=this.length)return e.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},e.QueryLexer.prototype.width=function(){return this.pos-this.start},e.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},e.QueryLexer.prototype.backup=function(){this.pos-=1},e.QueryLexer.prototype.acceptDigitRun=function(){for(var t,r;47<(r=(t=this.next()).charCodeAt(0))&&r<58;);t!=e.QueryLexer.EOS&&this.backup()},e.QueryLexer.prototype.more=function(){return this.pos=this.scrollTop||0===this.scrollTop,isShown!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),this.secondaryNav.classList.toggle("tsd-navigation--toolbar-hide")),this.lastY=this.scrollTop},Viewport}(typedoc.EventTarget);typedoc.Viewport=Viewport,typedoc.registerService(Viewport,"viewport")}(typedoc||(typedoc={})),function(typedoc){function Component(options){this.el=options.el}typedoc.Component=Component}(typedoc||(typedoc={})),function(typedoc){typedoc.pointerDown="mousedown",typedoc.pointerMove="mousemove",typedoc.pointerUp="mouseup",typedoc.pointerDownPosition={x:0,y:0},typedoc.preventNextClick=!1,typedoc.isPointerDown=!1,typedoc.isPointerTouch=!1,typedoc.hasPointerMoved=!1,typedoc.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),document.documentElement.classList.add(typedoc.isMobile?"is-mobile":"not-mobile"),typedoc.isMobile&&"ontouchstart"in document.documentElement&&(typedoc.isPointerTouch=!0,typedoc.pointerDown="touchstart",typedoc.pointerMove="touchmove",typedoc.pointerUp="touchend"),document.addEventListener(typedoc.pointerDown,function(e){typedoc.isPointerDown=!0,typedoc.hasPointerMoved=!1;var t="touchstart"==typedoc.pointerDown?e.targetTouches[0]:e;typedoc.pointerDownPosition.y=t.pageY||0,typedoc.pointerDownPosition.x=t.pageX||0}),document.addEventListener(typedoc.pointerMove,function(e){if(typedoc.isPointerDown&&!typedoc.hasPointerMoved){var t="touchstart"==typedoc.pointerDown?e.targetTouches[0]:e,x=typedoc.pointerDownPosition.x-(t.pageX||0),y=typedoc.pointerDownPosition.y-(t.pageY||0);typedoc.hasPointerMoved=10scrollTop;)index-=1;for(;index"+match+""}),parent=row.parent||"";(parent=parent.replace(new RegExp(this.query,"i"),function(match){return""+match+""}))&&(name=''+parent+"."+name);var item=document.createElement("li");item.classList.value=row.classes,item.innerHTML='\n '+name+"'\n ",this.results.appendChild(item)}}},Search.prototype.setLoadingState=function(value){this.loadingState!=value&&(this.el.classList.remove(SearchLoadingState[this.loadingState].toLowerCase()),this.loadingState=value,this.el.classList.add(SearchLoadingState[this.loadingState].toLowerCase()),this.updateResults())},Search.prototype.setHasFocus=function(value){this.hasFocus!=value&&(this.hasFocus=value,this.el.classList.toggle("has-focus"),value?(this.setQuery(""),this.field.value=""):this.field.value=this.query)},Search.prototype.setQuery=function(value){this.query=value.trim(),this.updateResults()},Search.prototype.setCurrentResult=function(dir){var current=this.results.querySelector(".current");if(current){var rel=1==dir?current.nextElementSibling:current.previousElementSibling;rel&&(current.classList.remove("current"),rel.classList.add("current"))}else(current=this.results.querySelector(1==dir?"li:first-child":"li:last-child"))&¤t.classList.add("current")},Search.prototype.gotoCurrentResult=function(){var current=this.results.querySelector(".current");if(current||(current=this.results.querySelector("li:first-child")),current){var link=current.querySelector("a");link&&(window.location.href=link.href),this.field.blur()}},Search.prototype.bindEvents=function(){var _this=this;this.results.addEventListener("mousedown",function(){_this.resultClicked=!0}),this.results.addEventListener("mouseup",function(){_this.resultClicked=!1,_this.setHasFocus(!1)}),this.field.addEventListener("focusin",function(){_this.setHasFocus(!0),_this.loadIndex()}),this.field.addEventListener("focusout",function(){_this.resultClicked?_this.resultClicked=!1:setTimeout(function(){return _this.setHasFocus(!1)},100)}),this.field.addEventListener("input",function(){_this.setQuery(_this.field.value)}),this.field.addEventListener("keydown",function(e){13==e.keyCode||27==e.keyCode||38==e.keyCode||40==e.keyCode?(_this.preventPress=!0,e.preventDefault(),13==e.keyCode?_this.gotoCurrentResult():27==e.keyCode?_this.field.blur():38==e.keyCode?_this.setCurrentResult(-1):40==e.keyCode&&_this.setCurrentResult(1)):_this.preventPress=!1}),this.field.addEventListener("keypress",function(e){_this.preventPress&&e.preventDefault()}),document.body.addEventListener("keydown",function(e){e.altKey||e.ctrlKey||e.metaKey||!_this.hasFocus&&47this.groups.length-1&&(index=this.groups.length-1),this.index!=index){var to=this.groups[index];if(-1 + + + + + AstarGridGraph | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class AstarGridGraph

+
+
+
+
+
+
+
+
+
+

基本静态网格图与A*一起使用 + 将walls添加到walls HashSet,并将加权节点添加到weightedNodes

+
+
+
+
+

Hierarchy

+
    +
  • + AstarGridGraph +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new AstarGridGraph(width: number, height: number): AstarGridGraph
  • +
+ +
+
+
+

Properties

+
+ +

Private _height

+
_height: any
+ +
+
+ +

Private _neighbors

+
_neighbors: Vector2[] = new Array(4)
+ +
+
+ +

Private _width

+
_width: any
+ +
+
+ +

defaultWeight

+
defaultWeight: number = 1
+ +
+
+ +

dirs

+
dirs: Vector2[] = [new Vector2(1, 0),new Vector2(0, -1),new Vector2(-1, 0),new Vector2(0, 1)]
+ +
+
+ +

walls

+
walls: Vector2[] = []
+ +
+
+ +

weightedNodeWeight

+
weightedNodeWeight: number = 5
+ +
+
+ +

weightedNodes

+
weightedNodes: Vector2[] = []
+ +
+
+
+

Methods

+
+ +

cost

+ + +
+
+ +

getNeighbors

+ + +
+
+ +

heuristic

+ + +
+
+ +

isNodeInBounds

+
    +
  • isNodeInBounds(node: Vector2): boolean
  • +
+ +
+
+ +

isNodePassable

+
    +
  • isNodePassable(node: Vector2): boolean
  • +
+ +
+
+ +

search

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_astar_astarpathfinder_.es.astarnode.html b/source/docs/classes/_ai_pathfinding_astar_astarpathfinder_.es.astarnode.html new file mode 100644 index 00000000..fc883a28 --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_astar_astarpathfinder_.es.astarnode.html @@ -0,0 +1,292 @@ + + + + + + AStarNode | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class AStarNode<T>

+
+
+
+
+
+
+
+
+
+

使用PriorityQueue需要的额外字段将原始数据封装在一个小类中

+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

data

+
data: T
+ +
+
+ +

insertionIndex

+
insertionIndex: number = 0
+ +
+
+

由优先级队列使用-不要编辑此值。表示插入节点的顺序

+
+
+
+
+ +

priority

+
priority: number = 0
+ +
+
+

插入此节点的优先级。在将节点添加到队列之前必须设置

+
+
+
+
+ +

queueIndex

+
queueIndex: number = 0
+ +
+
+

由优先级队列使用-不要编辑此值。表示队列中的当前位置

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Inherited property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_astar_astarpathfinder_.es.astarpathfinder.html b/source/docs/classes/_ai_pathfinding_astar_astarpathfinder_.es.astarpathfinder.html new file mode 100644 index 00000000..b3557d2f --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_astar_astarpathfinder_.es.astarpathfinder.html @@ -0,0 +1,329 @@ + + + + + + AStarPathfinder | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class AStarPathfinder

+
+
+
+
+
+
+
+
+
+

计算路径给定的IAstarGraph和开始/目标位置

+
+
+
+
+

Hierarchy

+
    +
  • + AStarPathfinder +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static Private getKey

+
    +
  • getKey<T>(map: Map<T, T>, compareKey: T): any
  • +
+ +
+
+ +

Static Private hasKey

+
    +
  • hasKey<T>(map: Map<T, number>, compareKey: T): boolean
  • +
+ +
+
+ +

Static recontructPath

+
    +
  • recontructPath<T>(cameFrom: Map<T, T>, start: T, goal: T): T[]
  • +
+
    +
  • + +
    +
    +

    从cameFrom字典重新构造路径

    +
    +
    +

    Type parameters

    +
      +
    • +

      T

      +
    • +
    +

    Parameters

    +
      +
    • +
      cameFrom: Map<T, T>
      +
    • +
    • +
      start: T
      +
    • +
    • +
      goal: T
      +
      +
      +
    • +
    +

    Returns T[]

    +
  • +
+
+
+ +

Static search

+
    +
  • search<T>(graph: IAstarGraph<T>, start: T, goal: T): T[]
  • +
+
    +
  • + +
    +
    +

    尽可能从开始到目标找到一条路径。如果没有找到路径,则返回null。

    +
    +
    +

    Type parameters

    +
      +
    • +

      T

      +
    • +
    +

    Parameters

    +
      +
    • +
      graph: IAstarGraph<T>
      +
    • +
    • +
      start: T
      +
    • +
    • +
      goal: T
      +
      +
      +
    • +
    +

    Returns T[]

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_astar_priorityqueue_.es.priorityqueue.html b/source/docs/classes/_ai_pathfinding_astar_priorityqueue_.es.priorityqueue.html new file mode 100644 index 00000000..b310e855 --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_astar_priorityqueue_.es.priorityqueue.html @@ -0,0 +1,680 @@ + + + + + + PriorityQueue | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class PriorityQueue<T>

+
+
+
+
+
+
+
+
+
+

使用堆实现最小优先级队列 O(1)复杂度 + 这种查找速度比使用字典快5-10倍 + 但是,由于IPriorityQueue.contains()是许多寻路算法中调用最多的方法,因此尽可能快地实现它对于我们的应用程序非常重要。

+
+
+
+
+

Type parameters

+ +
+
+

Hierarchy

+
    +
  • + PriorityQueue +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private _nodes

+
_nodes: T[]
+ +
+
+ +

Private _numNodes

+
_numNodes: number
+ +
+
+ +

Private _numNodesEverEnqueued

+
_numNodesEverEnqueued: any
+ +
+
+
+

Accessors

+
+ +

count

+
    +
  • get count(): number
  • +
+ +
+
+ +

maxSize

+
    +
  • get maxSize(): number
  • +
+
    +
  • + +
    +
    +

    返回可同时进入此队列的最大项数。一旦你达到这个数字(即。一旦Count == MaxSize),尝试加入另一个项目将导致undefined的行为 + O(1)复杂度

    +
    +
    +

    Returns number

    +
  • +
+
+
+
+

Methods

+
+ +

Private cascadeDown

+
    +
  • cascadeDown(node: T): void
  • +
+ +
+
+ +

Private cascadeUp

+
    +
  • cascadeUp(node: T): void
  • +
+ +
+
+ +

clear

+
    +
  • clear(): void
  • +
+ +
+
+ +

contains

+
    +
  • contains(node: T): boolean
  • +
+ +
+
+ +

dequeue

+
    +
  • dequeue(): T
  • +
+
    +
  • + +
    +
    +

    删除队列头(具有最小优先级的节点;按插入顺序断开连接),并返回它。如果队列为空,结果undefined + O(log n)

    +
    +
    +

    Returns T

    +
  • +
+
+
+ +

enqueue

+
    +
  • enqueue(node: T, priority: number): void
  • +
+
    +
  • + +
    +
    +

    将节点放入优先队列 较低的值放在前面 先入先出 + 如果队列已满,则结果undefined。如果节点已经加入队列,则结果undefined。 + O(log n)

    +
    +
    +

    Parameters

    +
      +
    • +
      node: T
      +
    • +
    • +
      priority: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Private hasHigherPriority

+
    +
  • hasHigherPriority(higher: T, lower: T): boolean
  • +
+
    +
  • + +
    +
    +

    如果higher的优先级高于lower,则返回true,否则返回false。 + 注意,调用HasHigherPriority(节点,节点)(即。两个参数为同一个节点)将返回false

    +
    +
    +

    Parameters

    +
      +
    • +
      higher: T
      +
    • +
    • +
      lower: T
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

isValidQueue

+
    +
  • isValidQueue(): boolean
  • +
+ +
+
+ +

Private onNodeUpdated

+
    +
  • onNodeUpdated(node: T): void
  • +
+ +
+
+ +

remove

+
    +
  • remove(node: T): void
  • +
+
    +
  • + +
    +
    +

    从队列中删除一个节点。节点不需要是队列的头。如果节点不在队列中,则结果未定义。如果不确定,首先检查Contains() + O(log n)

    +
    +
    +

    Parameters

    +
      +
    • +
      node: T
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Private swap

+
    +
  • swap(node1: T, node2: T): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Private property
  • +
  • Private method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_astar_priorityqueuenode_.es.priorityqueuenode.html b/source/docs/classes/_ai_pathfinding_astar_priorityqueuenode_.es.priorityqueuenode.html new file mode 100644 index 00000000..8d1e55b9 --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_astar_priorityqueuenode_.es.priorityqueuenode.html @@ -0,0 +1,221 @@ + + + + + + PriorityQueueNode | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class PriorityQueueNode

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

insertionIndex

+
insertionIndex: number = 0
+ +
+
+

由优先级队列使用-不要编辑此值。表示插入节点的顺序

+
+
+
+
+ +

priority

+
priority: number = 0
+ +
+
+

插入此节点的优先级。在将节点添加到队列之前必须设置

+
+
+
+
+ +

queueIndex

+
queueIndex: number = 0
+ +
+
+

由优先级队列使用-不要编辑此值。表示队列中的当前位置

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_breadthfirst_breadthfirstpathfinder_.es.breadthfirstpathfinder.html b/source/docs/classes/_ai_pathfinding_breadthfirst_breadthfirstpathfinder_.es.breadthfirstpathfinder.html new file mode 100644 index 00000000..1baa2889 --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_breadthfirst_breadthfirstpathfinder_.es.breadthfirstpathfinder.html @@ -0,0 +1,237 @@ + + + + + + BreadthFirstPathfinder | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class BreadthFirstPathfinder

+
+
+
+
+
+
+
+
+
+

计算路径给定的IUnweightedGraph和开始/目标位置

+
+
+
+
+

Hierarchy

+
    +
  • + BreadthFirstPathfinder +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static Private hasKey

+
    +
  • hasKey<T>(map: Map<T, T>, compareKey: T): boolean
  • +
+ +
+
+ +

Static search

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_breadthfirst_unweightedgraph_.es.unweightedgraph.html b/source/docs/classes/_ai_pathfinding_breadthfirst_unweightedgraph_.es.unweightedgraph.html new file mode 100644 index 00000000..b018efd3 --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_breadthfirst_unweightedgraph_.es.unweightedgraph.html @@ -0,0 +1,259 @@ + + + + + + UnweightedGraph | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class UnweightedGraph<T>

+
+
+
+
+
+
+
+
+
+

一个未加权图的基本实现。所有的边都被缓存。这种类型的图最适合于非基于网格的图。 + 作为边添加的任何节点都必须在边字典中有一个条目作为键。

+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+
    +
  • + UnweightedGraph +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

edges

+
edges: Map<T, T[]> = new Map<T, T[]>()
+ +
+
+
+

Methods

+
+ +

addEdgesForNode

+
    +
  • addEdgesForNode(node: T, edges: T[]): this
  • +
+ +
+
+ +

getNeighbors

+
    +
  • getNeighbors(node: T): T[]
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_breadthfirst_unweightedgridgraph_.es.unweightedgridgraph.html b/source/docs/classes/_ai_pathfinding_breadthfirst_unweightedgridgraph_.es.unweightedgridgraph.html new file mode 100644 index 00000000..625e67a3 --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_breadthfirst_unweightedgridgraph_.es.unweightedgridgraph.html @@ -0,0 +1,432 @@ + + + + + + UnweightedGridGraph | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class UnweightedGridGraph

+
+
+
+
+
+
+
+
+
+

基本的未加权网格图形用于BreadthFirstPathfinder

+
+
+
+
+

Hierarchy

+
    +
  • + UnweightedGridGraph +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new UnweightedGridGraph(width: number, height: number, allowDiagonalSearch?: boolean): UnweightedGridGraph
  • +
+ +
+
+
+

Properties

+
+ +

Private _dirs

+
_dirs: Vector2[]
+ +
+
+ +

Private _hegiht

+
_hegiht: number
+ +
+
+ +

Private _neighbors

+
_neighbors: Vector2[] = new Array(4)
+ +
+
+ +

Private _width

+
_width: number
+ +
+
+ +

walls

+
walls: Vector2[] = []
+ +
+
+ +

Static Private Readonly CARDINAL_DIRS

+
CARDINAL_DIRS: Vector2[] = [new Vector2(1, 0),new Vector2(0, -1),new Vector2(-1, 0),new Vector2(0, -1)]
+ +
+
+ +

Static Private Readonly COMPASS_DIRS

+
COMPASS_DIRS: Vector2[] = [new Vector2(1, 0),new Vector2(1, -1),new Vector2(0, -1),new Vector2(-1, -1),new Vector2(-1, 0),new Vector2(-1, 1),new Vector2(0, 1),new Vector2(1, 1),]
+ +
+
+
+

Methods

+
+ +

getNeighbors

+ + +
+
+ +

isNodeInBounds

+
    +
  • isNodeInBounds(node: Vector2): boolean
  • +
+ +
+
+ +

isNodePassable

+
    +
  • isNodePassable(node: Vector2): boolean
  • +
+ +
+
+ +

search

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html b/source/docs/classes/_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html new file mode 100644 index 00000000..8bb8e4fa --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html @@ -0,0 +1,507 @@ + + + + + + WeightedGridGraph | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class WeightedGridGraph

+
+
+
+
+
+
+
+
+
+

支持一种加权节点的基本网格图

+
+
+
+
+

Hierarchy

+
    +
  • + WeightedGridGraph +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new WeightedGridGraph(width: number, height: number, allowDiagonalSearch?: boolean): WeightedGridGraph
  • +
+ +
+
+
+

Properties

+
+ +

Private _dirs

+
_dirs: Vector2[]
+ +
+
+ +

Private _height

+
_height: number
+ +
+
+ +

Private _neighbors

+
_neighbors: Vector2[] = new Array(4)
+ +
+
+ +

Private _width

+
_width: number
+ +
+
+ +

defaultWeight

+
defaultWeight: number = 1
+ +
+
+ +

walls

+
walls: Vector2[] = []
+ +
+
+ +

weightedNodeWeight

+
weightedNodeWeight: number = 5
+ +
+
+ +

weightedNodes

+
weightedNodes: Vector2[] = []
+ +
+
+ +

Static Readonly CARDINAL_DIRS

+
CARDINAL_DIRS: Vector2[] = [new Vector2(1, 0),new Vector2(0, -1),new Vector2(-1, 0),new Vector2(0, 1)]
+ +
+
+ +

Static Private Readonly COMPASS_DIRS

+
COMPASS_DIRS: Vector2[] = [new Vector2(1, 0),new Vector2(1, -1),new Vector2(0, -1),new Vector2(-1, -1),new Vector2(-1, 0),new Vector2(-1, 1),new Vector2(0, 1),new Vector2(1, 1),]
+ +
+
+
+

Methods

+
+ +

cost

+ + +
+
+ +

getNeighbors

+ + +
+
+ +

isNodeInBounds

+
    +
  • isNodeInBounds(node: Vector2): boolean
  • +
+ +
+
+ +

isNodePassable

+
    +
  • isNodePassable(node: Vector2): boolean
  • +
+ +
+
+ +

search

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_dijkstra_weightedpathfinder_.es.weightednode.html b/source/docs/classes/_ai_pathfinding_dijkstra_weightedpathfinder_.es.weightednode.html new file mode 100644 index 00000000..c788cefc --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_dijkstra_weightedpathfinder_.es.weightednode.html @@ -0,0 +1,285 @@ + + + + + + WeightedNode | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class WeightedNode<T>

+
+
+
+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

data

+
data: T
+ +
+
+ +

insertionIndex

+
insertionIndex: number = 0
+ +
+
+

由优先级队列使用-不要编辑此值。表示插入节点的顺序

+
+
+
+
+ +

priority

+
priority: number = 0
+ +
+
+

插入此节点的优先级。在将节点添加到队列之前必须设置

+
+
+
+
+ +

queueIndex

+
queueIndex: number = 0
+ +
+
+

由优先级队列使用-不要编辑此值。表示队列中的当前位置

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Inherited property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_dijkstra_weightedpathfinder_.es.weightedpathfinder.html b/source/docs/classes/_ai_pathfinding_dijkstra_weightedpathfinder_.es.weightedpathfinder.html new file mode 100644 index 00000000..eb2c711e --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_dijkstra_weightedpathfinder_.es.weightedpathfinder.html @@ -0,0 +1,308 @@ + + + + + + WeightedPathfinder | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class WeightedPathfinder

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + WeightedPathfinder +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static Private getKey

+
    +
  • getKey<T>(map: Map<T, T>, compareKey: T): any
  • +
+ +
+
+ +

Static Private hasKey

+
    +
  • hasKey<T>(map: Map<T, number>, compareKey: T): boolean
  • +
+ +
+
+ +

Static recontructPath

+
    +
  • recontructPath<T>(cameFrom: Map<T, T>, start: T, goal: T): T[]
  • +
+ +
+
+ +

Static search

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_goap_action_.es.action.html b/source/docs/classes/_ai_pathfinding_goap_action_.es.action.html new file mode 100644 index 00000000..f4cd5ad3 --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_goap_action_.es.action.html @@ -0,0 +1,378 @@ + + + + + + Action | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Action

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Action +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Action(name?: string, cost?: number): Action
  • +
+ +
+
+
+

Properties

+
+ +

_postConditions

+
_postConditions: Set<[string, boolean]> = new Set<[string, boolean]>()
+ +
+
+ +

_preConditions

+
_preConditions: Set<[string, boolean]> = new Set<[string, boolean]>()
+ +
+
+ +

cost

+
cost: number = 1
+ +
+
+

执行动作的成本。 改变它将会影响到计划期间的行动/选择。

+
+
+
+
+ +

name

+
name: string
+ +
+
+

Action的可选名称。用于调试目的

+
+
+
+
+
+

Methods

+
+ +

setPostcondition

+
    +
  • setPostcondition(conditionName: string, value: boolean): void
  • +
+ +
+
+ +

setPrecondition

+
    +
  • setPrecondition(conditionName: string, value: boolean): void
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

validate

+
    +
  • validate(): boolean
  • +
+
    +
  • + +
    +
    +

    在ActionPlanner进行plan之前调用。让Action有机会设置它的分数,或者在没有用的情况下选择退出。 + 例如,如果Action是要拿起一把枪,但世界上没有枪,返回false将使Action不被ActionPlanner考虑

    +
    +
    +

    Returns boolean

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_goap_actionplanner_.es.actionplanner.html b/source/docs/classes/_ai_pathfinding_goap_actionplanner_.es.actionplanner.html new file mode 100644 index 00000000..c9c577b9 --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_goap_actionplanner_.es.actionplanner.html @@ -0,0 +1,516 @@ + + + + + + ActionPlanner | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ActionPlanner

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + ActionPlanner +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

_actions

+
_actions: Action[] = []
+ +
+
+ +

_numConditionNames

+
_numConditionNames: number
+ +
+
+

世界状态原子的数量

+
+
+
+
+ +

_postConditions

+
_postConditions: WorldState[] = new Array(ActionPlanner.MAX_CONDITIONS)
+ +
+
+

所有行动的后置条件(行动效果)

+
+
+
+
+ +

_preConditions

+
_preConditions: WorldState[] = new Array(ActionPlanner.MAX_CONDITIONS)
+ +
+
+

所有行动的前提条件

+
+
+
+
+ +

_viableActions

+
_viableActions: Action[] = []
+ +
+
+ +

conditionNames

+
conditionNames: string[] = new Array(ActionPlanner.MAX_CONDITIONS)
+ +
+
+

与所有世界状态原子相关的名称

+
+
+
+
+ +

Static Readonly MAX_CONDITIONS

+
MAX_CONDITIONS: number = 64
+ +
+
+
+

Methods

+
+ +

addAction

+
    +
  • addAction(action: Action): void
  • +
+ +
+
+ +

applyPostConditions

+ + +
+
+ +

createWorldState

+ + +
+
+ +

findActionIndex

+
    +
  • findActionIndex(action: Action): number
  • +
+ +
+
+ +

findConditionNameIndex

+
    +
  • findConditionNameIndex(conditionName: string): any
  • +
+ +
+
+ +

getPossibleTransitions

+ + +
+
+ +

plan

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_goap_agent_.es.agent.html b/source/docs/classes/_ai_pathfinding_goap_agent_.es.agent.html new file mode 100644 index 00000000..60f88f2e --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_goap_agent_.es.agent.html @@ -0,0 +1,321 @@ + + + + + + Agent | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Agent

+
+
+
+
+
+
+
+
+
+

Agent提供了一个简单明了的方式来使用计划书。 + 它根本不需要使用,因为它只是ActionPlanner的一个方便的封装器,使其更容易获得计划和存储结果。

+
+
+
+
+

Hierarchy

+
    +
  • + Agent +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

_planner

+
_planner: ActionPlanner
+ +
+
+ +

actions

+
actions: Action[]
+ +
+
+
+

Methods

+
+ +

Abstract getGoalState

+ + +
+
+ +

Abstract getWorldState

+ + +
+
+ +

hasActionPlan

+
    +
  • hasActionPlan(): boolean
  • +
+ +
+
+ +

plan

+
    +
  • plan(debugPlan?: boolean): boolean
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_goap_astar_.es.astar.html b/source/docs/classes/_ai_pathfinding_goap_astar_.es.astar.html new file mode 100644 index 00000000..6b65b45a --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_goap_astar_.es.astar.html @@ -0,0 +1,298 @@ + + + + + + AStar | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class AStar

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + AStar +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Static storage

+
storage: AStarStorage = new AStarStorage()
+ +
+
+
+

Methods

+
+ +

Static calculateHeuristic

+ + +
+
+ +

Static plan

+ + +
+
+ +

Static reconstructPlan

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Static property
  • +
  • Static method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_goap_astar_.es.astarnode.html b/source/docs/classes/_ai_pathfinding_goap_astar_.es.astarnode.html new file mode 100644 index 00000000..5291aa7a --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_goap_astar_.es.astarnode.html @@ -0,0 +1,439 @@ + + + + + + AStarNode | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class AStarNode

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + AStarNode +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

action

+
action: Action
+ +
+
+

与此节点相关的动作

+
+
+
+
+ +

costSoFar

+
costSoFar: number
+ +
+
+

到目前为止的花费

+
+
+
+
+ +

costSoFarAndHeuristicCost

+
costSoFarAndHeuristicCost: number
+ +
+
+

costSoFar+heuristicCost(g+h)组合

+
+
+
+
+ +

depth

+
depth: number
+ +
+
+ +

heuristicCost

+
heuristicCost: number
+ +
+
+

剩余成本的启发式(不要高估!)

+
+
+
+
+ +

parent

+
parent: AStarNode
+ +
+
+

父节点

+
+
+
+
+ +

parentWorldState

+
parentWorldState: WorldState
+ +
+
+ +

worldState

+
worldState: WorldState
+ +
+
+

这个节点的世界状态

+
+
+
+
+
+

Methods

+
+ +

clone

+ + +
+
+ +

compareTo

+ + +
+
+ +

equals

+ + +
+
+ +

reset

+
    +
  • reset(): void
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_goap_astarstorage_.es.astarstorage.html b/source/docs/classes/_ai_pathfinding_goap_astarstorage_.es.astarstorage.html new file mode 100644 index 00000000..970fbf33 --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_goap_astarstorage_.es.astarstorage.html @@ -0,0 +1,580 @@ + + + + + + AStarStorage | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class AStarStorage

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + AStarStorage +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

_closed

+
_closed: AStarNode[] = new Array(AStarStorage.MAX_NODES)
+ +
+
+ +

_lastFoundClosed

+
_lastFoundClosed: number
+ +
+
+ +

_lastFoundOpened

+
_lastFoundOpened: number
+ +
+
+ +

_numClosed

+
_numClosed: number
+ +
+
+ +

_numOpened

+
_numOpened: number
+ +
+
+ +

_opened

+
_opened: AStarNode[] = new Array(AStarStorage.MAX_NODES)
+ +
+
+ +

Static Readonly MAX_NODES

+
MAX_NODES: 128 = 128
+ +
+
+

我们可以存储的最大节点数

+
+
+
+
+
+

Methods

+
+ +

addToClosedList

+ + +
+
+ +

addToOpenList

+ + +
+
+ +

clear

+
    +
  • clear(): void
  • +
+ +
+
+ +

findClosed

+ + +
+
+ +

findOpened

+ + +
+
+ +

hasOpened

+
    +
  • hasOpened(): boolean
  • +
+ +
+
+ +

isClosed

+ + +
+
+ +

isOpen

+ + +
+
+ +

removeCheapestOpenNode

+ + +
+
+ +

removeClosed

+ + +
+
+ +

removeOpened

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ai_pathfinding_goap_worldstate_.es.worldstate.html b/source/docs/classes/_ai_pathfinding_goap_worldstate_.es.worldstate.html new file mode 100644 index 00000000..1eace9c3 --- /dev/null +++ b/source/docs/classes/_ai_pathfinding_goap_worldstate_.es.worldstate.html @@ -0,0 +1,406 @@ + + + + + + WorldState | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class WorldState

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + WorldState +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

dontCare

+
dontCare: number
+ +
+
+

比特掩码用于明确表示false。 + 我们需要一个单独的负值存储空间,因为一个值的缺失并不一定意味着它是假的

+
+
+
+
+ +

planner

+
planner: ActionPlanner
+ +
+
+

是必需的,这样我们就可以从字符串名称中获取条件索引

+
+
+
+
+ +

values

+
values: number
+ +
+
+

我们使用条件索引上的位掩码移位来翻转位。

+
+
+
+
+
+

Methods

+
+ +

describe

+ + +
+
+ +

equals

+ + +
+
+ +

set

+
    +
  • set(conditionId: number | string, value: boolean): boolean
  • +
+ +
+
+ +

Static create

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_debug_debug_.es.colors.html b/source/docs/classes/_debug_debug_.es.colors.html new file mode 100644 index 00000000..d82d27ba --- /dev/null +++ b/source/docs/classes/_debug_debug_.es.colors.html @@ -0,0 +1,248 @@ + + + + + + Colors | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Colors

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Colors +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

Static colliderBounds

+
colliderBounds: number = 5592405
+ +
+
+ +

Static colliderCenter

+
colliderCenter: number = 16711680
+ +
+
+ +

Static colliderEdge

+
colliderEdge: number = 9109504
+ +
+
+ +

Static colliderPosition

+
colliderPosition: number = 16776960
+ +
+
+ +

Static renderableBounds

+
renderableBounds: number = 16776960
+ +
+
+ +

Static renderableCenter

+
renderableCenter: number = 10040012
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_debug_debug_.es.debug.html b/source/docs/classes/_debug_debug_.es.debug.html new file mode 100644 index 00000000..25ad4e4a --- /dev/null +++ b/source/docs/classes/_debug_debug_.es.debug.html @@ -0,0 +1,240 @@ + + + + + + Debug | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Debug

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Debug +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Static Private _debugDrawItems

+
_debugDrawItems: DebugDrawItem[] = []
+ +
+
+
+

Methods

+
+ +

Static drawHollowRect

+
    +
  • drawHollowRect(rectanle: Rectangle, color: number, duration?: number): void
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      rectanle: Rectangle
      +
    • +
    • +
      color: number
      +
    • +
    • +
      Default value duration: number = 0
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static render

+
    +
  • render(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_debug_debug_.es.size.html b/source/docs/classes/_debug_debug_.es.size.html new file mode 100644 index 00000000..a0815004 --- /dev/null +++ b/source/docs/classes/_debug_debug_.es.size.html @@ -0,0 +1,182 @@ + + + + + + Size | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Size

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Size +
  • +
+
+
+

Index

+
+
+
+

Accessors

+ +
+
+
+
+
+

Accessors

+
+ +

Static lineSizeMultiplier

+
    +
  • get lineSizeMultiplier(): number
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_debug_debugdefaults_.es.debugdefaults.html b/source/docs/classes/_debug_debugdefaults_.es.debugdefaults.html new file mode 100644 index 00000000..2f41cf59 --- /dev/null +++ b/source/docs/classes/_debug_debugdefaults_.es.debugdefaults.html @@ -0,0 +1,186 @@ + + + + + + DebugDefaults | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class DebugDefaults

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + DebugDefaults +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

Static verletConstraintEdge

+
verletConstraintEdge: number = 4406838
+ +
+
+ +

Static verletParticle

+
verletParticle: number = 14431326
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_debug_debugdrawitem_.es.debugdrawitem.html b/source/docs/classes/_debug_debugdrawitem_.es.debugdrawitem.html new file mode 100644 index 00000000..a014b001 --- /dev/null +++ b/source/docs/classes/_debug_debugdrawitem_.es.debugdrawitem.html @@ -0,0 +1,377 @@ + + + + + + DebugDrawItem | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class DebugDrawItem

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + DebugDrawItem +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

color

+
color: number
+ +
+
+ +

drawType

+
drawType: DebugDrawType
+ +
+
+ +

duration

+
duration: number
+ +
+
+ +

end

+
end: Vector2
+ +
+
+ +

rectangle

+
rectangle: Rectangle
+ +
+
+ +

size

+
size: number
+ +
+
+ +

start

+
start: Vector2
+ +
+
+ +

text

+
text: string
+ +
+
+ +

x

+
x: number
+ +
+
+ +

y

+
y: number
+ +
+
+
+

Methods

+
+ +

draw

+
    +
  • draw(shape: Shape): boolean
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_component_.es.component.html b/source/docs/classes/_ecs_component_.es.component.html new file mode 100644 index 00000000..6045aef9 --- /dev/null +++ b/source/docs/classes/_ecs_component_.es.component.html @@ -0,0 +1,801 @@ + + + + + + Component | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Component

+
+
+
+
+
+
+
+
+
+

执行顺序

+
    +
  • onAddedToEntity
  • +
  • OnEnabled
  • +
+
+

删除执行顺序 + - onRemovedFromEntity

+
+
+
+

Hierarchy

+ +
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Private _enabled

+
_enabled: boolean = true
+ +
+
+ +

Private _updateOrder

+
_updateOrder: number = 0
+ +
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+
    +
  • + +
    +
    +

    更新此实体上组件的顺序

    +
    +
    +

    Returns number

    +
  • +
  • + +
    +
    +

    更新此实体上组件的顺序

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+

Methods

+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+
    +
  • + +
    +
    +

    在提交所有挂起的组件更改后,将该组件添加到场景时调用。此时,设置了实体字段和实体。场景也设定好了。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+
    +
  • + +
    +
    +

    当父实体或此组件启用时调用

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+
    +
  • + +
    +
    +

    当实体的位置改变时调用。这允许组件知道它们由于父实体的移动而移动了。

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+
    +
  • + +
    +
    +

    当此组件从其实体中移除时调用。在这里做所有的清理工作。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_camera_.es.camera.html b/source/docs/classes/_ecs_components_camera_.es.camera.html new file mode 100644 index 00000000..325e64e4 --- /dev/null +++ b/source/docs/classes/_ecs_components_camera_.es.camera.html @@ -0,0 +1,1781 @@ + + + + + + Camera | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Camera

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

_areBoundsDirty

+
_areBoundsDirty: boolean = true
+ +
+
+ +

_areMatrixedDirty

+
_areMatrixedDirty: boolean = true
+ +
+
+ +

_bounds

+
_bounds: Rectangle = new Rectangle()
+ +
+
+ +

_inverseTransformMatrix

+
_inverseTransformMatrix: Matrix2D = new Matrix2D().identity()
+ +
+
+ +

_isProjectionMatrixDirty

+
_isProjectionMatrixDirty: boolean = true
+ +
+
+ +

_maximumZoom

+
_maximumZoom: number = 3
+ +
+
+ +

_minimumZoom

+
_minimumZoom: number = 0.3
+ +
+
+ +

_origin

+
_origin: Vector2 = Vector2.zero
+ +
+
+ +

_transformMatrix

+
_transformMatrix: Matrix2D = new Matrix2D().identity()
+ +
+
+ +

_zoom

+
_zoom: number = 0
+ +
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

inverseTransformMatrix

+
    +
  • get inverseTransformMatrix(): Matrix2D
  • +
+ +
+
+ +

maximumZoom

+
    +
  • get maximumZoom(): number
  • +
  • set maximumZoom(value: number): void
  • +
+
    +
  • + +
    +
    +

    相机变焦可以达到的最大非缩放值(0-number.max)。默认为3

    +
    +
    +

    Returns number

    +
  • +
  • + +
    +
    +

    相机变焦可以达到的最大非缩放值(0-number.max)。默认为3

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

minimumZoom

+
    +
  • get minimumZoom(): number
  • +
  • set minimumZoom(value: number): void
  • +
+
    +
  • + +
    +
    +

    相机变焦可以达到的最小非缩放值(0-number.max)。默认为0.3

    +
    +
    +

    Returns number

    +
  • +
  • + +
    +
    +

    相机变焦可以达到的最小非缩放值(0-number.max)。默认为0.3

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

origin

+ + +
+
+ +

position

+ + +
+
+ +

rawZoom

+
    +
  • get rawZoom(): number
  • +
  • set rawZoom(value: number): void
  • +
+
    +
  • + +
    +
    +

    原始的缩放值。这就是用于比例矩阵的精确值。默认值为1。

    +
    +
    +

    Returns number

    +
  • +
  • + +
    +
    +

    原始的缩放值。这就是用于比例矩阵的精确值。默认值为1。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

rotation

+
    +
  • get rotation(): number
  • +
  • set rotation(value: number): void
  • +
+ +
+
+ +

transform

+ + +
+
+ +

transformMatrix

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+ +

zoom

+
    +
  • get zoom(): number
  • +
  • set zoom(value: number): void
  • +
+
    +
  • + +
    +
    +

    缩放值应该在-1和1之间、然后将该值从minimumZoom转换为maximumZoom。 + 允许你设置适当的最小/最大值,然后使用更直观的-1到1的映射来更改缩放

    +
    +
    +

    Returns number

    +
  • +
  • + +
    +
    +

    缩放值应该在-1和1之间、然后将该值从minimumZoom转换为maximumZoom。 + 允许你设置适当的最小/最大值,然后使用更直观的-1到1的映射来更改缩放

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+

Methods

+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

forceMatrixUpdate

+
    +
  • forceMatrixUpdate(): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

mouseToWorldPoint

+ + +
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+
    +
  • + +
    +
    +

    在提交所有挂起的组件更改后,将该组件添加到场景时调用。此时,设置了实体字段和实体。场景也设定好了。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

onSceneRenderTargetSizeChanged

+
    +
  • onSceneRenderTargetSizeChanged(newWidth: number, newHeight: number): void
  • +
+
    +
  • + +
    +
    +

    当场景渲染目标的大小发生变化时,我们会更新相机的原点并调整它的位置以保持它原来的位置

    +
    +
    +

    Parameters

    +
      +
    • +
      newWidth: number
      +
    • +
    • +
      newHeight: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

screenToWorldPoint

+ + +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setInset

+
    +
  • setInset(left: number, right: number, top: number, bottom: number): Camera
  • +
+
    +
  • + +
    +
    +

    设置用于从视口边缘插入摄像机边界的量

    +
    +
    +

    Parameters

    +
      +
    • +
      left: number
      +
    • +
    • +
      right: number
      +
    • +
    • +
      top: number
      +
    • +
    • +
      bottom: number
      +
      +
      +
    • +
    +

    Returns Camera

    +
  • +
+
+
+ +

setMaximumZoom

+
    +
  • setMaximumZoom(maxZoom: number): Camera
  • +
+
    +
  • + +
    +
    +

    相机变焦可以达到的最大非缩放值(0-number.max) 默认为3

    +
    +
    +

    Parameters

    +
      +
    • +
      maxZoom: number
      +
      +
      +
    • +
    +

    Returns Camera

    +
  • +
+
+
+ +

setMinimumZoom

+
    +
  • setMinimumZoom(minZoom: number): Camera
  • +
+
    +
  • + +
    +
    +

    相机变焦可以达到的最小非缩放值(0-number.max) 默认为0.3

    +
    +
    +

    Parameters

    +
      +
    • +
      minZoom: number
      +
      +
      +
    • +
    +

    Returns Camera

    +
  • +
+
+
+ +

setPosition

+
    +
  • setPosition(position: Vector2): this
  • +
+ +
+
+ +

setRotation

+
    +
  • setRotation(rotation: number): Camera
  • +
+ +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

setZoom

+
    +
  • setZoom(zoom: number): Camera
  • +
+
    +
  • + +
    +
    +

    设置缩放值,缩放值应该在-1到1之间。然后将该值从minimumZoom转换为maximumZoom + 允许您设置适当的最小/最大值。使用更直观的-1到1的映射来更改缩放

    +
    +
    +

    Parameters

    +
      +
    • +
      zoom: number
      +
      +
      +
    • +
    +

    Returns Camera

    +
  • +
+
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+ +

Protected updateMatrixes

+
    +
  • updateMatrixes(): void
  • +
+ +
+
+ +

worldToScreenPoint

+ + +
+
+ +

zoomIn

+
    +
  • zoomIn(deltaZoom: number): void
  • +
+ +
+
+ +

zoomOut

+
    +
  • zoomOut(deltaZoom: number): void
  • +
+ +
+
+
+

Object literals

+
+ +

_inset

+
_inset: object
+ +
+ +

bottom

+
bottom: number = 0
+ +
+
+ +

left

+
left: number = 0
+ +
+
+ +

right

+
right: number = 0
+ +
+
+ +

top

+
top: number = 0
+ +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_camerashake_.es.camerashake.html b/source/docs/classes/_ecs_components_camerashake_.es.camerashake.html new file mode 100644 index 00000000..c23fa6d8 --- /dev/null +++ b/source/docs/classes/_ecs_components_camerashake_.es.camerashake.html @@ -0,0 +1,849 @@ + + + + + + CameraShake | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class CameraShake

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

_shakeDegredation

+
_shakeDegredation: number = 0.95
+ +
+
+ +

_shakeDirection

+
_shakeDirection: Vector2 = Vector2.zero
+ +
+
+ +

_shakeIntensity

+
_shakeIntensity: number = 0
+ +
+
+ +

_shakeOffset

+
_shakeOffset: Vector2 = Vector2.zero
+ +
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+
    +
  • + +
    +
    +

    在提交所有挂起的组件更改后,将该组件添加到场景时调用。此时,设置了实体字段和实体。场景也设定好了。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

shake

+
    +
  • shake(shakeIntensify?: number, shakeDegredation?: number, shakeDirection?: Vector2): void
  • +
+
    +
  • + +
    +
    +

    如果震动已经在运行,只有震动强度>当前shakeIntensity, 将覆盖当前值 + 如果shake当前不是活动的,它将被启动。

    +
    +
    +

    Parameters

    +
      +
    • +
      Default value shakeIntensify: number = 15
      +
      +

      震动强度

      +
      +
    • +
    • +
      Default value shakeDegredation: number = 0.9
      +
      +

      较高的值会导致更快的停止震动

      +
      +
    • +
    • +
      Default value shakeDirection: Vector2 = Vector2.zero
      +
      +

      0只会导致x/y轴上的振动。任何其他的值将导致通过在抖动方向*强度是相机移动偏移

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_componentpool_.es.componentpool.html b/source/docs/classes/_ecs_components_componentpool_.es.componentpool.html new file mode 100644 index 00000000..3bd52d8a --- /dev/null +++ b/source/docs/classes/_ecs_components_componentpool_.es.componentpool.html @@ -0,0 +1,287 @@ + + + + + + ComponentPool | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ComponentPool<T>

+
+
+
+
+
+
+
+

Type parameters

+ +
+
+

Hierarchy

+
    +
  • + ComponentPool +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private _cache

+
_cache: T[]
+ +
+
+ +

Private _type

+
_type: any
+ +
+
+
+

Methods

+
+ +

free

+
    +
  • free(component: T): void
  • +
+ +
+
+ +

obtain

+
    +
  • obtain(): T
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_followcamera_.es.followcamera.html b/source/docs/classes/_ecs_components_followcamera_.es.followcamera.html new file mode 100644 index 00000000..238385c1 --- /dev/null +++ b/source/docs/classes/_ecs_components_followcamera_.es.followcamera.html @@ -0,0 +1,1080 @@ + + + + + + FollowCamera | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class FollowCamera

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

_cameraStyle

+
_cameraStyle: CameraStyle
+ +
+
+ +

_desiredPositionDelta

+
_desiredPositionDelta: Vector2 = new Vector2()
+ +
+
+ +

_targetCollider

+
_targetCollider: Collider
+ +
+
+ +

_targetEntity

+
_targetEntity: Entity
+ +
+
+ +

_worldSpaceDeadZone

+
_worldSpaceDeadZone: Rectangle = new Rectangle()
+ +
+
+ +

camera

+
camera: Camera
+ +
+
+ +

deadzone

+
deadzone: Rectangle = new Rectangle()
+ +
+
+

在cameraWindow模式下,宽度/高度被用做边界框,允许在不移动相机的情况下移动 + 在lockOn模式下,只使用deadZone的x/y值 你可以通过直接setCenteredDeadzone重写它来自定义deadZone

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

focusOffset

+
focusOffset: Vector2 = Vector2.zero
+ +
+
+

相机聚焦于屏幕中心的偏移

+
+
+
+
+ +

followLerp

+
followLerp: number = 0.1
+ +
+
+

如果相机模式为cameraWindow 则会进行缓动移动 + 该值为移动速度

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

mapLockEnabled

+
mapLockEnabled: boolean = false
+ +
+
+

如果为true 相机位置则不会超出地图矩形(0, 0, mapwidth, mapheight)

+
+
+
+
+ +

mapSize

+
mapSize: Rectangle = new Rectangle()
+ +
+
+

當前地圖映射的寬度和高度

+
+
+
+
+ +

Private rectShape

+
rectShape: Shape = new egret.Shape()
+ +
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

clampToMapSize

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

follow

+ + +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onGraphicsDeviceReset

+
    +
  • onGraphicsDeviceReset(): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

setCenteredDeadzone

+
    +
  • setCenteredDeadzone(width: number, height: number): void
  • +
+
    +
  • + +
    +
    +

    以给定的尺寸设置当前相机边界中心的死区

    +
    +
    +

    Parameters

    +
      +
    • +
      width: number
      +
    • +
    • +
      height: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+ +

updateFollow

+
    +
  • updateFollow(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_iupdatable_.es.iupdatablecomparer.html b/source/docs/classes/_ecs_components_iupdatable_.es.iupdatablecomparer.html new file mode 100644 index 00000000..8f8d41ea --- /dev/null +++ b/source/docs/classes/_ecs_components_iupdatable_.es.iupdatablecomparer.html @@ -0,0 +1,202 @@ + + + + + + IUpdatableComparer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class IUpdatableComparer

+
+
+
+
+
+
+
+
+
+

用于比较组件更新排序

+
+
+
+
+

Hierarchy

+
    +
  • + IUpdatableComparer +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

compare

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_physics_colliders_boxcollider_.es.boxcollider.html b/source/docs/classes/_ecs_components_physics_colliders_boxcollider_.es.boxcollider.html new file mode 100644 index 00000000..d07d4bad --- /dev/null +++ b/source/docs/classes/_ecs_components_physics_colliders_boxcollider_.es.boxcollider.html @@ -0,0 +1,1553 @@ + + + + + + BoxCollider | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class BoxCollider

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Collider +
      +
    • + BoxCollider +
    • +
    +
  • +
+
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new BoxCollider(x?: number, y?: number, width?: number, height?: number): BoxCollider
  • +
+ +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Protected _colliderRequiresAutoSizing

+
_colliderRequiresAutoSizing: any
+ +
+
+ +

Protected _isColliderRegistered

+
_isColliderRegistered: any
+ +
+
+

标记来记录我们是否注册了物理系统

+
+
+
+
+ +

Protected _isParentEntityAddedToScene

+
_isParentEntityAddedToScene: any
+ +
+
+

标记来跟踪我们的实体是否被添加到场景中

+
+
+
+
+ +

_isPositionDirty

+
_isPositionDirty: boolean = true
+ +
+
+ +

_isRotationDirty

+
_isRotationDirty: boolean = true
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

_localOffsetLength

+
_localOffsetLength: number
+ +
+
+ +

collidesWithLayers

+
collidesWithLayers: Ref<number> = new Ref(Physics.allLayers)
+ +
+
+

碰撞器在使用移动器移动时应该碰撞的层 + 默认为所有层

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

hollowShape

+
hollowShape: Shape = new egret.Shape()
+ +
+
+ +

isTrigger

+
isTrigger: boolean
+ +
+
+

如果这个碰撞器是一个触发器,它将不会引起碰撞,但它仍然会触发事件

+
+
+
+
+ +

physicsLayer

+
physicsLayer: Ref<number> = new Ref(1 << 0)
+ +
+
+

在处理冲突时,physicsLayer可以用作过滤器。Flags类有帮助位掩码的方法

+
+
+
+
+ +

pixelShape1

+
pixelShape1: Shape = new egret.Shape()
+ +
+
+ +

pixelShape2

+
pixelShape2: Shape = new egret.Shape()
+ +
+
+ +

polygonShape

+
polygonShape: Shape = new egret.Shape()
+ +
+
+ +

registeredPhysicsBounds

+
registeredPhysicsBounds: Rectangle = new Rectangle()
+ +
+
+

这个对撞机在物理系统注册时的边界。 + 存储这个允许我们始终能够安全地从物理系统中移除对撞机,即使它在试图移除它之前已经被移动了。

+
+
+
+
+ +

shape

+
shape: Shape
+ +
+
+

对撞机的基本形状

+
+
+
+
+ +

shouldColliderScaleAndRotateWithTransform

+
shouldColliderScaleAndRotateWithTransform: boolean = true
+ +
+
+

如果为true,碰撞器将根据附加的变换缩放和旋转

+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

absolutePosition

+
    +
  • get absolutePosition(): Vector2
  • +
+ +
+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

height

+
    +
  • get height(): number
  • +
  • set height(value: number): void
  • +
+ +
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+ +
+
+ +

rotation

+
    +
  • get rotation(): number
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+ +

width

+
    +
  • get width(): number
  • +
  • set width(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

collidesWith

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

overlaps

+
    +
  • overlaps(other: Collider): boolean
  • +
+ +
+
+ +

registerColliderWithPhysicsSystem

+
    +
  • registerColliderWithPhysicsSystem(): void
  • +
+ +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setHeight

+
    +
  • setHeight(height: number): void
  • +
+ +
+
+ +

setLocalOffset

+ + +
+
+ +

setShouldColliderScaleAndRotateWithTransform

+
    +
  • setShouldColliderScaleAndRotateWithTransform(shouldColliderScaleAndRotationWithTransform: boolean): Collider
  • +
+ +
+
+ +

setSize

+
    +
  • setSize(width: number, height: number): this
  • +
+ +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

setWidth

+ + +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

unregisterColliderWithPhysicsSystem

+
    +
  • unregisterColliderWithPhysicsSystem(): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_physics_colliders_circlecollider_.es.circlecollider.html b/source/docs/classes/_ecs_components_physics_colliders_circlecollider_.es.circlecollider.html new file mode 100644 index 00000000..206e032c --- /dev/null +++ b/source/docs/classes/_ecs_components_physics_colliders_circlecollider_.es.circlecollider.html @@ -0,0 +1,1443 @@ + + + + + + CircleCollider | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class CircleCollider

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Collider +
      +
    • + CircleCollider +
    • +
    +
  • +
+
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Protected _colliderRequiresAutoSizing

+
_colliderRequiresAutoSizing: any
+ +
+
+ +

Protected _isColliderRegistered

+
_isColliderRegistered: any
+ +
+
+

标记来记录我们是否注册了物理系统

+
+
+
+
+ +

Protected _isParentEntityAddedToScene

+
_isParentEntityAddedToScene: any
+ +
+
+

标记来跟踪我们的实体是否被添加到场景中

+
+
+
+
+ +

_isPositionDirty

+
_isPositionDirty: boolean = true
+ +
+
+ +

_isRotationDirty

+
_isRotationDirty: boolean = true
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

_localOffsetLength

+
_localOffsetLength: number
+ +
+
+ +

Private circleShape

+
circleShape: Shape = new egret.Shape()
+ +
+
+ +

collidesWithLayers

+
collidesWithLayers: Ref<number> = new Ref(Physics.allLayers)
+ +
+
+

碰撞器在使用移动器移动时应该碰撞的层 + 默认为所有层

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

isTrigger

+
isTrigger: boolean
+ +
+
+

如果这个碰撞器是一个触发器,它将不会引起碰撞,但它仍然会触发事件

+
+
+
+
+ +

physicsLayer

+
physicsLayer: Ref<number> = new Ref(1 << 0)
+ +
+
+

在处理冲突时,physicsLayer可以用作过滤器。Flags类有帮助位掩码的方法

+
+
+
+
+ +

Private pixelShape1

+
pixelShape1: Shape = new egret.Shape()
+ +
+
+ +

Private pixelShape2

+
pixelShape2: Shape = new egret.Shape()
+ +
+
+ +

Private rectShape

+
rectShape: Shape = new egret.Shape()
+ +
+
+ +

registeredPhysicsBounds

+
registeredPhysicsBounds: Rectangle = new Rectangle()
+ +
+
+

这个对撞机在物理系统注册时的边界。 + 存储这个允许我们始终能够安全地从物理系统中移除对撞机,即使它在试图移除它之前已经被移动了。

+
+
+
+
+ +

shape

+
shape: Shape
+ +
+
+

对撞机的基本形状

+
+
+
+
+ +

shouldColliderScaleAndRotateWithTransform

+
shouldColliderScaleAndRotateWithTransform: boolean = true
+ +
+
+

如果为true,碰撞器将根据附加的变换缩放和旋转

+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

absolutePosition

+
    +
  • get absolutePosition(): Vector2
  • +
+ +
+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+ +
+
+ +

radius

+
    +
  • get radius(): number
  • +
  • set radius(value: number): void
  • +
+ +
+
+ +

rotation

+
    +
  • get rotation(): number
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

collidesWith

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

overlaps

+
    +
  • overlaps(other: Collider): boolean
  • +
+ +
+
+ +

registerColliderWithPhysicsSystem

+
    +
  • registerColliderWithPhysicsSystem(): void
  • +
+ +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setLocalOffset

+ + +
+
+ +

setRadius

+ + +
+
+ +

setShouldColliderScaleAndRotateWithTransform

+
    +
  • setShouldColliderScaleAndRotateWithTransform(shouldColliderScaleAndRotationWithTransform: boolean): Collider
  • +
+ +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

unregisterColliderWithPhysicsSystem

+
    +
  • unregisterColliderWithPhysicsSystem(): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_physics_colliders_collider_.es.collider.html b/source/docs/classes/_ecs_components_physics_colliders_collider_.es.collider.html new file mode 100644 index 00000000..e161786e --- /dev/null +++ b/source/docs/classes/_ecs_components_physics_colliders_collider_.es.collider.html @@ -0,0 +1,1280 @@ + + + + + + Collider | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Collider

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Protected _colliderRequiresAutoSizing

+
_colliderRequiresAutoSizing: any
+ +
+
+ +

Protected _isColliderRegistered

+
_isColliderRegistered: any
+ +
+
+

标记来记录我们是否注册了物理系统

+
+
+
+
+ +

Protected _isParentEntityAddedToScene

+
_isParentEntityAddedToScene: any
+ +
+
+

标记来跟踪我们的实体是否被添加到场景中

+
+
+
+
+ +

_isPositionDirty

+
_isPositionDirty: boolean = true
+ +
+
+ +

_isRotationDirty

+
_isRotationDirty: boolean = true
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

_localOffsetLength

+
_localOffsetLength: number
+ +
+
+ +

collidesWithLayers

+
collidesWithLayers: Ref<number> = new Ref(Physics.allLayers)
+ +
+
+

碰撞器在使用移动器移动时应该碰撞的层 + 默认为所有层

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

isTrigger

+
isTrigger: boolean
+ +
+
+

如果这个碰撞器是一个触发器,它将不会引起碰撞,但它仍然会触发事件

+
+
+
+
+ +

physicsLayer

+
physicsLayer: Ref<number> = new Ref(1 << 0)
+ +
+
+

在处理冲突时,physicsLayer可以用作过滤器。Flags类有帮助位掩码的方法

+
+
+
+
+ +

registeredPhysicsBounds

+
registeredPhysicsBounds: Rectangle = new Rectangle()
+ +
+
+

这个对撞机在物理系统注册时的边界。 + 存储这个允许我们始终能够安全地从物理系统中移除对撞机,即使它在试图移除它之前已经被移动了。

+
+
+
+
+ +

shape

+
shape: Shape
+ +
+
+

对撞机的基本形状

+
+
+
+
+ +

shouldColliderScaleAndRotateWithTransform

+
shouldColliderScaleAndRotateWithTransform: boolean = true
+ +
+
+

如果为true,碰撞器将根据附加的变换缩放和旋转

+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

absolutePosition

+
    +
  • get absolutePosition(): Vector2
  • +
+ +
+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+
    +
  • + +
    +
    +

    将localOffset添加到实体。获取碰撞器几何图形的最终位置。 + 允许向一个实体添加多个碰撞器并分别定位,还允许你设置缩放/旋转

    +
    +
    +

    Returns Vector2

    +
  • +
  • + +
    +
    +

    将localOffset添加到实体。获取碰撞器几何图形的最终位置。 + 允许向一个实体添加多个碰撞器并分别定位,还允许你设置缩放/旋转

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

rotation

+
    +
  • get rotation(): number
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

collidesWith

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

overlaps

+
    +
  • overlaps(other: Collider): boolean
  • +
+ +
+
+ +

registerColliderWithPhysicsSystem

+
    +
  • registerColliderWithPhysicsSystem(): void
  • +
+ +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setLocalOffset

+ + +
+
+ +

setShouldColliderScaleAndRotateWithTransform

+
    +
  • setShouldColliderScaleAndRotateWithTransform(shouldColliderScaleAndRotationWithTransform: boolean): Collider
  • +
+ +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

unregisterColliderWithPhysicsSystem

+
    +
  • unregisterColliderWithPhysicsSystem(): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_physics_colliders_polygoncollider_.es.polygoncollider.html b/source/docs/classes/_ecs_components_physics_colliders_polygoncollider_.es.polygoncollider.html new file mode 100644 index 00000000..f1ad2dd8 --- /dev/null +++ b/source/docs/classes/_ecs_components_physics_colliders_polygoncollider_.es.polygoncollider.html @@ -0,0 +1,1298 @@ + + + + + + PolygonCollider | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class PolygonCollider

+
+
+
+
+
+
+
+
+
+

多边形应该以顺时针方式定义

+
+
+
+
+

Hierarchy

+
    +
  • + Collider +
      +
    • + PolygonCollider +
    • +
    +
  • +
+
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Protected _colliderRequiresAutoSizing

+
_colliderRequiresAutoSizing: any
+ +
+
+ +

Protected _isColliderRegistered

+
_isColliderRegistered: any
+ +
+
+

标记来记录我们是否注册了物理系统

+
+
+
+
+ +

Protected _isParentEntityAddedToScene

+
_isParentEntityAddedToScene: any
+ +
+
+

标记来跟踪我们的实体是否被添加到场景中

+
+
+
+
+ +

_isPositionDirty

+
_isPositionDirty: boolean = true
+ +
+
+ +

_isRotationDirty

+
_isRotationDirty: boolean = true
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

_localOffsetLength

+
_localOffsetLength: number
+ +
+
+ +

collidesWithLayers

+
collidesWithLayers: Ref<number> = new Ref(Physics.allLayers)
+ +
+
+

碰撞器在使用移动器移动时应该碰撞的层 + 默认为所有层

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

isTrigger

+
isTrigger: boolean
+ +
+
+

如果这个碰撞器是一个触发器,它将不会引起碰撞,但它仍然会触发事件

+
+
+
+
+ +

physicsLayer

+
physicsLayer: Ref<number> = new Ref(1 << 0)
+ +
+
+

在处理冲突时,physicsLayer可以用作过滤器。Flags类有帮助位掩码的方法

+
+
+
+
+ +

registeredPhysicsBounds

+
registeredPhysicsBounds: Rectangle = new Rectangle()
+ +
+
+

这个对撞机在物理系统注册时的边界。 + 存储这个允许我们始终能够安全地从物理系统中移除对撞机,即使它在试图移除它之前已经被移动了。

+
+
+
+
+ +

shape

+
shape: Shape
+ +
+
+

对撞机的基本形状

+
+
+
+
+ +

shouldColliderScaleAndRotateWithTransform

+
shouldColliderScaleAndRotateWithTransform: boolean = true
+ +
+
+

如果为true,碰撞器将根据附加的变换缩放和旋转

+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

absolutePosition

+
    +
  • get absolutePosition(): Vector2
  • +
+ +
+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+ +
+
+ +

rotation

+
    +
  • get rotation(): number
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

collidesWith

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

overlaps

+
    +
  • overlaps(other: Collider): boolean
  • +
+ +
+
+ +

registerColliderWithPhysicsSystem

+
    +
  • registerColliderWithPhysicsSystem(): void
  • +
+ +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setLocalOffset

+ + +
+
+ +

setShouldColliderScaleAndRotateWithTransform

+
    +
  • setShouldColliderScaleAndRotateWithTransform(shouldColliderScaleAndRotationWithTransform: boolean): Collider
  • +
+ +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

unregisterColliderWithPhysicsSystem

+
    +
  • unregisterColliderWithPhysicsSystem(): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Constructor
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_physics_mover_.es.mover.html b/source/docs/classes/_ecs_components_physics_mover_.es.mover.html new file mode 100644 index 00000000..19c7fa9a --- /dev/null +++ b/source/docs/classes/_ecs_components_physics_mover_.es.mover.html @@ -0,0 +1,879 @@ + + + + + + Mover | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Mover

+
+
+
+
+
+
+
+
+
+

辅助类说明了一种处理移动的方法,它考虑了包括触发器在内的所有冲突。 + ITriggerListener接口用于管理对移动过程中违反的任何触发器的回调。 + 一个物体只能通过移动器移动。要正确报告触发器的move方法。

+
+

请注意,多个移动者相互交互将多次调用ITriggerListener。

+
+
+
+

Hierarchy

+ +
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ +
    +
  • + +
    +
    +

    创建一个 HashObject 对象

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns Mover

    +
  • +
+
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Private _triggerHelper

+
_triggerHelper: ColliderTriggerHelper
+ +
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

applyMovement

+
    +
  • applyMovement(motion: Vector2): void
  • +
+ +
+
+ +

calculateMovement

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

move

+ + +
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_physics_projectilemover_.es.projectilemover.html b/source/docs/classes/_ecs_components_physics_projectilemover_.es.projectilemover.html new file mode 100644 index 00000000..e32ef160 --- /dev/null +++ b/source/docs/classes/_ecs_components_physics_projectilemover_.es.projectilemover.html @@ -0,0 +1,848 @@ + + + + + + ProjectileMover | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ProjectileMover

+
+
+
+
+
+
+
+
+
+

只向itriggerlistener报告冲突的移动器 + 该对象将始终移动完整的距离

+
+
+
+
+

Hierarchy

+
    +
  • + Component +
      +
    • + ProjectileMover +
    • +
    +
  • +
+
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Private _collider

+
_collider: Collider
+ +
+
+ +

Private _tempTriggerList

+
_tempTriggerList: ITriggerListener[] = []
+ +
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

move

+
    +
  • move(motion: Vector2): boolean
  • +
+ +
+
+ +

Private notifyTriggerListeners

+ + +
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Private property
  • +
  • Private method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_pooledcomponent_.es.pooledcomponent.html b/source/docs/classes/_ecs_components_pooledcomponent_.es.pooledcomponent.html new file mode 100644 index 00000000..490a1d24 --- /dev/null +++ b/source/docs/classes/_ecs_components_pooledcomponent_.es.pooledcomponent.html @@ -0,0 +1,777 @@ + + + + + + PooledComponent | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class PooledComponent

+
+
+
+
+
+
+
+
+
+

回收实例的组件类型。

+
+
+
+
+

Hierarchy

+
    +
  • + Component +
      +
    • + PooledComponent +
    • +
    +
  • +
+
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+
    +
  • + +
    +
    +

    在提交所有挂起的组件更改后,将该组件添加到场景时调用。此时,设置了实体字段和实体。场景也设定好了。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

Abstract reset

+
    +
  • reset(): any
  • +
+ +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_renderables_mesh_.es.mesh.html b/source/docs/classes/_ecs_components_renderables_mesh_.es.mesh.html new file mode 100644 index 00000000..f5e4cbea --- /dev/null +++ b/source/docs/classes/_ecs_components_renderables_mesh_.es.mesh.html @@ -0,0 +1,1654 @@ + + + + + + Mesh | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Mesh

+
+
+
+
+
+
+
+
+
+

可用于创建简单网格的基本类

+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Mesh(): Mesh
  • +
+
    +
  • + +
    +
    +

    创建一个 HashObject 对象

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns Mesh

    +
  • +
+
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Protected _areBoundsDirty

+
_areBoundsDirty: boolean = true
+ +
+
+ +

Protected _bounds

+
_bounds: Rectangle = new Rectangle()
+ +
+
+ +

_height

+
_height: number = 0
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

_primitiveCount

+
_primitiveCount: number = 0
+ +
+
+ +

Protected _renderLayer

+
_renderLayer: number = 0
+ +
+
+ +

_topLeftVertPosition

+
_topLeftVertPosition: Vector2
+ +
+
+ +

_triangles

+
_triangles: number[] = []
+ +
+
+ +

_verts

+ + +
+
+ +

_width

+
_width: number = 0
+ +
+
+ +

color

+
color: number = 0
+ +
+
+

用于着色器处理精灵

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

debugRenderEnabled

+
debugRenderEnabled: boolean = true
+ +
+
+ +

displayObject

+
displayObject: Mesh = new egret.Mesh()
+ +
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

hollowShape

+
hollowShape: Shape = new egret.Shape()
+ +
+
+ +

pixelShape

+
pixelShape: Shape = new egret.Shape()
+ +
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

height

+
    +
  • get height(): number
  • +
+ +
+
+ +

isVisible

+
    +
  • get isVisible(): boolean
  • +
  • set isVisible(value: boolean): void
  • +
+ +
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+ +
+
+ +

renderLayer

+
    +
  • get renderLayer(): number
  • +
  • set renderLayer(value: number): void
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+ +

width

+
    +
  • get width(): number
  • +
+ +
+
+
+

Methods

+
+ +

compareTo

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

isVisibleFromCamera

+
    +
  • isVisibleFromCamera(camera: Camera): boolean
  • +
+ +
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+
    +
  • + +
    +
    +

    在提交所有挂起的组件更改后,将该组件添加到场景时调用。此时,设置了实体字段和实体。场景也设定好了。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

Protected onBecameInvisible

+
    +
  • onBecameInvisible(): void
  • +
+ +
+
+ +

Protected onBecameVisible

+
    +
  • onBecameVisible(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

recalculateBounds

+
    +
  • recalculateBounds(recalculateUVs: boolean): this
  • +
+
    +
  • + +
    +
    +

    重新计算边界和可选地设置uv。设置uv以最适合的方式映射纹理。

    +
    +
    +

    Parameters

    +
      +
    • +
      recalculateUVs: boolean
      +
      +
      +
    • +
    +

    Returns this

    +
  • +
+
+
+ +

render

+
    +
  • render(camera: Camera): void
  • +
+ +
+
+ +

setColor

+ + +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setLocalOffset

+ + +
+
+ +

setRenderLayer

+ + +
+
+ +

setTexture

+
    +
  • setTexture(texture: Texture): Mesh
  • +
+ +
+
+ +

setTriangles

+
    +
  • setTriangles(triangles: number[]): this
  • +
+ +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

setVertPositions

+
    +
  • setVertPositions(positions: Vector2[]): this
  • +
+
    +
  • + +
    +
    +

    设置vert位置。如果position数组与vert数组大小不匹配,则将重新创建vert数组。

    +
    +
    +

    Parameters

    + +

    Returns this

    +
  • +
+
+
+ +

sync

+
    +
  • sync(camera: Camera): void
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_renderables_mesh_.es.vertexpositioncolortexture.html b/source/docs/classes/_ecs_components_renderables_mesh_.es.vertexpositioncolortexture.html new file mode 100644 index 00000000..da11e771 --- /dev/null +++ b/source/docs/classes/_ecs_components_renderables_mesh_.es.vertexpositioncolortexture.html @@ -0,0 +1,187 @@ + + + + + + VertexPositionColorTexture | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class VertexPositionColorTexture

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + VertexPositionColorTexture +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

position

+
position: Vector2
+ +
+
+ +

textureCoordinate

+
textureCoordinate: Vector2
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_renderables_renderablecomponent_.es.renderablecomponent.html b/source/docs/classes/_ecs_components_renderables_renderablecomponent_.es.renderablecomponent.html new file mode 100644 index 00000000..9015d857 --- /dev/null +++ b/source/docs/classes/_ecs_components_renderables_renderablecomponent_.es.renderablecomponent.html @@ -0,0 +1,1457 @@ + + + + + + RenderableComponent | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class RenderableComponent

+
+
+
+
+
+
+
+
+
+

所有可渲染组件的基类

+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Protected _areBoundsDirty

+
_areBoundsDirty: boolean = true
+ +
+
+ +

Protected _bounds

+
_bounds: Rectangle = new Rectangle()
+ +
+
+ +

Private _isVisible

+
_isVisible: boolean
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

Protected _renderLayer

+
_renderLayer: number = 0
+ +
+
+ +

color

+
color: number = 0
+ +
+
+

用于着色器处理精灵

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

debugRenderEnabled

+
debugRenderEnabled: boolean = true
+ +
+
+ +

displayObject

+
displayObject: DisplayObject = new egret.DisplayObject()
+ +
+
+

用于装载egret显示对象

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

hollowShape

+
hollowShape: Shape = new egret.Shape()
+ +
+
+ +

pixelShape

+
pixelShape: Shape = new egret.Shape()
+ +
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

height

+
    +
  • get height(): number
  • +
+ +
+
+ +

isVisible

+
    +
  • get isVisible(): boolean
  • +
  • set isVisible(value: boolean): void
  • +
+ +
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+ +
+
+ +

renderLayer

+
    +
  • get renderLayer(): number
  • +
  • set renderLayer(value: number): void
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+ +

width

+
    +
  • get width(): number
  • +
+ +
+
+
+

Methods

+
+ +

compareTo

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

isVisibleFromCamera

+
    +
  • isVisibleFromCamera(camera: Camera): boolean
  • +
+ +
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+
    +
  • + +
    +
    +

    在提交所有挂起的组件更改后,将该组件添加到场景时调用。此时,设置了实体字段和实体。场景也设定好了。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

Protected onBecameInvisible

+
    +
  • onBecameInvisible(): void
  • +
+ +
+
+ +

Protected onBecameVisible

+
    +
  • onBecameVisible(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

Abstract render

+
    +
  • render(camera: Camera): any
  • +
+ +
+
+ +

setColor

+ + +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setLocalOffset

+ + +
+
+ +

setRenderLayer

+ + +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

sync

+
    +
  • sync(camera: Camera): void
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Protected property
  • +
  • Protected method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_renderables_sprites_scrollingspriterenderer_.es.scrollingspriterenderer.html b/source/docs/classes/_ecs_components_renderables_sprites_scrollingspriterenderer_.es.scrollingspriterenderer.html new file mode 100644 index 00000000..199c3188 --- /dev/null +++ b/source/docs/classes/_ecs_components_renderables_sprites_scrollingspriterenderer_.es.scrollingspriterenderer.html @@ -0,0 +1,2169 @@ + + + + + + ScrollingSpriteRenderer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ScrollingSpriteRenderer

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Protected _areBoundsDirty

+
_areBoundsDirty: boolean = true
+ +
+
+ +

Protected _bounds

+
_bounds: Rectangle = new Rectangle()
+ +
+
+ +

Protected _inverseTexScale

+
_inverseTexScale: Vector2 = Vector2.one
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

Protected _origin

+
_origin: Vector2
+ +
+
+ +

Protected _renderLayer

+
_renderLayer: number = 0
+ +
+
+ +

Private _scrollHeight

+
_scrollHeight: number = 0
+ +
+
+ +

Private _scrollWidth

+
_scrollWidth: number = 0
+ +
+
+ +

Private _scrollX

+
_scrollX: number = 0
+ +
+
+ +

Private _scrollY

+
_scrollY: number = 0
+ +
+
+ +

Protected _sourceRect

+
_sourceRect: Rectangle
+ +
+
+ +

Protected _sprite

+
_sprite: Sprite
+ +
+
+ +

Protected _textureScale

+
_textureScale: Vector2 = Vector2.one
+ +
+
+ +

color

+
color: number = 0
+ +
+
+

用于着色器处理精灵

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

debugRenderEnabled

+
debugRenderEnabled: boolean = true
+ +
+
+ +

displayObject

+
displayObject: DisplayObject = new egret.DisplayObject()
+ +
+
+

用于装载egret显示对象

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

hollowShape

+
hollowShape: Shape = new egret.Shape()
+ +
+
+ +

pixelShape

+
pixelShape: Shape = new egret.Shape()
+ +
+
+ +

scrollSpeedX

+
scrollSpeedX: number = 15
+ +
+
+

x自动滚动速度(以像素/s为单位)

+
+
+
+
+ +

scroolSpeedY

+
scroolSpeedY: number = 0
+ +
+
+

自动滚动的y速度(以像素/s为单位)

+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

gapXY

+ + +
+
+ +

height

+
    +
  • get height(): number
  • +
  • set height(value: number): void
  • +
+ +
+
+ +

isVisible

+
    +
  • get isVisible(): boolean
  • +
  • set isVisible(value: boolean): void
  • +
+ +
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+ +
+
+ +

origin

+ + +
+
+ +

originNormalized

+
    +
  • get originNormalized(): Vector2
  • +
  • set originNormalized(value: Vector2): void
  • +
+ +
+
+ +

renderLayer

+
    +
  • get renderLayer(): number
  • +
  • set renderLayer(value: number): void
  • +
+ +
+
+ +

scrollHeight

+
    +
  • get scrollHeight(): number
  • +
  • set scrollHeight(value: number): void
  • +
+ +
+
+ +

scrollWidth

+
    +
  • get scrollWidth(): number
  • +
  • set scrollWidth(value: number): void
  • +
+ +
+
+ +

scrollX

+
    +
  • get scrollX(): number
  • +
  • set scrollX(value: number): void
  • +
+ +
+
+ +

scrollY

+
    +
  • get scrollY(): number
  • +
  • set scrollY(value: number): void
  • +
+ +
+
+ +

sprite

+
    +
  • get sprite(): Sprite
  • +
  • set sprite(value: Sprite): void
  • +
+ +
+
+ +

textureScale

+
    +
  • get textureScale(): Vector2
  • +
  • set textureScale(value: Vector2): void
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+ +

width

+
    +
  • get width(): number
  • +
  • set width(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

compareTo

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

isVisibleFromCamera

+
    +
  • isVisibleFromCamera(camera: Camera): boolean
  • +
+ +
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+
    +
  • + +
    +
    +

    在提交所有挂起的组件更改后,将该组件添加到场景时调用。此时,设置了实体字段和实体。场景也设定好了。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

Protected onBecameInvisible

+
    +
  • onBecameInvisible(): void
  • +
+ +
+
+ +

Protected onBecameVisible

+
    +
  • onBecameVisible(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

render

+
    +
  • render(camera: Camera): void
  • +
+ +
+
+ +

setColor

+ + +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setGapXY

+ + +
+
+ +

setLocalOffset

+ + +
+
+ +

setOrigin

+ + +
+
+ +

setOriginNormalized

+ + +
+
+ +

setRenderLayer

+ + +
+
+ +

setSprite

+ + +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

sync

+
    +
  • sync(camera: Camera): void
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_renderables_sprites_sprite_.es.sprite.html b/source/docs/classes/_ecs_components_renderables_sprites_sprite_.es.sprite.html new file mode 100644 index 00000000..979367be --- /dev/null +++ b/source/docs/classes/_ecs_components_renderables_sprites_sprite_.es.sprite.html @@ -0,0 +1,338 @@ + + + + + + Sprite | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Sprite

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Sprite +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Readonly center

+
center: Vector2
+ +
+
+ +

origin

+
origin: Vector2
+ +
+
+ +

Readonly sourceRect

+
sourceRect: Rectangle
+ +
+
+ +

texture2D

+
texture2D: Texture
+ +
+
+ +

Readonly uvs

+
uvs: Rectangle = new Rectangle()
+ +
+
+
+

Methods

+
+ +

Static spritesFromAtlas

+
    +
  • spritesFromAtlas(texture: Texture, cellWidth: number, cellHeight: number, cellOffset?: number, maxCellsToInclude?: number): Sprite[]
  • +
+
    +
  • + +
    +
    +

    提供一个精灵的列/行等间隔的图集的精灵列表

    +
    +
    +

    Parameters

    +
      +
    • +
      texture: Texture
      +
    • +
    • +
      cellWidth: number
      +
    • +
    • +
      cellHeight: number
      +
    • +
    • +
      Default value cellOffset: number = 0
      +
      +

      处理时要包含的第一个单元格。基于0的索引

      +
      +
    • +
    • +
      Default value maxCellsToInclude: number = Number.MAX_VALUE
      +
      +

      包含的最大单元

      +
      +
    • +
    +

    Returns Sprite[]

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_renderables_sprites_spriteanimation_.es.spriteanimation.html b/source/docs/classes/_ecs_components_renderables_sprites_spriteanimation_.es.spriteanimation.html new file mode 100644 index 00000000..fc6111a3 --- /dev/null +++ b/source/docs/classes/_ecs_components_renderables_sprites_spriteanimation_.es.spriteanimation.html @@ -0,0 +1,223 @@ + + + + + + SpriteAnimation | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class SpriteAnimation

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + SpriteAnimation +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Readonly frameRate

+
frameRate: number
+ +
+
+ +

Readonly sprites

+
sprites: Sprite[]
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_renderables_sprites_spriteanimator_.es.spriteanimator.html b/source/docs/classes/_ecs_components_renderables_sprites_spriteanimator_.es.spriteanimator.html new file mode 100644 index 00000000..c768613e --- /dev/null +++ b/source/docs/classes/_ecs_components_renderables_sprites_spriteanimator_.es.spriteanimator.html @@ -0,0 +1,2132 @@ + + + + + + SpriteAnimator | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class SpriteAnimator

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Private _animations

+
_animations: Map<string, SpriteAnimation> = new Map<string, SpriteAnimation>()
+ +
+
+ +

Protected _areBoundsDirty

+
_areBoundsDirty: boolean = true
+ +
+
+ +

Protected _bounds

+
_bounds: Rectangle = new Rectangle()
+ +
+
+ +

_elapsedTime

+
_elapsedTime: number = 0
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

_loopMode

+
_loopMode: LoopMode
+ +
+
+ +

Protected _origin

+
_origin: Vector2
+ +
+
+ +

Protected _renderLayer

+
_renderLayer: number = 0
+ +
+
+ +

Protected _sprite

+
_sprite: Sprite
+ +
+
+ +

animationState

+
animationState: State = State.none
+ +
+
+

动画的当前状态

+
+
+
+
+ +

color

+
color: number = 0
+ +
+
+

用于着色器处理精灵

+
+
+
+
+ +

currentAnimation

+
currentAnimation: SpriteAnimation
+ +
+
+

当前动画

+
+
+
+
+ +

currentAnimationName

+
currentAnimationName: string
+ +
+
+

当前动画的名称

+
+
+
+
+ +

currentFrame

+
currentFrame: number
+ +
+
+

当前动画的精灵数组中当前帧的索引

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

debugRenderEnabled

+
debugRenderEnabled: boolean = true
+ +
+
+ +

displayObject

+
displayObject: DisplayObject = new egret.DisplayObject()
+ +
+
+

用于装载egret显示对象

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

hollowShape

+
hollowShape: Shape = new egret.Shape()
+ +
+
+ +

onAnimationCompletedEvent

+
onAnimationCompletedEvent: (string: any) => {}
+ +
+
+

在动画完成时触发,包括动画名称

+
+
+
+

Type declaration

+
    +
  • +
      +
    • (string: any): {}
    • +
    +
      +
    • +

      Parameters

      +
        +
      • +
        string: any
        +
      • +
      +

      Returns {}

      +
        +
      +
    • +
    +
  • +
+
+
+
+ +

pixelShape

+
pixelShape: Shape = new egret.Shape()
+ +
+
+ +

speed

+
speed: number = 1
+ +
+
+

动画播放速度

+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

animations

+ + +
+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

height

+
    +
  • get height(): number
  • +
+ +
+
+ +

isRunning

+
    +
  • get isRunning(): boolean
  • +
+ +
+
+ +

isVisible

+
    +
  • get isVisible(): boolean
  • +
  • set isVisible(value: boolean): void
  • +
+ +
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+ +
+
+ +

origin

+ + +
+
+ +

originNormalized

+
    +
  • get originNormalized(): Vector2
  • +
  • set originNormalized(value: Vector2): void
  • +
+ +
+
+ +

renderLayer

+
    +
  • get renderLayer(): number
  • +
  • set renderLayer(value: number): void
  • +
+ +
+
+ +

sprite

+
    +
  • get sprite(): Sprite
  • +
  • set sprite(value: Sprite): void
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+ +

width

+
    +
  • get width(): number
  • +
+ +
+
+
+

Methods

+
+ +

addAnimation

+ + +
+
+ +

compareTo

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

isAnimationActive

+
    +
  • isAnimationActive(name: string): boolean
  • +
+ +
+
+ +

isVisibleFromCamera

+
    +
  • isVisibleFromCamera(camera: Camera): boolean
  • +
+ +
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+
    +
  • + +
    +
    +

    在提交所有挂起的组件更改后,将该组件添加到场景时调用。此时,设置了实体字段和实体。场景也设定好了。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

Protected onBecameInvisible

+
    +
  • onBecameInvisible(): void
  • +
+ +
+
+ +

Protected onBecameVisible

+
    +
  • onBecameVisible(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

pause

+
    +
  • pause(): void
  • +
+ +
+
+ +

play

+
    +
  • play(name: string, loopMode?: LoopMode): void
  • +
+ +
+
+ +

render

+
    +
  • render(camera: Camera): void
  • +
+ +
+
+ +

setColor

+ + +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setLocalOffset

+ + +
+
+ +

setOrigin

+ + +
+
+ +

setOriginNormalized

+ + +
+
+ +

setRenderLayer

+ + +
+
+ +

setSprite

+ + +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

stop

+
    +
  • stop(): void
  • +
+ +
+
+ +

sync

+
    +
  • sync(camera: Camera): void
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

unPause

+
    +
  • unPause(): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_renderables_sprites_spriterenderer_.es.spriterenderer.html b/source/docs/classes/_ecs_components_renderables_sprites_spriterenderer_.es.spriterenderer.html new file mode 100644 index 00000000..c7865f8c --- /dev/null +++ b/source/docs/classes/_ecs_components_renderables_sprites_spriterenderer_.es.spriterenderer.html @@ -0,0 +1,1712 @@ + + + + + + SpriteRenderer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class SpriteRenderer

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Protected _areBoundsDirty

+
_areBoundsDirty: boolean = true
+ +
+
+ +

Protected _bounds

+
_bounds: Rectangle = new Rectangle()
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

Protected _origin

+
_origin: Vector2
+ +
+
+ +

Protected _renderLayer

+
_renderLayer: number = 0
+ +
+
+ +

Protected _sprite

+
_sprite: Sprite
+ +
+
+ +

color

+
color: number = 0
+ +
+
+

用于着色器处理精灵

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

debugRenderEnabled

+
debugRenderEnabled: boolean = true
+ +
+
+ +

displayObject

+
displayObject: DisplayObject = new egret.DisplayObject()
+ +
+
+

用于装载egret显示对象

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

hollowShape

+
hollowShape: Shape = new egret.Shape()
+ +
+
+ +

pixelShape

+
pixelShape: Shape = new egret.Shape()
+ +
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

height

+
    +
  • get height(): number
  • +
+ +
+
+ +

isVisible

+
    +
  • get isVisible(): boolean
  • +
  • set isVisible(value: boolean): void
  • +
+ +
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+ +
+
+ +

origin

+ + +
+
+ +

originNormalized

+
    +
  • get originNormalized(): Vector2
  • +
  • set originNormalized(value: Vector2): void
  • +
+ +
+
+ +

renderLayer

+
    +
  • get renderLayer(): number
  • +
  • set renderLayer(value: number): void
  • +
+ +
+
+ +

sprite

+
    +
  • get sprite(): Sprite
  • +
  • set sprite(value: Sprite): void
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+ +

width

+
    +
  • get width(): number
  • +
+ +
+
+
+

Methods

+
+ +

compareTo

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

isVisibleFromCamera

+
    +
  • isVisibleFromCamera(camera: Camera): boolean
  • +
+ +
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+
    +
  • + +
    +
    +

    在提交所有挂起的组件更改后,将该组件添加到场景时调用。此时,设置了实体字段和实体。场景也设定好了。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

Protected onBecameInvisible

+
    +
  • onBecameInvisible(): void
  • +
+ +
+
+ +

Protected onBecameVisible

+
    +
  • onBecameVisible(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

render

+
    +
  • render(camera: Camera): void
  • +
+ +
+
+ +

setColor

+ + +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setLocalOffset

+ + +
+
+ +

setOrigin

+ + +
+
+ +

setOriginNormalized

+ + +
+
+ +

setRenderLayer

+ + +
+
+ +

setSprite

+ + +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

sync

+
    +
  • sync(camera: Camera): void
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_renderables_sprites_staticspritecontainerrenderer_.es.staticspritecontainerrenderer.html b/source/docs/classes/_ecs_components_renderables_sprites_staticspritecontainerrenderer_.es.staticspritecontainerrenderer.html new file mode 100644 index 00000000..c90ee059 --- /dev/null +++ b/source/docs/classes/_ecs_components_renderables_sprites_staticspritecontainerrenderer_.es.staticspritecontainerrenderer.html @@ -0,0 +1,1684 @@ + + + + + + StaticSpriteContainerRenderer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class StaticSpriteContainerRenderer

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Protected _areBoundsDirty

+
_areBoundsDirty: boolean = true
+ +
+
+ +

Protected _bounds

+
_bounds: Rectangle = new Rectangle()
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

Protected _origin

+
_origin: Vector2
+ +
+
+ +

Protected _renderLayer

+
_renderLayer: number = 0
+ +
+
+ +

color

+
color: number = 0
+ +
+
+

用于着色器处理精灵

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

debugRenderEnabled

+
debugRenderEnabled: boolean = true
+ +
+
+ +

displayObject

+
displayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+ +

Private displayObjectCache

+
displayObjectCache: Map<Sprite, Bitmap> = new Map<Sprite, Bitmap>()
+ +
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

hollowShape

+
hollowShape: Shape = new egret.Shape()
+ +
+
+ +

pixelShape

+
pixelShape: Shape = new egret.Shape()
+ +
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

height

+
    +
  • get height(): number
  • +
+ +
+
+ +

isVisible

+
    +
  • get isVisible(): boolean
  • +
  • set isVisible(value: boolean): void
  • +
+ +
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+ +
+
+ +

origin

+ + +
+
+ +

originNormalized

+
    +
  • get originNormalized(): Vector2
  • +
  • set originNormalized(value: Vector2): void
  • +
+ +
+
+ +

renderLayer

+
    +
  • get renderLayer(): number
  • +
  • set renderLayer(value: number): void
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+ +

width

+
    +
  • get width(): number
  • +
+ +
+
+
+

Methods

+
+ +

compareTo

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

getSprite

+
    +
  • getSprite(sprite: Sprite): Bitmap
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

isVisibleFromCamera

+
    +
  • isVisibleFromCamera(camera: Camera): boolean
  • +
+ +
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+
    +
  • + +
    +
    +

    在提交所有挂起的组件更改后,将该组件添加到场景时调用。此时,设置了实体字段和实体。场景也设定好了。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

Protected onBecameInvisible

+
    +
  • onBecameInvisible(): void
  • +
+ +
+
+ +

Protected onBecameVisible

+
    +
  • onBecameVisible(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

pushSprite

+ + +
+
+ +

render

+
    +
  • render(camera: Camera): void
  • +
+ +
+
+ +

setColor

+ + +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setLocalOffset

+ + +
+
+ +

setOrigin

+ + +
+
+ +

setOriginNormalized

+ + +
+
+ +

setRenderLayer

+ + +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

sync

+
    +
  • sync(camera: Camera): void
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected property
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_renderables_sprites_tiledmaprenderer_.es.tiledmaprenderer.html b/source/docs/classes/_ecs_components_renderables_sprites_tiledmaprenderer_.es.tiledmaprenderer.html new file mode 100644 index 00000000..8d5a387e --- /dev/null +++ b/source/docs/classes/_ecs_components_renderables_sprites_tiledmaprenderer_.es.tiledmaprenderer.html @@ -0,0 +1,1700 @@ + + + + + + TiledMapRenderer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TiledMapRenderer

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new TiledMapRenderer(tiledMap: TmxMap, collisionLayerName?: string, shouldCreateColliders?: boolean): TiledMapRenderer
  • +
+ +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Protected _areBoundsDirty

+
_areBoundsDirty: boolean = true
+ +
+
+ +

Protected _bounds

+
_bounds: Rectangle = new Rectangle()
+ +
+
+ +

_colliders

+
_colliders: Collider[]
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

Protected _renderLayer

+
_renderLayer: number = 0
+ +
+
+ +

_shouldCreateColliders

+
_shouldCreateColliders: boolean
+ +
+
+ +

collisionLayer

+
collisionLayer: TmxLayer
+ +
+
+ +

color

+
color: number = 0
+ +
+
+

用于着色器处理精灵

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

debugRenderEnabled

+
debugRenderEnabled: boolean = true
+ +
+
+ +

displayObject

+
displayObject: DisplayObject = new egret.DisplayObject()
+ +
+
+

用于装载egret显示对象

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

hollowShape

+
hollowShape: Shape = new egret.Shape()
+ +
+
+ +

layerIndicesToRender

+
layerIndicesToRender: number[]
+ +
+
+

如果空,所有层将被渲染

+
+
+
+
+ +

physicsLayer

+
physicsLayer: Ref<number> = new Ref(1 << 0)
+ +
+
+ +

pixelShape

+
pixelShape: Shape = new egret.Shape()
+ +
+
+ +

tiledMap

+
tiledMap: TmxMap
+ +
+
+ +

Private toContainer

+
toContainer: boolean = false
+ +
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

height

+
    +
  • get height(): number
  • +
+ +
+
+ +

isVisible

+
    +
  • get isVisible(): boolean
  • +
  • set isVisible(value: boolean): void
  • +
+ +
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+ +
+
+ +

renderLayer

+
    +
  • get renderLayer(): number
  • +
  • set renderLayer(value: number): void
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+ +

width

+
    +
  • get width(): number
  • +
+ +
+
+
+

Methods

+
+ +

addColliders

+
    +
  • addColliders(): void
  • +
+ +
+
+ +

compareTo

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

getColumnAtWorldPosition

+
    +
  • getColumnAtWorldPosition(xPos: number): number
  • +
+ +
+
+ +

Private getLayerIndex

+
    +
  • getLayerIndex(layerName: string): number
  • +
+ +
+
+ +

getRowAtWorldPosition

+
    +
  • getRowAtWorldPosition(yPos: number): number
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

isVisibleFromCamera

+
    +
  • isVisibleFromCamera(camera: Camera): boolean
  • +
+ +
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+ +
+
+ +

Protected onBecameInvisible

+
    +
  • onBecameInvisible(): void
  • +
+ +
+
+ +

Protected onBecameVisible

+
    +
  • onBecameVisible(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

removeColliders

+
    +
  • removeColliders(): void
  • +
+ +
+
+ +

render

+
    +
  • render(camera: Camera): void
  • +
+ +
+
+ +

setColor

+ + +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setLayerToRender

+
    +
  • setLayerToRender(layerName: string): void
  • +
+ +
+
+ +

setLayersToRender

+
    +
  • setLayersToRender(...layerNames: string[]): void
  • +
+ +
+
+ +

setLocalOffset

+ + +
+
+ +

setRenderLayer

+ + +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

sync

+
    +
  • sync(camera: Camera): void
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Private property
  • +
  • Private method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_renderables_sprites_tiledspriterenderer_.es.tiledspriterenderer.html b/source/docs/classes/_ecs_components_renderables_sprites_tiledspriterenderer_.es.tiledspriterenderer.html new file mode 100644 index 00000000..e08fd2f2 --- /dev/null +++ b/source/docs/classes/_ecs_components_renderables_sprites_tiledspriterenderer_.es.tiledspriterenderer.html @@ -0,0 +1,2047 @@ + + + + + + TiledSpriteRenderer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TiledSpriteRenderer

+
+
+
+
+
+
+
+
+
+

滚动由两张图片组合而成

+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Protected _areBoundsDirty

+
_areBoundsDirty: boolean = true
+ +
+
+ +

Protected _bounds

+
_bounds: Rectangle = new Rectangle()
+ +
+
+ +

Private _gapX

+
_gapX: number = 0
+ +
+
+ +

Private _gapY

+
_gapY: number = 0
+ +
+
+ +

Protected _inverseTexScale

+
_inverseTexScale: Vector2 = Vector2.one
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

Protected _origin

+
_origin: Vector2
+ +
+
+ +

Protected _renderLayer

+
_renderLayer: number = 0
+ +
+
+ +

Protected _sourceRect

+
_sourceRect: Rectangle
+ +
+
+ +

Protected _sprite

+
_sprite: Sprite
+ +
+
+ +

Protected _textureScale

+
_textureScale: Vector2 = Vector2.one
+ +
+
+ +

color

+
color: number = 0
+ +
+
+

用于着色器处理精灵

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

debugRenderEnabled

+
debugRenderEnabled: boolean = true
+ +
+
+ +

displayObject

+
displayObject: DisplayObject = new egret.DisplayObject()
+ +
+
+

用于装载egret显示对象

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

hollowShape

+
hollowShape: Shape = new egret.Shape()
+ +
+
+ +

pixelShape

+
pixelShape: Shape = new egret.Shape()
+ +
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

gapXY

+ + +
+
+ +

height

+
    +
  • get height(): number
  • +
  • set height(value: number): void
  • +
+ +
+
+ +

isVisible

+
    +
  • get isVisible(): boolean
  • +
  • set isVisible(value: boolean): void
  • +
+ +
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+ +
+
+ +

origin

+ + +
+
+ +

originNormalized

+
    +
  • get originNormalized(): Vector2
  • +
  • set originNormalized(value: Vector2): void
  • +
+ +
+
+ +

renderLayer

+
    +
  • get renderLayer(): number
  • +
  • set renderLayer(value: number): void
  • +
+ +
+
+ +

scrollX

+
    +
  • get scrollX(): number
  • +
  • set scrollX(value: number): void
  • +
+ +
+
+ +

scrollY

+
    +
  • get scrollY(): number
  • +
  • set scrollY(value: number): void
  • +
+ +
+
+ +

sprite

+
    +
  • get sprite(): Sprite
  • +
  • set sprite(value: Sprite): void
  • +
+ +
+
+ +

textureScale

+
    +
  • get textureScale(): Vector2
  • +
  • set textureScale(value: Vector2): void
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+ +

width

+
    +
  • get width(): number
  • +
  • set width(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

compareTo

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

isVisibleFromCamera

+
    +
  • isVisibleFromCamera(camera: Camera): boolean
  • +
+ +
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+
    +
  • + +
    +
    +

    在提交所有挂起的组件更改后,将该组件添加到场景时调用。此时,设置了实体字段和实体。场景也设定好了。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

Protected onBecameInvisible

+
    +
  • onBecameInvisible(): void
  • +
+ +
+
+ +

Protected onBecameVisible

+
    +
  • onBecameVisible(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

render

+
    +
  • render(camera: Camera): void
  • +
+ +
+
+ +

setColor

+ + +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setGapXY

+ + +
+
+ +

setLocalOffset

+ + +
+
+ +

setOrigin

+ + +
+
+ +

setOriginNormalized

+ + +
+
+ +

setRenderLayer

+ + +
+
+ +

setSprite

+ + +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

sync

+
    +
  • sync(camera: Camera): void
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected property
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_components_scenecomponent_.es.scenecomponent.html b/source/docs/classes/_ecs_components_scenecomponent_.es.scenecomponent.html new file mode 100644 index 00000000..d5c457a4 --- /dev/null +++ b/source/docs/classes/_ecs_components_scenecomponent_.es.scenecomponent.html @@ -0,0 +1,473 @@ + + + + + + SceneComponent | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class SceneComponent

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + SceneComponent +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

_enabled

+
_enabled: boolean = true
+ +
+
+ +

scene

+
scene: Scene
+ +
+
+

这个场景组件被附加到的场景

+
+
+
+
+ +

updateOrder

+
updateOrder: number = 0
+ +
+
+

更新此场景中SceneComponents的顺序

+
+
+
+
+
+

Accessors

+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果启用了SceneComponent,则为true。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果启用了SceneComponent,则为true。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+

Methods

+
+ +

compareTo

+ + +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onRemovedFromScene

+
    +
  • onRemovedFromScene(): void
  • +
+ +
+
+ +

setEnabled

+ + +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+
    +
  • + +
    +
    +

    设置SceneComponent的updateOrder并触发某种SceneComponent

    +
    +
    +

    Parameters

    +
      +
    • +
      updateOrder: number
      +
      +
      +
    • +
    +

    Returns this

    +
  • +
+
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_core_.es.core.html b/source/docs/classes/_ecs_core_.es.core.html new file mode 100644 index 00000000..4e0e1936 --- /dev/null +++ b/source/docs/classes/_ecs_core_.es.core.html @@ -0,0 +1,5697 @@ + + + + + + Core | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Core

+
+
+
+
+
+
+
+
+
+

全局核心类

+
+
+
+
+

Hierarchy

+
    +
  • + DisplayObjectContainer +
      +
    • + Core +
    • +
    +
  • +
+
+
+

Implements

+
    +
  • IHashObject
  • +
  • IEventDispatcher
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Core(): Core
  • +
+
    +
  • + +

    Returns Core

    +
  • +
+
+
+
+

Properties

+
+ +

Private $EventDispatcher

+
$EventDispatcher: Object
+ +
+
+
+
+ +

Private $alpha

+
$alpha: number
+ +
+
+
+
+ +

$anchorOffsetX

+
$anchorOffsetX: number
+ +
+
+ +

$anchorOffsetY

+
$anchorOffsetY: number
+ +
+
+ +

Private $blendMode

+
$blendMode: number
+ +
+
+
+
+ +

$cacheDirty

+
$cacheDirty: boolean
+ +
+
+ +

Private $children

+
$children: DisplayObject[]
+ +
+
+
+
+ +

Private $displayList

+
$displayList: DisplayList
+ +
+
+
+
+ +

$explicitHeight

+
$explicitHeight: number
+ +
+
+ +

$explicitWidth

+
$explicitWidth: number
+ +
+
+ +

$filters

+
$filters: Array<Filter | CustomFilter>
+ +
+
+ +

Private $hasAddToStage

+
$hasAddToStage: boolean
+ +
+
+
+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Private $lastSortedIndex

+
$lastSortedIndex: number
+ +
+
+
+
+ +

Private $mask

+
$mask: DisplayObject
+ +
+
+
+
+ +

Private $maskRect

+
$maskRect: Rectangle
+ +
+
+
+
+ +

Private $maskedObject

+
$maskedObject: DisplayObject
+ +
+
+
+
+ +

$nativeDisplayObject

+
$nativeDisplayObject: NativeDisplayObject
+ +
+
+ +

Private $nestLevel

+
$nestLevel: number
+ +
+
+
+
+ +

Private $parent

+
$parent: DisplayObjectContainer
+ +
+
+
+
+ +

Private $parentDisplayList

+
$parentDisplayList: DisplayList
+ +
+
+
+
+ +

$renderDirty

+
$renderDirty: boolean
+ +
+
+ +

$renderMode

+
$renderMode: RenderMode
+ +
+
+ +

Private $renderNode

+
$renderNode: RenderNode
+ +
+
+
+
+ +

Private $scrollRect

+
$scrollRect: Rectangle
+ +
+
+
+
+ +

Private $sortDirty

+
$sortDirty: boolean
+ +
+
+
+
+ +

Private $stage

+
$stage: Stage
+ +
+
+
+
+ +

Private $tintRGB

+
$tintRGB: number
+ +
+
+
+
+ +

$touchChildren

+
$touchChildren: boolean
+ +
+
+ +

$touchEnabled

+
$touchEnabled: boolean
+ +
+
+ +

$useTranslate

+
$useTranslate: boolean
+ +
+
+ +

Private $visible

+
$visible: boolean
+ +
+
+
+
+ +

$x

+
$x: number
+ +
+
+ +

$y

+
$y: number
+ +
+
+ +

_coroutineManager

+
_coroutineManager: CoroutineManager = new CoroutineManager()
+ +
+
+ +

_frameCounter

+
_frameCounter: number = 0
+ +
+
+ +

_frameCounterElapsedTime

+
_frameCounterElapsedTime: number = 0
+ +
+
+ +

_globalManagers

+
_globalManagers: GlobalManager[] = []
+ +
+
+

全局访问系统

+
+
+
+
+ +

_nextScene

+
_nextScene: Scene
+ +
+
+ +

_scene

+
_scene: Scene
+ +
+
+ +

_sceneTransition

+
_sceneTransition: SceneTransition
+ +
+
+ +

_timerManager

+
_timerManager: TimerManager = new TimerManager()
+ +
+
+ +

alpha

+
alpha: number
+ +
+
+

表示指定对象的 Alpha 透明度值。 + 有效值为 0(完全透明)到 1(完全不透明)。alpha 设置为 0 的显示对象是可触摸的,即使它们不可见。

+
+
+
default
+

1

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

anchorOffsetX

+
anchorOffsetX: number
+ +
+
+

表示从对象绝对锚点X。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

anchorOffsetY

+
anchorOffsetY: number
+ +
+
+

表示从对象绝对锚点Y。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

blendMode

+
blendMode: string
+ +
+
+

BlendMode 枚举中的一个值,用于指定要使用的混合模式,确定如何将一个源(新的)图像绘制到目标(已有)的图像上
+ 如果尝试将此属性设置为无效值,则运行时会将此值设置为 BlendMode.NORMAL。

+
+
+
default
+

egret.BlendMode.NORMAL

+
+
see
+

egret.BlendMode

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

cacheAsBitmap

+
cacheAsBitmap: boolean
+ +
+
+

如果设置为 true,则 Egret 运行时将缓存显示对象的内部位图表示形式。此缓存可以提高包含复杂矢量内容的显示对象的性能。 + 将 cacheAsBitmap 属性设置为 true 后,呈现并不更改,但是,显示对象将自动执行像素贴紧。执行速度可能会大大加快, + 具体取决于显示对象内容的复杂性。最好将 cacheAsBitmap 属性与主要具有静态内容且不频繁缩放或旋转的显示对象一起使用。
+ 注意:在内存超过上限的情况下,即使将 cacheAsBitmap 属性设置为 true,显示对象也不使用位图缓存。

+
+
+
default
+

false

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

filters

+
filters: Array<Filter | CustomFilter>
+ +
+
+

包含当前与显示对象关联的每个滤镜对象的索引数组。

+
+
+
version
+

Egret 3.1.0

+
+
platform
+

Web

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

height

+
height: number
+ +
+
+

表示显示对象的高度,以像素为单位。高度是根据显示对象内容的范围来计算的。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

mask

+
mask: DisplayObject | Rectangle
+ +
+
+

调用显示对象被指定的 mask 对象遮罩。要确保当舞台缩放时蒙版仍然有效,mask 显示对象必须处于显示列表的活动部分。 + 但不绘制 mask 对象本身。将 mask 设置为 null 可删除蒙版。要能够缩放遮罩对象,它必须在显示列表中。要能够拖动蒙版 + 对象,它必须在显示列表中。
+ 注意:单个 mask 对象不能用于遮罩多个执行调用的显示对象。在将 mask 分配给第二个显示对象时,会撤消其作为第一个对象的遮罩, + 该对象的 mask 属性将变为 null。

+
+

下面例子为 mask 为 Rectangle 类型对象,这种情况下,修改 mask 的值后,一定要对 myDisplayObject 重新赋值 mask,不然会出问题。

+
+
example
+

以下代码改变了显示对象 mask 的 x 属性值:

+
+    let myMask:Rectangle = myDisplayObject.mask;
+    myMask.x += 10;
+    myDisplayObject.mask = myMask;//设置完 mask 的x、y、width、height值之后,一定要对myDisplayObject重新赋值 mask,不然会出问题。
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

matrix

+
matrix: Matrix
+ +
+
+

一个 Matrix 对象,其中包含更改显示对象的缩放、旋转和平移的值。
+ 注意:要改变一个显示对象矩阵的值,您必引用整个矩阵对象,然后将它重新赋值给显示对象的 matrix 属性。

+
+
+
example
+

以下代码改变了显示对象矩阵的tx属性值:

+
+    let myMatrix:Matrix = myDisplayObject.matrix;
+    myMatrix.tx += 10;
+    myDisplayObject.matrix = myMatrix;
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly measuredHeight

+
measuredHeight: number
+ +
+
+

测量高度

+
+
+
returns
+
+
member
+

{egret.Rectangle} egret.DisplayObject#measuredWidth

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
+
+
+
+ +

Readonly measuredWidth

+
measuredWidth: number
+ +
+
+

测量宽度

+
+
+
returns
+
+
member
+

{egret.Rectangle} egret.DisplayObject#measuredWidth

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
+
+
+
+ +

name

+
name: string
+ +
+
+

表示 DisplayObject 的实例名称。 + 通过调用父显示对象容器的 getChildByName() 方法,可以在父显示对象容器的子列表中标识该对象。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly numChildren

+
numChildren: number
+ +
+
+

返回此对象的子项数目。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly parent

+
parent: DisplayObjectContainer
+ +
+
+

表示包含此显示对象的 DisplayObjectContainer 对象。 + 使用 parent 属性可以指定高于显示列表层次结构中当前显示对象的显示对象的相对路径。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

rotation

+
rotation: number
+ +
+
+

表示 DisplayObject 实例距其原始方向的旋转程度,以度为单位。 + 从 0 到 180 的值表示顺时针方向旋转;从 0 到 -180 的值表示逆时针方向旋转。对于此范围之外的值,可以通过加上或 + 减去 360 获得该范围内的值。例如,myDisplayObject.rotation = 450语句与 myDisplayObject.rotation = 90 是相同的。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

scaleX

+
scaleX: number
+ +
+
+

表示从注册点开始应用的对象的水平缩放比例(百分比)。
+ 1.0 等于 100% 缩放。

+
+
+
default
+

1

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

scaleY

+
scaleY: number
+ +
+
+

表示从对象注册点开始应用的对象的垂直缩放比例(百分比)。1.0 是 100% 缩放。

+
+
+
default
+

1

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

scrollRect

+
scrollRect: Rectangle
+ +
+
+

显示对象的滚动矩形范围。显示对象被裁切为矩形定义的大小,当您更改 scrollRect 对象的 x 和 y 属性时,它会在矩形内滚动。 + 滚动的显示对象始终以整像素为增量进行滚动。您可以通过设置 scrollRect Rectangle 对象的 x 属性来左右滚动对象, 还可以通过设置 + scrollRect 对象的 y 属性来上下滚动对象。如果显示对象旋转了 90 度,并且您左右滚动它,则实际上显示对象会上下滚动。

+
+

注意:要改变一个显示对象 scrollRect 属性的值,您必引用整个 scrollRect 对象,然后将它重新赋值给显示对象的 scrollRect 属性。

+
+
example
+

以下代码改变了显示对象 scrollRect 的 x 属性值:

+
+    let myRectangle:Rectangle = myDisplayObject.scrollRect;
+    myRectangle.x += 10;
+    myDisplayObject.scrollRect = myRectangle;//设置完scrollRect的x、y、width、height值之后,一定要对myDisplayObject重新赋值scrollRect,不然会出问题。
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

skewX

+
skewX: number
+ +
+
+

表示DisplayObject的x方向斜切

+
+
+
member
+

{number} egret.DisplayObject#skewX

+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
+
+
+
+ +

skewY

+
skewY: number
+ +
+
+

表示DisplayObject的y方向斜切

+
+
+
member
+

{number} egret.DisplayObject#skewY

+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
+
+
+
+ +

sortableChildren

+
sortableChildren: boolean
+ +
+
+

允许对象使用 zIndex 排序

+
+
+
version
+

Egret 5.2.24

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly stage

+
stage: Stage
+ +
+
+

显示对象的舞台。 + 例如,您可以创建多个显示对象并加载到显示列表中,每个显示对象的 stage 属性是指向相同的 Stage 对象。
+ 如果显示对象未添加到显示列表,则其 stage 属性会设置为 null。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

tint

+
tint: number
+ +
+
+

给当前对象设置填充色

+
+
+
version
+

Egret 5.2.24

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

touchChildren

+
touchChildren: boolean
+ +
+
+

确定对象的子级是否支持触摸或用户输入设备。如果对象支持触摸或用户输入设备,用户可以通过使用触摸或用户输入设备与之交互。

+
+
+
default
+

true

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

touchEnabled

+
touchEnabled: boolean
+ +
+
+

指定此对象是否接收触摸或其他用户输入。默认值为 false,这表示默认情况下,显示列表上的任何 DisplayObject 实例都不会接收触摸事件或 + 其他用户输入事件。如果将 touchEnabled 设置为 false,则实例将不接收任何触摸事件(或其他用户输入事件)。显示列表上的该实例的任 + 何子级都不会受到影响。要更改显示列表上对象的所有子级的 touchEnabled 行为,请使用 DisplayObjectContainer.touchChildren。

+
+
+
see
+

egret.DisplayObjectContainer#touchChildren

+
+
default
+

false

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

visible

+
visible: boolean
+ +
+
+

显示对象是否可见。不可见的显示对象将被禁用。例如,如果实例的 visible 为 false,则无法接受触摸或用户交互操作。

+
+
+
default
+

true

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

width

+
width: number
+ +
+
+

表示显示对象的宽度,以像素为单位。宽度是根据显示对象内容的范围来计算的。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

x

+
x: number
+ +
+
+

表示 DisplayObject 实例相对于父级 DisplayObjectContainer 本地坐标的 x 坐标。
+ 如果该对象位于具有变形的 DisplayObjectContainer 内,则它也位于包含 DisplayObjectContainer 的本地坐标系中。 + 因此,对于逆时针旋转 90 度的 DisplayObjectContainer,该 DisplayObjectContainer 的子级将继承逆时针旋转 90 度的坐标系。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

y

+
y: number
+ +
+
+

表示 DisplayObject 实例相对于父级 DisplayObjectContainer 本地坐标的 y 坐标。
+ 如果该对象位于具有变形的 DisplayObjectContainer 内,则它也位于包含 DisplayObjectContainer 的本地坐标系中。 + 因此,对于逆时针旋转 90 度的 DisplayObjectContainer,该 DisplayObjectContainer 的子级将继承逆时针旋转 90 度的坐标系。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

zIndex

+
zIndex: number
+ +
+
+

设置对象的 Z 轴顺序(前后顺序)

+
+
+
version
+

Egret 5.2.24

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static Private $EVENT_ADD_TO_STAGE_LIST

+
$EVENT_ADD_TO_STAGE_LIST: DisplayObject[]
+ +
+
+
+
+ +

Static Private $EVENT_REMOVE_FROM_STAGE_LIST

+
$EVENT_REMOVE_FROM_STAGE_LIST: DisplayObject[]
+ +
+
+
+
+ +

Static Private $enterFrameCallBackList

+
$enterFrameCallBackList: DisplayObject[]
+ +
+
+
+
+ +

Static Private $renderCallBackList

+
$renderCallBackList: DisplayObject[]
+ +
+
+
+
+ +

Static _instance

+
_instance: Core
+ +
+
+

简化对内部类的全局内容实例的访问

+
+
+
+
+ +

Static content

+ + +
+
+

全局内容管理器加载任何应该停留在场景之间的资产

+
+
+
+
+ +

Static debugRenderEndabled

+
debugRenderEndabled: boolean = false
+ +
+
+

是否启用调试渲染

+
+
+
+
+ +

Static Private defaultTouchEnabled

+
defaultTouchEnabled: boolean
+ +
+
+
default
+

false

+
+
version
+

Egret 2.5

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static emitter

+ + +
+
+

核心发射器。只发出核心级别的事件

+
+
+
+
+ +

Static graphicsDevice

+
graphicsDevice: GraphicsDevice
+ +
+
+

全局访问图形设备

+
+
+
+
+
+

Accessors

+
+ +

Static Instance

+
    +
  • get Instance(): Core
  • +
+
    +
  • + +
    +
    +

    提供对单例/游戏实例的访问

    +
    +
    +

    Returns Core

    +
  • +
+
+
+ +

Static scene

+
    +
  • get scene(): Scene
  • +
  • set scene(value: Scene): void
  • +
+
    +
  • + +
    +
    +

    当前活动的场景。注意,如果设置了该设置,在更新结束之前场景实际上不会改变

    +
    +
    +

    Returns Scene

    +
  • +
  • + +
    +
    +

    当前活动的场景。注意,如果设置了该设置,在更新结束之前场景实际上不会改变

    +
    +
    +

    Parameters

    +
      +
    • +
      value: Scene
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+

Methods

+
+ +

Private $addListener

+
    +
  • $addListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number, dispatchOnce?: boolean): void
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    • +
      listener: Function
      +
    • +
    • +
      thisObject: any
      +
    • +
    • +
      Optional useCapture: boolean
      +
    • +
    • +
      Optional priority: number
      +
    • +
    • +
      Optional dispatchOnce: boolean
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

$cacheDirtyUp

+
    +
  • $cacheDirtyUp(): void
  • +
+ +
+
+ +

Private $childAdded

+
    +
  • $childAdded(child: DisplayObject, index: number): void
  • +
+ +
+
+ +

Private $childRemoved

+
    +
  • $childRemoved(child: DisplayObject, index: number): void
  • +
+ +
+
+ +

Private $dispatchPropagationEvent

+
    +
  • $dispatchPropagationEvent(event: Event, list: DisplayObject[], targetIndex: number): void
  • +
+ +
+
+ +

Private $doAddChild

+
    +
  • $doAddChild(child: DisplayObject, index: number, notifyListeners?: boolean): DisplayObject
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
    • +
    • +
      index: number
      +
    • +
    • +
      Optional notifyListeners: boolean
      +
    • +
    +

    Returns DisplayObject

    +
  • +
+
+
+ +

Private $doRemoveChild

+
    +
  • $doRemoveChild(index: number, notifyListeners?: boolean): DisplayObject
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      index: number
      +
    • +
    • +
      Optional notifyListeners: boolean
      +
    • +
    +

    Returns DisplayObject

    +
  • +
+
+
+ +

Private $getConcatenatedMatrix

+
    +
  • $getConcatenatedMatrix(): Matrix
  • +
+ +
+
+ +

Private $getConcatenatedMatrixAt

+
    +
  • $getConcatenatedMatrixAt(root: DisplayObject, matrix: Matrix): void
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      root: DisplayObject
      +
      +

      根节点显示对象

      +
      +
    • +
    • +
      matrix: Matrix
      +
      +

      目标显示对象相对于舞台的完整连接矩阵。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Private $getContentBounds

+
    +
  • $getContentBounds(): Rectangle
  • +
+ +
+
+ +

Private $getEventMap

+
    +
  • $getEventMap(useCapture?: boolean): any
  • +
+ +
+
+ +

Private $getHeight

+
    +
  • $getHeight(): number
  • +
+ +
+
+ +

Private $getInvertedConcatenatedMatrix

+
    +
  • $getInvertedConcatenatedMatrix(): Matrix
  • +
+ +
+
+ +

Private $getMatrix

+
    +
  • $getMatrix(): Matrix
  • +
+ +
+
+ +

Private $getOriginalBounds

+
    +
  • $getOriginalBounds(): Rectangle
  • +
+ +
+
+ +

Private $getPropagationList

+
    +
  • $getPropagationList(target: DisplayObject): DisplayObject[]
  • +
+ +
+
+ +

Private $getRenderNode

+
    +
  • $getRenderNode(): RenderNode
  • +
+ +
+
+ +

Private $getRotation

+
    +
  • $getRotation(): number
  • +
+ +
+
+ +

Private $getScaleX

+
    +
  • $getScaleX(): number
  • +
+ +
+
+ +

Private $getScaleY

+
    +
  • $getScaleY(): number
  • +
+ +
+
+ +

Private $getTouchChildren

+
    +
  • $getTouchChildren(): boolean
  • +
+ +
+
+ +

Private $getTouchEnabled

+
    +
  • $getTouchEnabled(): boolean
  • +
+ +
+
+ +

Private $getTransformedBounds

+
    +
  • $getTransformedBounds(targetCoordinateSpace: DisplayObject, resultRect?: Rectangle): Rectangle
  • +
+ +
+
+ +

Private $getWidth

+
    +
  • $getWidth(): number
  • +
+ +
+
+ +

Private $getX

+
    +
  • $getX(): number
  • +
+ +
+
+ +

Private $getY

+
    +
  • $getY(): number
  • +
+ +
+
+ +

Private $hitTest

+
    +
  • $hitTest(stageX: number, stageY: number): DisplayObject
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      stageX: number
      +
    • +
    • +
      stageY: number
      +
    • +
    +

    Returns DisplayObject

    +
  • +
+
+
+ +

$insertEventBin

+
    +
  • $insertEventBin(list: any[], type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number, dispatchOnce?: boolean): boolean
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      list: any[]
      +
    • +
    • +
      type: string
      +
    • +
    • +
      listener: Function
      +
    • +
    • +
      thisObject: any
      +
    • +
    • +
      Optional useCapture: boolean
      +
    • +
    • +
      Optional priority: number
      +
    • +
    • +
      Optional dispatchOnce: boolean
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Private $measureChildBounds

+
    +
  • $measureChildBounds(bounds: Rectangle): void
  • +
+ +
+
+ +

Private $measureContentBounds

+
    +
  • $measureContentBounds(bounds: Rectangle): void
  • +
+ +
+
+ +

Private $notifyListener

+
    +
  • $notifyListener(event: Event, capturePhase: boolean): boolean
  • +
+ +
+
+ +

Private $onAddToStage

+
    +
  • $onAddToStage(stage: Stage, nestLevel: number): void
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      stage: Stage
      +
    • +
    • +
      nestLevel: number
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Private $onRemoveFromStage

+
    +
  • $onRemoveFromStage(): void
  • +
+ +
+
+ +

$removeEventBin

+
    +
  • $removeEventBin(list: any[], listener: Function, thisObject: any): boolean
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      list: any[]
      +
    • +
    • +
      listener: Function
      +
    • +
    • +
      thisObject: any
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Private $setAlpha

+
    +
  • $setAlpha(value: number): void
  • +
+ +
+
+ +

Private $setAnchorOffsetX

+
    +
  • $setAnchorOffsetX(value: number): void
  • +
+ +
+
+ +

Private $setAnchorOffsetY

+
    +
  • $setAnchorOffsetY(value: number): void
  • +
+ +
+
+ +

$setHasDisplayList

+
    +
  • $setHasDisplayList(value: boolean): void
  • +
+ +
+
+ +

Private $setHeight

+
    +
  • $setHeight(value: number): void
  • +
+ +
+
+ +

Private $setMatrix

+
    +
  • $setMatrix(matrix: Matrix, needUpdateProperties?: boolean): void
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      matrix: Matrix
      +
    • +
    • +
      Optional needUpdateProperties: boolean
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Private $setParent

+
    +
  • $setParent(parent: DisplayObjectContainer): void
  • +
+ +
+
+ +

$setRotation

+
    +
  • $setRotation(value: number): void
  • +
+ +
+
+ +

Private $setScaleX

+
    +
  • $setScaleX(value: number): void
  • +
+ +
+
+ +

Private $setScaleY

+
    +
  • $setScaleY(value: number): void
  • +
+ +
+
+ +

Private $setSkewX

+
    +
  • $setSkewX(value: number): void
  • +
+ +
+
+ +

Private $setSkewY

+
    +
  • $setSkewY(value: number): void
  • +
+ +
+
+ +

Private $setTouchChildren

+
    +
  • $setTouchChildren(value: boolean): boolean
  • +
+ +
+
+ +

Private $setTouchEnabled

+
    +
  • $setTouchEnabled(value: boolean): void
  • +
+ +
+
+ +

$setVisible

+
    +
  • $setVisible(value: boolean): void
  • +
+ +
+
+ +

Private $setWidth

+
    +
  • $setWidth(value: number): void
  • +
+ +
+
+ +

Private $setX

+
    +
  • $setX(value: number): boolean
  • +
+ +
+
+ +

Private $setY

+
    +
  • $setY(value: number): boolean
  • +
+ +
+
+ +

$updateRenderMode

+
    +
  • $updateRenderMode(): void
  • +
+ +
+
+ +

Private $updateRenderNode

+
    +
  • $updateRenderNode(): void
  • +
+ +
+
+ +

Protected $updateUseTransform

+
    +
  • $updateUseTransform(): void
  • +
+ +
+
+ +

addChild

+
    +
  • addChild(child: DisplayObject): DisplayObject
  • +
+
    +
  • + +
    +
    +

    将一个 DisplayObject 子实例添加到该 DisplayObjectContainer 实例中。子项将被添加到该 DisplayObjectContainer 实例中其他 + 所有子项的前(上)面。(要将某子项添加到特定索引位置,请使用 addChildAt() 方法。)

    +
    +
    +
    see
    +

    #addChildAt()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
      +

      要作为该 DisplayObjectContainer 实例的子项添加的 DisplayObject 实例。

      +
      +
    • +
    +

    Returns DisplayObject

    +

    在 child 参数中传递的 DisplayObject 实例。

    +
  • +
+
+
+ +

addChildAt

+
    +
  • addChildAt(child: DisplayObject, index: number): DisplayObject
  • +
+
    +
  • + +
    +
    +

    将一个 DisplayObject 子实例添加到该 DisplayObjectContainer 实例中。该子项将被添加到指定的索引位置。索引为 0 表示该 + DisplayObjectContainer 对象的显示列表的后(底)部。如果添加一个已将其它显示对象容器作为父项的子对象,则会从其它显示对象容器的子列表中删除该对象。

    +
    +
    +
    see
    +

    #addChild()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
      +

      要作为该 DisplayObjectContainer 实例的子项添加的 DisplayObject 实例。

      +
      +
    • +
    • +
      index: number
      +
      +

      添加该子项的索引位置。 如果指定当前占用的索引位置,则该位置以及所有更高位置上的子对象会在子级列表中上移一个位置。

      +
      +
    • +
    +

    Returns DisplayObject

    +

    在 child 参数中传递的 DisplayObject 实例。

    +
  • +
+
+
+ +

addEventListener

+
    +
  • addEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): void
  • +
+
    +
  • + +
    +
    +
    inheritdoc
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    • +
      listener: Function
      +
    • +
    • +
      thisObject: any
      +
    • +
    • +
      Optional useCapture: boolean
      +
    • +
    • +
      Optional priority: number
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

contains

+
    +
  • contains(child: DisplayObject): boolean
  • +
+
    +
  • + +
    +
    +

    确定指定显示对象是 DisplayObjectContainer 实例的子项或该实例本身。搜索包括整个显示列表(其中包括此 DisplayObjectContainer 实例)。 + 孙项、曾孙项等,每项都返回 true。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
      +

      要测试的子对象。

      +
      +
    • +
    +

    Returns boolean

    +

    如果 child 对象是 DisplayObjectContainer 的子项或容器本身,则为 true;否则为 false。

    +
  • +
+
+
+ +

Protected createNativeDisplayObject

+
    +
  • createNativeDisplayObject(): void
  • +
+ +
+
+ +

dispatchEvent

+
    +
  • dispatchEvent(event: Event): boolean
  • +
+
    +
  • + +
    +
    +
    inheritdoc
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      event: Event
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

dispatchEventWith

+
    +
  • dispatchEventWith(type: string, bubbles?: boolean, data?: any, cancelable?: boolean): boolean
  • +
+
    +
  • + +
    +
    +

    派发一个指定参数的事件。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
      +

      事件类型

      +
      +
    • +
    • +
      Optional bubbles: boolean
      +
      +

      确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。

      +
      +
    • +
    • +
      Optional data: any
      +
      +

      事件data

      +
      +
    • +
    • +
      Optional cancelable: boolean
      +
      +

      确定是否可以取消 Event 对象。默认值为 false。

      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

draw

+
    +
  • draw(): Promise<void>
  • +
+ +
+
+ +

endDebugDraw

+
    +
  • endDebugDraw(): void
  • +
+ +
+
+ +

endDebugUpdate

+
    +
  • endDebugUpdate(): void
  • +
+ +
+
+ +

getBounds

+
    +
  • getBounds(resultRect?: Rectangle, calculateAnchor?: boolean): Rectangle
  • +
+
    +
  • + +
    +
    +

    获取显示对象的测量边界

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      Optional resultRect: Rectangle
      +
      +

      可选参数,传入用于保存结果的Rectangle对象,避免重复创建对象。

      +
      +
    • +
    • +
      Optional calculateAnchor: boolean
      +
      +

      可选参数,是否会计算锚点。

      +
      +
    • +
    +

    Returns Rectangle

    +
  • +
+
+
+ +

getChildAt

+
    +
  • getChildAt(index: number): DisplayObject
  • +
+
    +
  • + +
    +
    +

    返回位于指定索引处的子显示对象实例。

    +
    +
    +
    see
    +

    #getChildByName()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      index: number
      +
      +

      子对象的索引位置。

      +
      +
    • +
    +

    Returns DisplayObject

    +

    位于指定索引位置处的子显示对象。

    +
  • +
+
+
+ +

getChildByName

+
    +
  • getChildByName(name: string): DisplayObject
  • +
+
    +
  • + +
    +
    +

    返回具有指定名称的子显示对象。如果多个子显示对象具有指定名称,则该方法会返回子级列表中的第一个对象。 + getChildAt() 方法比 getChildByName() 方法快。getChildAt() 方法从缓存数组中访问子项,而 getChildByName() 方法则必须遍历链接的列表来访问子项。

    +
    +
    +
    see
    +

    #getChildAt()

    +
    +
    see
    +

    egret.DisplayObject#name

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +
      +

      要返回的子项的名称。

      +
      +
    • +
    +

    Returns DisplayObject

    +

    具有指定名称的子显示对象。

    +
  • +
+
+
+ +

getChildIndex

+
    +
  • getChildIndex(child: DisplayObject): number
  • +
+
    +
  • + +
    +
    +

    返回 DisplayObject 的 child 实例的索引位置。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
      +

      要测试的子对象。

      +
      +
    • +
    +

    Returns number

    +

    要查找的子显示对象的索引位置。

    +
  • +
+
+
+ +

getTransformedBounds

+
    +
  • getTransformedBounds(targetCoordinateSpace: DisplayObject, resultRect?: Rectangle): Rectangle
  • +
+
    +
  • + +
    +
    +

    返回一个矩形,该矩形定义相对于 targetCoordinateSpace 对象坐标系的显示对象区域。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      targetCoordinateSpace: DisplayObject
      +
      +

      定义要使用的坐标系的显示对象。

      +
      +
    • +
    • +
      Optional resultRect: Rectangle
      +
      +

      一个用于存储结果的可复用Rectangle实例,传入此参数能够减少内部创建对象的次数,从而获得更高的运行性能。

      +
      +
    • +
    +

    Returns Rectangle

    +

    定义与 targetCoordinateSpace 对象坐标系统相关的显示对象面积的矩形。

    +
  • +
+
+
+ +

globalToLocal

+
    +
  • globalToLocal(stageX?: number, stageY?: number, resultPoint?: Point): Point
  • +
+
    +
  • + +
    +
    +

    将从舞台(全局)坐标转换为显示对象的(本地)坐标。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      Optional stageX: number
      +
      +

      舞台坐标x

      +
      +
    • +
    • +
      Optional stageY: number
      +
      +

      舞台坐标y

      +
      +
    • +
    • +
      Optional resultPoint: Point
      +
      +

      一个用于存储结果的可复用 Point 实例,传入此参数能够减少内部创建对象的次数,从而获得更高的运行性能。

      +
      +
    • +
    +

    Returns Point

    +

    具有相对于显示对象的坐标的 Point 对象。

    +
  • +
+
+
+ +

hasEventListener

+
    +
  • hasEventListener(type: string): boolean
  • +
+
    +
  • + +
    +
    +
    inheritdoc
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

hitTestPoint

+
    +
  • hitTestPoint(x: number, y: number, shapeFlag?: boolean): boolean
  • +
+
    +
  • + +
    +
    +

    计算显示对象,以确定它是否与 x 和 y 参数指定的点重叠或相交。x 和 y 参数指定舞台的坐标空间中的点,而不是包含显示对象的显示对象容器中的点(除非显示对象容器是舞台)。 + 注意,不要在大量物体中使用精确碰撞像素检测,这回带来巨大的性能开销

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      x: number
      +
      +

      要测试的此对象的 x 坐标。

      +
      +
    • +
    • +
      y: number
      +
      +

      要测试的此对象的 y 坐标。

      +
      +
    • +
    • +
      Optional shapeFlag: boolean
      +
      +

      是检查对象 (true) 的实际像素,还是检查边框 (false) 的实际像素。

      +
      +
    • +
    +

    Returns boolean

    +

    如果显示对象与指定的点重叠或相交,则为 true;否则为 false。

    +
  • +
+
+
+ +

Protected initialize

+
    +
  • initialize(): void
  • +
+ +
+
+ +

localToGlobal

+
    +
  • localToGlobal(localX?: number, localY?: number, resultPoint?: Point): Point
  • +
+
    +
  • + +
    +
    +

    将显示对象的(本地)坐标转换为舞台(全局)坐标。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      Optional localX: number
      +
      +

      本地坐标 x

      +
      +
    • +
    • +
      Optional localY: number
      +
      +

      本地坐标 y

      +
      +
    • +
    • +
      Optional resultPoint: Point
      +
      +

      一个用于存储结果的可复用 Point 实例,传入此参数能够减少内部创建对象的次数,从而获得更高的运行性能。

      +
      +
    • +
    +

    Returns Point

    +

    一个具有相对于舞台坐标的 Point 对象。

    +
  • +
+
+
+ +

Private onAddToStage

+
    +
  • onAddToStage(): void
  • +
+ +
+
+ +

Protected onGraphicsDeviceReset

+
    +
  • onGraphicsDeviceReset(): void
  • +
+
    +
  • + +
    +
    +

    当屏幕大小发生改变时调用

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onOrientationChanged

+
    +
  • onOrientationChanged(): void
  • +
+ +
+
+ +

onSceneChanged

+
    +
  • onSceneChanged(): void
  • +
+
    +
  • + +
    +
    +

    在一个场景结束后,下一个场景开始之前调用

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

once

+
    +
  • once(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): void
  • +
+
    +
  • + +
    +
    +
    inheritdoc
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    • +
      listener: Function
      +
    • +
    • +
      thisObject: any
      +
    • +
    • +
      Optional useCapture: boolean
      +
    • +
    • +
      Optional priority: number
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

removeChild

+
    +
  • removeChild(child: DisplayObject): DisplayObject
  • +
+
    +
  • + +
    +
    +

    从 DisplayObjectContainer 实例的子列表中删除指定的 child DisplayObject 实例。将已删除子项的 parent 属性设置为 null; + 如果不存在对该子项的任何其它引用,则将该对象作为垃圾回收。DisplayObjectContainer 中该子项之上的任何显示对象的索引位置都减去 1。

    +
    +
    +
    see
    +

    #removeChildAt()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
      +

      要删除的 DisplayObject 实例。

      +
      +
    • +
    +

    Returns DisplayObject

    +

    在 child 参数中传递的 DisplayObject 实例。

    +
  • +
+
+
+ +

removeChildAt

+
    +
  • removeChildAt(index: number): DisplayObject
  • +
+
    +
  • + +
    +
    +

    从 DisplayObjectContainer 的子列表中指定的 index 位置删除子 DisplayObject。将已删除子项的 parent 属性设置为 null; + 如果没有对该子项的任何其他引用,则将该对象作为垃圾回收。DisplayObjectContainer 中该子项之上的任何显示对象的索引位置都减去 1。

    +
    +
    +
    see
    +

    #removeChild()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      index: number
      +
      +

      要删除的 DisplayObject 的子索引。

      +
      +
    • +
    +

    Returns DisplayObject

    +

    已删除的 DisplayObject 实例。

    +
  • +
+
+
+ +

removeChildren

+
    +
  • removeChildren(): void
  • +
+
    +
  • + +
    +
    +

    从 DisplayObjectContainer 实例的子级列表中删除所有 child DisplayObject 实例。

    +
    +
    +
    see
    +

    #removeChild()

    +
    +
    see
    +

    #removeChildAt()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

removeEventListener

+
    +
  • removeEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean): void
  • +
+
    +
  • + +
    +
    +
    inheritdoc
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    • +
      listener: Function
      +
    • +
    • +
      thisObject: any
      +
    • +
    • +
      Optional useCapture: boolean
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

setChildIndex

+
    +
  • setChildIndex(child: DisplayObject, index: number): void
  • +
+
    +
  • + +
    +
    +

    更改现有子项在显示对象容器中的位置。这会影响子对象的分层。

    +
    +
    +
    see
    +

    #addChildAt()

    +
    +
    see
    +

    #getChildAt()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
      +

      要为其更改索引编号的 DisplayObject 子实例。

      +
      +
    • +
    • +
      index: number
      +
      +

      生成的 child 显示对象的索引编号。当新的索引编号小于0或大于已有子元件数量时,新加入的DisplayObject对象将会放置于最上层。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

setChildrenSortMode

+
    +
  • setChildrenSortMode(value: string): void
  • +
+
    +
  • + +
    +
    +

    设置子项目的排序方式

    +
    +
    +
    see
    +

    egret.ChildrenSortMode

    +
    +
    version
    +

    Egret 5.2.19

    +
    +
    platform
    +

    Native

    +
    +
    language
    +

    en_US

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      value: string
      +
      +

      排序方式

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

sortChildren

+
    +
  • sortChildren(): void
  • +
+ +
+
+ +

startDebugDraw

+
    +
  • startDebugDraw(elapsedGameTime: number): void
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      elapsedGameTime: number
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

startDebugUpdate

+
    +
  • startDebugUpdate(): void
  • +
+ +
+
+ +

swapChildren

+
    +
  • swapChildren(child1: DisplayObject, child2: DisplayObject): void
  • +
+
    +
  • + +
    +
    +

    交换两个指定子对象的 Z 轴顺序(从前到后顺序)。显示对象容器中所有其他子对象的索引位置保持不变。

    +
    +
    +
    see
    +

    #swapChildrenAt()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child1: DisplayObject
      +
      +

      第一个子对象。

      +
      +
    • +
    • +
      child2: DisplayObject
      +
      +

      第二个子对象。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

swapChildrenAt

+
    +
  • swapChildrenAt(index1: number, index2: number): void
  • +
+
    +
  • + +
    +
    +

    在子级列表中两个指定的索引位置,交换子对象的 Z 轴顺序(前后顺序)。显示对象容器中所有其他子对象的索引位置保持不变。

    +
    +
    +
    see
    +

    #swapChildren()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      index1: number
      +
      +

      第一个子对象的索引位置。

      +
      +
    • +
    • +
      index2: number
      +
      +

      第二个子对象的索引位置。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Protected update

+
    +
  • update(): Promise<void>
  • +
+ +
+
+ +

willTrigger

+
    +
  • willTrigger(type: string): boolean
  • +
+
    +
  • + +
    +
    +
    inheritdoc
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Static getGlobalManager

+
    +
  • getGlobalManager<T>(type: any): T
  • +
+
    +
  • + +
    +
    +

    获取类型为T的全局管理器

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

Static registerGlobalManager

+ +
    +
  • + +
    +
    +

    添加一个全局管理器对象,它的更新方法将调用场景前的每一帧。

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

Static schedule

+
    +
  • schedule(timeInSeconds: number, repeats?: boolean, context?: any, onTime: (timer: ITimer) => void): Timer
  • +
+
    +
  • + +
    +
    +

    调度一个一次性或重复的计时器,该计时器将调用已传递的动作

    +
    +
    +

    Parameters

    +
      +
    • +
      timeInSeconds: number
      +
    • +
    • +
      Default value repeats: boolean = false
      +
    • +
    • +
      Default value context: any = null
      +
    • +
    • +
      onTime: (timer: ITimer) => void
      +
      +
      +
        +
      • + +
          +
        • +

          Parameters

          + +

          Returns void

          +
        • +
        +
      • +
      +
    • +
    +

    Returns Timer

    +
  • +
+
+
+ +

Static startCoroutine

+ +
    +
  • + +
    +
    +

    开始了一个协同程序。协程可以使用number延迟几秒,也可以使其他对startCoroutine的调用延迟几秒。 + 返回null将使协程在下一帧中被执行。

    +
    +
    +

    Parameters

    +
      +
    • +
      enumerator: Iterator<any>
      +
      +
      +
    • +
    +

    Returns CoroutineImpl

    +
  • +
+
+
+ +

Static startSceneTransition

+
    +
  • startSceneTransition<T>(sceneTransition: T): T
  • +
+
    +
  • + +
    +
    +

    临时运行SceneTransition,允许一个场景过渡到另一个平滑的自定义效果。

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      sceneTransition: T
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

Static unregisterGlobalManager

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Static property
  • +
  • Static method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected method
  • +
+
    +
  • Private method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_entity_.es.entity.html b/source/docs/classes/_ecs_entity_.es.entity.html new file mode 100644 index 00000000..398999dc --- /dev/null +++ b/source/docs/classes/_ecs_entity_.es.entity.html @@ -0,0 +1,1662 @@ + + + + + + Entity | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Entity

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Entity +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Entity(name: string): Entity
  • +
+ +
+
+
+

Properties

+
+ +

Private _enabled

+
_enabled: boolean = true
+ +
+
+ +

_isDestroyed

+
_isDestroyed: boolean
+ +
+
+ +

Private _tag

+
_tag: number = 0
+ +
+
+ +

Private _updateOrder

+
_updateOrder: number = 0
+ +
+
+ +

componentBits

+
componentBits: BitSet
+ +
+
+ +

Readonly components

+
components: ComponentList
+ +
+
+

当前附加到此实体的所有组件的列表

+
+
+
+
+ +

Readonly id

+
id: number
+ +
+
+

此实体的唯一标识

+
+
+
+
+ +

name

+
name: string
+ +
+
+

实体名称。用于在场景范围内搜索实体

+
+
+
+
+ +

scene

+
scene: Scene
+ +
+
+

当前实体所属的场景

+
+
+
+
+ +

Readonly transform

+
transform: Transform
+ +
+
+

封装实体的位置/旋转/缩放,并允许设置一个高层结构

+
+
+
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

指定应该调用这个entity update方法的频率。1表示每一帧,2表示每一帧,以此类推

+
+
+
+
+ +

Static _idGenerator

+
_idGenerator: number = 0
+ +
+
+
+

Accessors

+
+ +

childCount

+
    +
  • get childCount(): number
  • +
+ +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    启用/禁用实体。当禁用碰撞器从物理系统和组件中移除时,方法将不会被调用

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    启用/禁用实体。当禁用碰撞器从物理系统和组件中移除时,方法将不会被调用

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

isDestroyed

+
    +
  • get isDestroyed(): boolean
  • +
+
    +
  • + +
    +
    +

    如果调用了destroy,那么在下一次处理实体之前这将一直为true

    +
    +
    +

    Returns boolean

    +
  • +
+
+
+ +

localPosition

+
    +
  • get localPosition(): Vector2
  • +
  • set localPosition(value: Vector2): void
  • +
+ +
+
+ +

localRotation

+
    +
  • get localRotation(): number
  • +
  • set localRotation(value: number): void
  • +
+ +
+
+ +

localRotationDegrees

+
    +
  • get localRotationDegrees(): number
  • +
  • set localRotationDegrees(value: number): void
  • +
+ +
+
+ +

localScale

+
    +
  • get localScale(): Vector2
  • +
  • set localScale(value: Vector2): void
  • +
+ +
+
+ +

localToWorldTransform

+
    +
  • get localToWorldTransform(): Matrix2D
  • +
+ +
+
+ +

parent

+ + +
+
+ +

position

+ + +
+
+ +

rotation

+
    +
  • get rotation(): number
  • +
  • set rotation(value: number): void
  • +
+ +
+
+ +

rotationDegrees

+
    +
  • get rotationDegrees(): number
  • +
  • set rotationDegrees(value: number): void
  • +
+ +
+
+ +

scale

+ + +
+
+ +

tag

+
    +
  • get tag(): number
  • +
  • set tag(value: number): void
  • +
+
    +
  • + +
    +
    +

    你可以随意使用。稍后可以使用它来查询场景中具有特定标记的所有实体

    +
    +
    +

    Returns number

    +
  • +
  • + +
    +
    +

    你可以随意使用。稍后可以使用它来查询场景中具有特定标记的所有实体

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+
    +
  • + +
    +
    +

    更新此实体的顺序。updateOrder还用于对scene.entities上的标签列表进行排序

    +
    +
    +

    Returns number

    +
  • +
  • + +
    +
    +

    更新此实体的顺序。updateOrder还用于对scene.entities上的标签列表进行排序

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

worldInverseTransform

+
    +
  • get worldInverseTransform(): Matrix2D
  • +
+ +
+
+ +

worldToLocalTransform

+
    +
  • get worldToLocalTransform(): Matrix2D
  • +
+ +
+
+
+

Methods

+
+ +

addComponent

+
    +
  • addComponent<T>(component: T): T
  • +
+
    +
  • + +
    +
    +

    将组件添加到组件列表中。返回组件。

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      component: T
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

attachToScene

+
    +
  • attachToScene(newScene: Scene): void
  • +
+
    +
  • + +
    +
    +

    将一个先前分离的实体附加到一个新的场景

    +
    +
    +

    Parameters

    +
      +
    • +
      newScene: Scene
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

compareTo

+
    +
  • compareTo(other: Entity): number
  • +
+ +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+
    +
  • + +
    +
    +

    在默认渲染器中,如果Core.debugRenderEnabled为true,则调用。自定义渲染器可以选择是否调用它。

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

destroy

+
    +
  • destroy(): void
  • +
+
    +
  • + +
    +
    +

    从场景中删除实体并销毁所有子元素

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

detachFromScene

+
    +
  • detachFromScene(): void
  • +
+
    +
  • + +
    +
    +

    将实体从场景中分离。下面的生命周期方法将被调用在组件上:OnRemovedFromEntity

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

getComponent

+
    +
  • getComponent<T>(type: any): T
  • +
+
    +
  • + +
    +
    +

    获取类型T的第一个组件并返回它。如果没有找到组件,则返回null。

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

getComponents

+
    +
  • getComponents(typeName: string | any, componentList?: any): any
  • +
+
    +
  • + +
    +
    +

    获取typeName类型的所有组件,但不使用列表分配

    +
    +
    +

    Parameters

    +
      +
    • +
      typeName: string | any
      +
    • +
    • +
      Optional componentList: any
      +
      +
      +
    • +
    +

    Returns any

    +
  • +
+
+
+ +

getOrCreateComponent

+
    +
  • getOrCreateComponent<T>(type: T): T
  • +
+
    +
  • + +
    +
    +

    获取类型T的第一个组件并返回它。如果没有找到组件,将创建组件。

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: T
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

hasComponent

+
    +
  • hasComponent<T>(type: any): boolean
  • +
+
    +
  • + +
    +
    +

    检查实体是否具有该组件

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

onAddedToScene

+
    +
  • onAddedToScene(): void
  • +
+
    +
  • + +
    +
    +

    在提交了所有挂起的实体更改后,将此实体添加到场景时调用

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onRemovedFromScene

+
    +
  • onRemovedFromScene(): void
  • +
+
    +
  • + +
    +
    +

    当此实体从场景中删除时调用

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onTransformChanged

+
    +
  • onTransformChanged(comp: Component): void
  • +
+ +
+
+ +

removeAllComponents

+
    +
  • removeAllComponents(): void
  • +
+
    +
  • + +
    +
    +

    从实体中删除所有组件

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

removeComponent

+
    +
  • removeComponent(component: Component): void
  • +
+
    +
  • + +
    +
    +

    从组件列表中删除组件

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

removeComponentForType

+
    +
  • removeComponentForType<T>(type: any): boolean
  • +
+
    +
  • + +
    +
    +

    从组件列表中删除类型为T的第一个组件

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+
    +
  • + +
    +
    +

    设置实体的启用状态。当禁用碰撞器从物理系统和组件中移除时,方法将不会被调用

    +
    +
    +

    Parameters

    +
      +
    • +
      isEnabled: boolean
      +
      +
      +
    • +
    +

    Returns this

    +
  • +
+
+
+ +

setTag

+
    +
  • setTag(tag: number): Entity
  • +
+
    +
  • + +
    +
    +

    设置实体的标记

    +
    +
    +

    Parameters

    +
      +
    • +
      tag: number
      +
      +
      +
    • +
    +

    Returns Entity

    +
  • +
+
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+
    +
  • + +
    +
    +

    设置此实体的更新顺序。updateOrder还用于对scene.entities上的标签列表进行排序

    +
    +
    +

    Parameters

    +
      +
    • +
      updateOrder: number
      +
      +
      +
    • +
    +

    Returns this

    +
  • +
+
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+
    +
  • + +
    +
    +

    每帧进行调用进行更新组件

    +
    +
    +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_scene_.es.scene.html b/source/docs/classes/_ecs_scene_.es.scene.html new file mode 100644 index 00000000..225ca86d --- /dev/null +++ b/source/docs/classes/_ecs_scene_.es.scene.html @@ -0,0 +1,6225 @@ + + + + + + Scene | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Scene

+
+
+
+
+
+
+
+
+
+

场景

+
+
+
+
+

Hierarchy

+
    +
  • + DisplayObjectContainer +
      +
    • + Scene +
    • +
    +
  • +
+
+
+

Implements

+
    +
  • IHashObject
  • +
  • IEventDispatcher
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $EventDispatcher

+
$EventDispatcher: Object
+ +
+
+
+
+ +

Private $alpha

+
$alpha: number
+ +
+
+
+
+ +

$anchorOffsetX

+
$anchorOffsetX: number
+ +
+
+ +

$anchorOffsetY

+
$anchorOffsetY: number
+ +
+
+ +

Private $blendMode

+
$blendMode: number
+ +
+
+
+
+ +

$cacheDirty

+
$cacheDirty: boolean
+ +
+
+ +

Private $children

+
$children: DisplayObject[]
+ +
+
+
+
+ +

Private $displayList

+
$displayList: DisplayList
+ +
+
+
+
+ +

$explicitHeight

+
$explicitHeight: number
+ +
+
+ +

$explicitWidth

+
$explicitWidth: number
+ +
+
+ +

$filters

+
$filters: Array<Filter | CustomFilter>
+ +
+
+ +

Private $hasAddToStage

+
$hasAddToStage: boolean
+ +
+
+
+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Private $lastSortedIndex

+
$lastSortedIndex: number
+ +
+
+
+
+ +

Private $mask

+
$mask: DisplayObject
+ +
+
+
+
+ +

Private $maskRect

+
$maskRect: Rectangle
+ +
+
+
+
+ +

Private $maskedObject

+
$maskedObject: DisplayObject
+ +
+
+
+
+ +

$nativeDisplayObject

+
$nativeDisplayObject: NativeDisplayObject
+ +
+
+ +

Private $nestLevel

+
$nestLevel: number
+ +
+
+
+
+ +

Private $parent

+
$parent: DisplayObjectContainer
+ +
+
+
+
+ +

Private $parentDisplayList

+
$parentDisplayList: DisplayList
+ +
+
+
+
+ +

$renderDirty

+
$renderDirty: boolean
+ +
+
+ +

$renderMode

+
$renderMode: RenderMode
+ +
+
+ +

Private $renderNode

+
$renderNode: RenderNode
+ +
+
+
+
+ +

Private $scrollRect

+
$scrollRect: Rectangle
+ +
+
+
+
+ +

Private $sortDirty

+
$sortDirty: boolean
+ +
+
+
+
+ +

Private $stage

+
$stage: Stage
+ +
+
+
+
+ +

Private $tintRGB

+
$tintRGB: number
+ +
+
+
+
+ +

$touchChildren

+
$touchChildren: boolean
+ +
+
+ +

$touchEnabled

+
$touchEnabled: boolean
+ +
+
+ +

$useTranslate

+
$useTranslate: boolean
+ +
+
+ +

Private $visible

+
$visible: boolean
+ +
+
+
+
+ +

$x

+
$x: number
+ +
+
+ +

$y

+
$y: number
+ +
+
+ +

_didSceneBegin

+
_didSceneBegin: any
+ +
+
+ +

Readonly _postProcessors

+
_postProcessors: PostProcessor[] = []
+ +
+
+ +

_renderers

+
_renderers: Renderer[] = []
+ +
+
+ +

Readonly _sceneComponents

+
_sceneComponents: SceneComponent[] = []
+ +
+
+ +

_screenshotRequestCallback

+
_screenshotRequestCallback: Function
+ +
+
+ +

alpha

+
alpha: number
+ +
+
+

表示指定对象的 Alpha 透明度值。 + 有效值为 0(完全透明)到 1(完全不透明)。alpha 设置为 0 的显示对象是可触摸的,即使它们不可见。

+
+
+
default
+

1

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

anchorOffsetX

+
anchorOffsetX: number
+ +
+
+

表示从对象绝对锚点X。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

anchorOffsetY

+
anchorOffsetY: number
+ +
+
+

表示从对象绝对锚点Y。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

blendMode

+
blendMode: string
+ +
+
+

BlendMode 枚举中的一个值,用于指定要使用的混合模式,确定如何将一个源(新的)图像绘制到目标(已有)的图像上
+ 如果尝试将此属性设置为无效值,则运行时会将此值设置为 BlendMode.NORMAL。

+
+
+
default
+

egret.BlendMode.NORMAL

+
+
see
+

egret.BlendMode

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

cacheAsBitmap

+
cacheAsBitmap: boolean
+ +
+
+

如果设置为 true,则 Egret 运行时将缓存显示对象的内部位图表示形式。此缓存可以提高包含复杂矢量内容的显示对象的性能。 + 将 cacheAsBitmap 属性设置为 true 后,呈现并不更改,但是,显示对象将自动执行像素贴紧。执行速度可能会大大加快, + 具体取决于显示对象内容的复杂性。最好将 cacheAsBitmap 属性与主要具有静态内容且不频繁缩放或旋转的显示对象一起使用。
+ 注意:在内存超过上限的情况下,即使将 cacheAsBitmap 属性设置为 true,显示对象也不使用位图缓存。

+
+
+
default
+

false

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

camera

+
camera: Camera
+ +
+
+

默认场景摄像机

+
+
+
+
+ +

Readonly content

+ + +
+
+

场景特定内容管理器。使用它来加载仅由这个场景需要的任何资源。如果你有全局/多场景资源,你可以使用SceneManager.content。 + contentManager来加载它们,因为Nez不会卸载它们。

+
+
+
+
+ +

dynamicBatch

+
dynamicBatch: boolean = false
+ +
+
+

动态合批

+
+
+
+
+ +

enablePostProcessing

+
enablePostProcessing: boolean = true
+ +
+
+

全局切换后处理器

+
+
+
+
+ +

Readonly entities

+
entities: EntityList
+ +
+
+

这个场景中的实体列表

+
+
+
+
+ +

Readonly entityProcessors

+
entityProcessors: EntityProcessorList
+ +
+
+

管理所有实体处理器

+
+
+
+
+ +

filters

+
filters: Array<Filter | CustomFilter>
+ +
+
+

包含当前与显示对象关联的每个滤镜对象的索引数组。

+
+
+
version
+

Egret 3.1.0

+
+
platform
+

Web

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

height

+
height: number
+ +
+
+

表示显示对象的高度,以像素为单位。高度是根据显示对象内容的范围来计算的。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

mask

+
mask: DisplayObject | Rectangle
+ +
+
+

调用显示对象被指定的 mask 对象遮罩。要确保当舞台缩放时蒙版仍然有效,mask 显示对象必须处于显示列表的活动部分。 + 但不绘制 mask 对象本身。将 mask 设置为 null 可删除蒙版。要能够缩放遮罩对象,它必须在显示列表中。要能够拖动蒙版 + 对象,它必须在显示列表中。
+ 注意:单个 mask 对象不能用于遮罩多个执行调用的显示对象。在将 mask 分配给第二个显示对象时,会撤消其作为第一个对象的遮罩, + 该对象的 mask 属性将变为 null。

+
+

下面例子为 mask 为 Rectangle 类型对象,这种情况下,修改 mask 的值后,一定要对 myDisplayObject 重新赋值 mask,不然会出问题。

+
+
example
+

以下代码改变了显示对象 mask 的 x 属性值:

+
+    let myMask:Rectangle = myDisplayObject.mask;
+    myMask.x += 10;
+    myDisplayObject.mask = myMask;//设置完 mask 的x、y、width、height值之后,一定要对myDisplayObject重新赋值 mask,不然会出问题。
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

matrix

+
matrix: Matrix
+ +
+
+

一个 Matrix 对象,其中包含更改显示对象的缩放、旋转和平移的值。
+ 注意:要改变一个显示对象矩阵的值,您必引用整个矩阵对象,然后将它重新赋值给显示对象的 matrix 属性。

+
+
+
example
+

以下代码改变了显示对象矩阵的tx属性值:

+
+    let myMatrix:Matrix = myDisplayObject.matrix;
+    myMatrix.tx += 10;
+    myDisplayObject.matrix = myMatrix;
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly measuredHeight

+
measuredHeight: number
+ +
+
+

测量高度

+
+
+
returns
+
+
member
+

{egret.Rectangle} egret.DisplayObject#measuredWidth

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
+
+
+
+ +

Readonly measuredWidth

+
measuredWidth: number
+ +
+
+

测量宽度

+
+
+
returns
+
+
member
+

{egret.Rectangle} egret.DisplayObject#measuredWidth

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
+
+
+
+ +

name

+
name: string
+ +
+
+

表示 DisplayObject 的实例名称。 + 通过调用父显示对象容器的 getChildByName() 方法,可以在父显示对象容器的子列表中标识该对象。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly numChildren

+
numChildren: number
+ +
+
+

返回此对象的子项数目。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly parent

+
parent: DisplayObjectContainer
+ +
+
+

表示包含此显示对象的 DisplayObjectContainer 对象。 + 使用 parent 属性可以指定高于显示列表层次结构中当前显示对象的显示对象的相对路径。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly renderableComponents

+
renderableComponents: RenderableComponentList
+ +
+
+

管理当前在场景实体上的所有可呈现组件的列表

+
+
+
+
+ +

rotation

+
rotation: number
+ +
+
+

表示 DisplayObject 实例距其原始方向的旋转程度,以度为单位。 + 从 0 到 180 的值表示顺时针方向旋转;从 0 到 -180 的值表示逆时针方向旋转。对于此范围之外的值,可以通过加上或 + 减去 360 获得该范围内的值。例如,myDisplayObject.rotation = 450语句与 myDisplayObject.rotation = 90 是相同的。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

scaleX

+
scaleX: number
+ +
+
+

表示从注册点开始应用的对象的水平缩放比例(百分比)。
+ 1.0 等于 100% 缩放。

+
+
+
default
+

1

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

scaleY

+
scaleY: number
+ +
+
+

表示从对象注册点开始应用的对象的垂直缩放比例(百分比)。1.0 是 100% 缩放。

+
+
+
default
+

1

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

scrollRect

+
scrollRect: Rectangle
+ +
+
+

显示对象的滚动矩形范围。显示对象被裁切为矩形定义的大小,当您更改 scrollRect 对象的 x 和 y 属性时,它会在矩形内滚动。 + 滚动的显示对象始终以整像素为增量进行滚动。您可以通过设置 scrollRect Rectangle 对象的 x 属性来左右滚动对象, 还可以通过设置 + scrollRect 对象的 y 属性来上下滚动对象。如果显示对象旋转了 90 度,并且您左右滚动它,则实际上显示对象会上下滚动。

+
+

注意:要改变一个显示对象 scrollRect 属性的值,您必引用整个 scrollRect 对象,然后将它重新赋值给显示对象的 scrollRect 属性。

+
+
example
+

以下代码改变了显示对象 scrollRect 的 x 属性值:

+
+    let myRectangle:Rectangle = myDisplayObject.scrollRect;
+    myRectangle.x += 10;
+    myDisplayObject.scrollRect = myRectangle;//设置完scrollRect的x、y、width、height值之后,一定要对myDisplayObject重新赋值scrollRect,不然会出问题。
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

skewX

+
skewX: number
+ +
+
+

表示DisplayObject的x方向斜切

+
+
+
member
+

{number} egret.DisplayObject#skewX

+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
+
+
+
+ +

skewY

+
skewY: number
+ +
+
+

表示DisplayObject的y方向斜切

+
+
+
member
+

{number} egret.DisplayObject#skewY

+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
+
+
+
+ +

sortableChildren

+
sortableChildren: boolean
+ +
+
+

允许对象使用 zIndex 排序

+
+
+
version
+

Egret 5.2.24

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly stage

+
stage: Stage
+ +
+
+

显示对象的舞台。 + 例如,您可以创建多个显示对象并加载到显示列表中,每个显示对象的 stage 属性是指向相同的 Stage 对象。
+ 如果显示对象未添加到显示列表,则其 stage 属性会设置为 null。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

tint

+
tint: number
+ +
+
+

给当前对象设置填充色

+
+
+
version
+

Egret 5.2.24

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

touchChildren

+
touchChildren: boolean
+ +
+
+

确定对象的子级是否支持触摸或用户输入设备。如果对象支持触摸或用户输入设备,用户可以通过使用触摸或用户输入设备与之交互。

+
+
+
default
+

true

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

touchEnabled

+
touchEnabled: boolean
+ +
+
+

指定此对象是否接收触摸或其他用户输入。默认值为 false,这表示默认情况下,显示列表上的任何 DisplayObject 实例都不会接收触摸事件或 + 其他用户输入事件。如果将 touchEnabled 设置为 false,则实例将不接收任何触摸事件(或其他用户输入事件)。显示列表上的该实例的任 + 何子级都不会受到影响。要更改显示列表上对象的所有子级的 touchEnabled 行为,请使用 DisplayObjectContainer.touchChildren。

+
+
+
see
+

egret.DisplayObjectContainer#touchChildren

+
+
default
+

false

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

visible

+
visible: boolean
+ +
+
+

显示对象是否可见。不可见的显示对象将被禁用。例如,如果实例的 visible 为 false,则无法接受触摸或用户交互操作。

+
+
+
default
+

true

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

width

+
width: number
+ +
+
+

表示显示对象的宽度,以像素为单位。宽度是根据显示对象内容的范围来计算的。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

x

+
x: number
+ +
+
+

表示 DisplayObject 实例相对于父级 DisplayObjectContainer 本地坐标的 x 坐标。
+ 如果该对象位于具有变形的 DisplayObjectContainer 内,则它也位于包含 DisplayObjectContainer 的本地坐标系中。 + 因此,对于逆时针旋转 90 度的 DisplayObjectContainer,该 DisplayObjectContainer 的子级将继承逆时针旋转 90 度的坐标系。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

y

+
y: number
+ +
+
+

表示 DisplayObject 实例相对于父级 DisplayObjectContainer 本地坐标的 y 坐标。
+ 如果该对象位于具有变形的 DisplayObjectContainer 内,则它也位于包含 DisplayObjectContainer 的本地坐标系中。 + 因此,对于逆时针旋转 90 度的 DisplayObjectContainer,该 DisplayObjectContainer 的子级将继承逆时针旋转 90 度的坐标系。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

zIndex

+
zIndex: number
+ +
+
+

设置对象的 Z 轴顺序(前后顺序)

+
+
+
version
+

Egret 5.2.24

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static Private $EVENT_ADD_TO_STAGE_LIST

+
$EVENT_ADD_TO_STAGE_LIST: DisplayObject[]
+ +
+
+
+
+ +

Static Private $EVENT_REMOVE_FROM_STAGE_LIST

+
$EVENT_REMOVE_FROM_STAGE_LIST: DisplayObject[]
+ +
+
+
+
+ +

Static Private $enterFrameCallBackList

+
$enterFrameCallBackList: DisplayObject[]
+ +
+
+
+
+ +

Static Private $renderCallBackList

+
$renderCallBackList: DisplayObject[]
+ +
+
+
+
+ +

Static Private defaultTouchEnabled

+
defaultTouchEnabled: boolean
+ +
+
+
default
+

false

+
+
version
+

Egret 2.5

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+
+

Methods

+
+ +

Private $addListener

+
    +
  • $addListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number, dispatchOnce?: boolean): void
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    • +
      listener: Function
      +
    • +
    • +
      thisObject: any
      +
    • +
    • +
      Optional useCapture: boolean
      +
    • +
    • +
      Optional priority: number
      +
    • +
    • +
      Optional dispatchOnce: boolean
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

$cacheDirtyUp

+
    +
  • $cacheDirtyUp(): void
  • +
+ +
+
+ +

Private $childAdded

+
    +
  • $childAdded(child: DisplayObject, index: number): void
  • +
+ +
+
+ +

Private $childRemoved

+
    +
  • $childRemoved(child: DisplayObject, index: number): void
  • +
+ +
+
+ +

Private $dispatchPropagationEvent

+
    +
  • $dispatchPropagationEvent(event: Event, list: DisplayObject[], targetIndex: number): void
  • +
+ +
+
+ +

Private $doAddChild

+
    +
  • $doAddChild(child: DisplayObject, index: number, notifyListeners?: boolean): DisplayObject
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
    • +
    • +
      index: number
      +
    • +
    • +
      Optional notifyListeners: boolean
      +
    • +
    +

    Returns DisplayObject

    +
  • +
+
+
+ +

Private $doRemoveChild

+
    +
  • $doRemoveChild(index: number, notifyListeners?: boolean): DisplayObject
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      index: number
      +
    • +
    • +
      Optional notifyListeners: boolean
      +
    • +
    +

    Returns DisplayObject

    +
  • +
+
+
+ +

Private $getConcatenatedMatrix

+
    +
  • $getConcatenatedMatrix(): Matrix
  • +
+ +
+
+ +

Private $getConcatenatedMatrixAt

+
    +
  • $getConcatenatedMatrixAt(root: DisplayObject, matrix: Matrix): void
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      root: DisplayObject
      +
      +

      根节点显示对象

      +
      +
    • +
    • +
      matrix: Matrix
      +
      +

      目标显示对象相对于舞台的完整连接矩阵。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Private $getContentBounds

+
    +
  • $getContentBounds(): Rectangle
  • +
+ +
+
+ +

Private $getEventMap

+
    +
  • $getEventMap(useCapture?: boolean): any
  • +
+ +
+
+ +

Private $getHeight

+
    +
  • $getHeight(): number
  • +
+ +
+
+ +

Private $getInvertedConcatenatedMatrix

+
    +
  • $getInvertedConcatenatedMatrix(): Matrix
  • +
+ +
+
+ +

Private $getMatrix

+
    +
  • $getMatrix(): Matrix
  • +
+ +
+
+ +

Private $getOriginalBounds

+
    +
  • $getOriginalBounds(): Rectangle
  • +
+ +
+
+ +

Private $getPropagationList

+
    +
  • $getPropagationList(target: DisplayObject): DisplayObject[]
  • +
+ +
+
+ +

Private $getRenderNode

+
    +
  • $getRenderNode(): RenderNode
  • +
+ +
+
+ +

Private $getRotation

+
    +
  • $getRotation(): number
  • +
+ +
+
+ +

Private $getScaleX

+
    +
  • $getScaleX(): number
  • +
+ +
+
+ +

Private $getScaleY

+
    +
  • $getScaleY(): number
  • +
+ +
+
+ +

Private $getTouchChildren

+
    +
  • $getTouchChildren(): boolean
  • +
+ +
+
+ +

Private $getTouchEnabled

+
    +
  • $getTouchEnabled(): boolean
  • +
+ +
+
+ +

Private $getTransformedBounds

+
    +
  • $getTransformedBounds(targetCoordinateSpace: DisplayObject, resultRect?: Rectangle): Rectangle
  • +
+ +
+
+ +

Private $getWidth

+
    +
  • $getWidth(): number
  • +
+ +
+
+ +

Private $getX

+
    +
  • $getX(): number
  • +
+ +
+
+ +

Private $getY

+
    +
  • $getY(): number
  • +
+ +
+
+ +

Private $hitTest

+
    +
  • $hitTest(stageX: number, stageY: number): DisplayObject
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      stageX: number
      +
    • +
    • +
      stageY: number
      +
    • +
    +

    Returns DisplayObject

    +
  • +
+
+
+ +

$insertEventBin

+
    +
  • $insertEventBin(list: any[], type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number, dispatchOnce?: boolean): boolean
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      list: any[]
      +
    • +
    • +
      type: string
      +
    • +
    • +
      listener: Function
      +
    • +
    • +
      thisObject: any
      +
    • +
    • +
      Optional useCapture: boolean
      +
    • +
    • +
      Optional priority: number
      +
    • +
    • +
      Optional dispatchOnce: boolean
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Private $measureChildBounds

+
    +
  • $measureChildBounds(bounds: Rectangle): void
  • +
+ +
+
+ +

Private $measureContentBounds

+
    +
  • $measureContentBounds(bounds: Rectangle): void
  • +
+ +
+
+ +

Private $notifyListener

+
    +
  • $notifyListener(event: Event, capturePhase: boolean): boolean
  • +
+ +
+
+ +

Private $onAddToStage

+
    +
  • $onAddToStage(stage: Stage, nestLevel: number): void
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      stage: Stage
      +
    • +
    • +
      nestLevel: number
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Private $onRemoveFromStage

+
    +
  • $onRemoveFromStage(): void
  • +
+ +
+
+ +

$removeEventBin

+
    +
  • $removeEventBin(list: any[], listener: Function, thisObject: any): boolean
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      list: any[]
      +
    • +
    • +
      listener: Function
      +
    • +
    • +
      thisObject: any
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Private $setAlpha

+
    +
  • $setAlpha(value: number): void
  • +
+ +
+
+ +

Private $setAnchorOffsetX

+
    +
  • $setAnchorOffsetX(value: number): void
  • +
+ +
+
+ +

Private $setAnchorOffsetY

+
    +
  • $setAnchorOffsetY(value: number): void
  • +
+ +
+
+ +

$setHasDisplayList

+
    +
  • $setHasDisplayList(value: boolean): void
  • +
+ +
+
+ +

Private $setHeight

+
    +
  • $setHeight(value: number): void
  • +
+ +
+
+ +

Private $setMatrix

+
    +
  • $setMatrix(matrix: Matrix, needUpdateProperties?: boolean): void
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      matrix: Matrix
      +
    • +
    • +
      Optional needUpdateProperties: boolean
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Private $setParent

+
    +
  • $setParent(parent: DisplayObjectContainer): void
  • +
+ +
+
+ +

$setRotation

+
    +
  • $setRotation(value: number): void
  • +
+ +
+
+ +

Private $setScaleX

+
    +
  • $setScaleX(value: number): void
  • +
+ +
+
+ +

Private $setScaleY

+
    +
  • $setScaleY(value: number): void
  • +
+ +
+
+ +

Private $setSkewX

+
    +
  • $setSkewX(value: number): void
  • +
+ +
+
+ +

Private $setSkewY

+
    +
  • $setSkewY(value: number): void
  • +
+ +
+
+ +

Private $setTouchChildren

+
    +
  • $setTouchChildren(value: boolean): boolean
  • +
+ +
+
+ +

Private $setTouchEnabled

+
    +
  • $setTouchEnabled(value: boolean): void
  • +
+ +
+
+ +

$setVisible

+
    +
  • $setVisible(value: boolean): void
  • +
+ +
+
+ +

Private $setWidth

+
    +
  • $setWidth(value: number): void
  • +
+ +
+
+ +

Private $setX

+
    +
  • $setX(value: number): boolean
  • +
+ +
+
+ +

Private $setY

+
    +
  • $setY(value: number): boolean
  • +
+ +
+
+ +

$updateRenderMode

+
    +
  • $updateRenderMode(): void
  • +
+ +
+
+ +

Private $updateRenderNode

+
    +
  • $updateRenderNode(): void
  • +
+ +
+
+ +

Protected $updateUseTransform

+
    +
  • $updateUseTransform(): void
  • +
+ +
+
+ +

addChild

+
    +
  • addChild(child: DisplayObject): DisplayObject
  • +
+
    +
  • + +
    +
    +

    将一个 DisplayObject 子实例添加到该 DisplayObjectContainer 实例中。子项将被添加到该 DisplayObjectContainer 实例中其他 + 所有子项的前(上)面。(要将某子项添加到特定索引位置,请使用 addChildAt() 方法。)

    +
    +
    +
    see
    +

    #addChildAt()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
      +

      要作为该 DisplayObjectContainer 实例的子项添加的 DisplayObject 实例。

      +
      +
    • +
    +

    Returns DisplayObject

    +

    在 child 参数中传递的 DisplayObject 实例。

    +
  • +
+
+
+ +

addChildAt

+
    +
  • addChildAt(child: DisplayObject, index: number): DisplayObject
  • +
+
    +
  • + +
    +
    +

    将一个 DisplayObject 子实例添加到该 DisplayObjectContainer 实例中。该子项将被添加到指定的索引位置。索引为 0 表示该 + DisplayObjectContainer 对象的显示列表的后(底)部。如果添加一个已将其它显示对象容器作为父项的子对象,则会从其它显示对象容器的子列表中删除该对象。

    +
    +
    +
    see
    +

    #addChild()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
      +

      要作为该 DisplayObjectContainer 实例的子项添加的 DisplayObject 实例。

      +
      +
    • +
    • +
      index: number
      +
      +

      添加该子项的索引位置。 如果指定当前占用的索引位置,则该位置以及所有更高位置上的子对象会在子级列表中上移一个位置。

      +
      +
    • +
    +

    Returns DisplayObject

    +

    在 child 参数中传递的 DisplayObject 实例。

    +
  • +
+
+
+ +

addEntity

+ +
    +
  • + +
    +
    +

    在场景的实体列表中添加一个实体

    +
    +
    +

    Parameters

    + +

    Returns Entity

    +
  • +
+
+
+ +

addEntityProcessor

+ + +
+
+ +

addEventListener

+
    +
  • addEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): void
  • +
+
    +
  • + +
    +
    +
    inheritdoc
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    • +
      listener: Function
      +
    • +
    • +
      thisObject: any
      +
    • +
    • +
      Optional useCapture: boolean
      +
    • +
    • +
      Optional priority: number
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

addPostProcessor

+
    +
  • addPostProcessor<T>(postProcessor: T): T
  • +
+
    +
  • + +
    +
    +

    添加一个后处理器到场景。设置场景字段并调用后处理器。onAddedToScene使后处理器可以使用场景ContentManager加载资源。

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      postProcessor: T
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

addRenderer

+
    +
  • addRenderer<T>(renderer: T): T
  • +
+
    +
  • + +
    +
    +

    为场景添加一个渲染器

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      renderer: T
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

addSceneComponent

+
    +
  • addSceneComponent<T>(component: T): T
  • +
+
    +
  • + +
    +
    +

    向组件列表添加并返回SceneComponent

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      component: T
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

begin

+
    +
  • begin(): void
  • +
+ +
+
+ +

contains

+
    +
  • contains(child: DisplayObject): boolean
  • +
+
    +
  • + +
    +
    +

    确定指定显示对象是 DisplayObjectContainer 实例的子项或该实例本身。搜索包括整个显示列表(其中包括此 DisplayObjectContainer 实例)。 + 孙项、曾孙项等,每项都返回 true。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
      +

      要测试的子对象。

      +
      +
    • +
    +

    Returns boolean

    +

    如果 child 对象是 DisplayObjectContainer 的子项或容器本身,则为 true;否则为 false。

    +
  • +
+
+
+ +

createEntity

+
    +
  • createEntity(name: string): Entity
  • +
+
    +
  • + +
    +
    +

    将实体添加到此场景,并返回它

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +
      +
      +
    • +
    +

    Returns Entity

    +
  • +
+
+
+ +

Protected createNativeDisplayObject

+
    +
  • createNativeDisplayObject(): void
  • +
+ +
+
+ +

destroyAllEntities

+
    +
  • destroyAllEntities(): void
  • +
+
    +
  • + +
    +
    +

    从场景中删除所有实体

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

dispatchEvent

+
    +
  • dispatchEvent(event: Event): boolean
  • +
+
    +
  • + +
    +
    +
    inheritdoc
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      event: Event
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

dispatchEventWith

+
    +
  • dispatchEventWith(type: string, bubbles?: boolean, data?: any, cancelable?: boolean): boolean
  • +
+
    +
  • + +
    +
    +

    派发一个指定参数的事件。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
      +

      事件类型

      +
      +
    • +
    • +
      Optional bubbles: boolean
      +
      +

      确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。

      +
      +
    • +
    • +
      Optional data: any
      +
      +

      事件data

      +
      +
    • +
    • +
      Optional cancelable: boolean
      +
      +

      确定是否可以取消 Event 对象。默认值为 false。

      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

dynamicInBatch

+
    +
  • dynamicInBatch(): void
  • +
+ +
+
+ +

end

+
    +
  • end(): void
  • +
+ +
+
+ +

entitiesOfType

+
    +
  • entitiesOfType<T>(type: any): T[]
  • +
+
    +
  • + +
    +
    +

    返回类型为T的所有实体

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns T[]

    +
  • +
+
+
+ +

findComponentOfType

+
    +
  • findComponentOfType<T>(type: any): T
  • +
+
    +
  • + +
    +
    +

    返回第一个启用加载的类型为T的组件

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

findComponentsOfType

+
    +
  • findComponentsOfType<T>(type: any): T[]
  • +
+
    +
  • + +
    +
    +

    返回类型为T的所有已启用已加载组件的列表

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns T[]

    +
  • +
+
+
+ +

findEntitiesWithTag

+
    +
  • findEntitiesWithTag(tag: number): Entity[]
  • +
+
    +
  • + +
    +
    +

    返回具有给定标记的所有实体

    +
    +
    +

    Parameters

    +
      +
    • +
      tag: number
      +
      +
      +
    • +
    +

    Returns Entity[]

    +
  • +
+
+
+ +

findEntity

+
    +
  • findEntity(name: string): Entity
  • +
+
    +
  • + +
    +
    +

    搜索并返回第一个具有名称的实体

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +
      +
      +
    • +
    +

    Returns Entity

    +
  • +
+
+
+ +

getBounds

+
    +
  • getBounds(resultRect?: Rectangle, calculateAnchor?: boolean): Rectangle
  • +
+
    +
  • + +
    +
    +

    获取显示对象的测量边界

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      Optional resultRect: Rectangle
      +
      +

      可选参数,传入用于保存结果的Rectangle对象,避免重复创建对象。

      +
      +
    • +
    • +
      Optional calculateAnchor: boolean
      +
      +

      可选参数,是否会计算锚点。

      +
      +
    • +
    +

    Returns Rectangle

    +
  • +
+
+
+ +

getChildAt

+
    +
  • getChildAt(index: number): DisplayObject
  • +
+
    +
  • + +
    +
    +

    返回位于指定索引处的子显示对象实例。

    +
    +
    +
    see
    +

    #getChildByName()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      index: number
      +
      +

      子对象的索引位置。

      +
      +
    • +
    +

    Returns DisplayObject

    +

    位于指定索引位置处的子显示对象。

    +
  • +
+
+
+ +

getChildByName

+
    +
  • getChildByName(name: string): DisplayObject
  • +
+
    +
  • + +
    +
    +

    返回具有指定名称的子显示对象。如果多个子显示对象具有指定名称,则该方法会返回子级列表中的第一个对象。 + getChildAt() 方法比 getChildByName() 方法快。getChildAt() 方法从缓存数组中访问子项,而 getChildByName() 方法则必须遍历链接的列表来访问子项。

    +
    +
    +
    see
    +

    #getChildAt()

    +
    +
    see
    +

    egret.DisplayObject#name

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +
      +

      要返回的子项的名称。

      +
      +
    • +
    +

    Returns DisplayObject

    +

    具有指定名称的子显示对象。

    +
  • +
+
+
+ +

getChildIndex

+
    +
  • getChildIndex(child: DisplayObject): number
  • +
+
    +
  • + +
    +
    +

    返回 DisplayObject 的 child 实例的索引位置。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
      +

      要测试的子对象。

      +
      +
    • +
    +

    Returns number

    +

    要查找的子显示对象的索引位置。

    +
  • +
+
+
+ +

getEntityProcessor

+
    +
  • getEntityProcessor<T>(): T
  • +
+ +
+
+ +

getOrCreateSceneComponent

+
    +
  • getOrCreateSceneComponent<T>(type: any): T
  • +
+
    +
  • + +
    +
    +

    获取类型为T的第一个SceneComponent并返回它。如果没有找到SceneComponent,则将创建SceneComponent。

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

getPostProcessor

+
    +
  • getPostProcessor<T>(type: any): T
  • +
+
    +
  • + +
    +
    +

    获取类型为T的第一个后处理器

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

getRenderer

+
    +
  • getRenderer<T>(type: any): T
  • +
+
    +
  • + +
    +
    +

    获取类型为T的第一个渲染器

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

getSceneComponent

+
    +
  • getSceneComponent<T>(type: any): T
  • +
+
    +
  • + +
    +
    +

    获取类型为T的第一个SceneComponent并返回它。如果没有找到组件,则返回null。

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

getTransformedBounds

+
    +
  • getTransformedBounds(targetCoordinateSpace: DisplayObject, resultRect?: Rectangle): Rectangle
  • +
+
    +
  • + +
    +
    +

    返回一个矩形,该矩形定义相对于 targetCoordinateSpace 对象坐标系的显示对象区域。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      targetCoordinateSpace: DisplayObject
      +
      +

      定义要使用的坐标系的显示对象。

      +
      +
    • +
    • +
      Optional resultRect: Rectangle
      +
      +

      一个用于存储结果的可复用Rectangle实例,传入此参数能够减少内部创建对象的次数,从而获得更高的运行性能。

      +
      +
    • +
    +

    Returns Rectangle

    +

    定义与 targetCoordinateSpace 对象坐标系统相关的显示对象面积的矩形。

    +
  • +
+
+
+ +

globalToLocal

+
    +
  • globalToLocal(stageX?: number, stageY?: number, resultPoint?: Point): Point
  • +
+
    +
  • + +
    +
    +

    将从舞台(全局)坐标转换为显示对象的(本地)坐标。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      Optional stageX: number
      +
      +

      舞台坐标x

      +
      +
    • +
    • +
      Optional stageY: number
      +
      +

      舞台坐标y

      +
      +
    • +
    • +
      Optional resultPoint: Point
      +
      +

      一个用于存储结果的可复用 Point 实例,传入此参数能够减少内部创建对象的次数,从而获得更高的运行性能。

      +
      +
    • +
    +

    Returns Point

    +

    具有相对于显示对象的坐标的 Point 对象。

    +
  • +
+
+
+ +

hasEventListener

+
    +
  • hasEventListener(type: string): boolean
  • +
+
    +
  • + +
    +
    +
    inheritdoc
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

hitTestPoint

+
    +
  • hitTestPoint(x: number, y: number, shapeFlag?: boolean): boolean
  • +
+
    +
  • + +
    +
    +

    计算显示对象,以确定它是否与 x 和 y 参数指定的点重叠或相交。x 和 y 参数指定舞台的坐标空间中的点,而不是包含显示对象的显示对象容器中的点(除非显示对象容器是舞台)。 + 注意,不要在大量物体中使用精确碰撞像素检测,这回带来巨大的性能开销

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      x: number
      +
      +

      要测试的此对象的 x 坐标。

      +
      +
    • +
    • +
      y: number
      +
      +

      要测试的此对象的 y 坐标。

      +
      +
    • +
    • +
      Optional shapeFlag: boolean
      +
      +

      是检查对象 (true) 的实际像素,还是检查边框 (false) 的实际像素。

      +
      +
    • +
    +

    Returns boolean

    +

    如果显示对象与指定的点重叠或相交,则为 true;否则为 false。

    +
  • +
+
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    在场景子类中重写这个并在这里进行加载。在场景设置好之后,在调用begin之前,从构造器中调用。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

localToGlobal

+
    +
  • localToGlobal(localX?: number, localY?: number, resultPoint?: Point): Point
  • +
+
    +
  • + +
    +
    +

    将显示对象的(本地)坐标转换为舞台(全局)坐标。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      Optional localX: number
      +
      +

      本地坐标 x

      +
      +
    • +
    • +
      Optional localY: number
      +
      +

      本地坐标 y

      +
      +
    • +
    • +
      Optional resultPoint: Point
      +
      +

      一个用于存储结果的可复用 Point 实例,传入此参数能够减少内部创建对象的次数,从而获得更高的运行性能。

      +
      +
    • +
    +

    Returns Point

    +

    一个具有相对于舞台坐标的 Point 对象。

    +
  • +
+
+
+ +

onActive

+
    +
  • onActive(): void
  • +
+
    +
  • + +
    +
    +

    在场景子类中重写这个,当该场景当获得焦点时调用

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onDeactive

+
    +
  • onDeactive(): void
  • +
+
    +
  • + +
    +
    +

    在场景子类中重写这个,当该场景当失去焦点时调用

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

onStart

+
    +
  • onStart(): Promise<void>
  • +
+
    +
  • + +
    +
    +

    在场景子类中重写这个。当SceneManager将此场景设置为活动场景时,将调用此操作。

    +
    +
    +

    Returns Promise<void>

    +
  • +
+
+
+ +

once

+
    +
  • once(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): void
  • +
+
    +
  • + +
    +
    +
    inheritdoc
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    • +
      listener: Function
      +
    • +
    • +
      thisObject: any
      +
    • +
    • +
      Optional useCapture: boolean
      +
    • +
    • +
      Optional priority: number
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

postRender

+
    +
  • postRender(): void
  • +
+
    +
  • + +
    +
    +

    现在的任何后处理器都要完成它的处理 + 只有在SceneTransition请求渲染时,它才会有一个值。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

removeChild

+
    +
  • removeChild(child: DisplayObject): DisplayObject
  • +
+
    +
  • + +
    +
    +

    从 DisplayObjectContainer 实例的子列表中删除指定的 child DisplayObject 实例。将已删除子项的 parent 属性设置为 null; + 如果不存在对该子项的任何其它引用,则将该对象作为垃圾回收。DisplayObjectContainer 中该子项之上的任何显示对象的索引位置都减去 1。

    +
    +
    +
    see
    +

    #removeChildAt()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
      +

      要删除的 DisplayObject 实例。

      +
      +
    • +
    +

    Returns DisplayObject

    +

    在 child 参数中传递的 DisplayObject 实例。

    +
  • +
+
+
+ +

removeChildAt

+
    +
  • removeChildAt(index: number): DisplayObject
  • +
+
    +
  • + +
    +
    +

    从 DisplayObjectContainer 的子列表中指定的 index 位置删除子 DisplayObject。将已删除子项的 parent 属性设置为 null; + 如果没有对该子项的任何其他引用,则将该对象作为垃圾回收。DisplayObjectContainer 中该子项之上的任何显示对象的索引位置都减去 1。

    +
    +
    +
    see
    +

    #removeChild()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      index: number
      +
      +

      要删除的 DisplayObject 的子索引。

      +
      +
    • +
    +

    Returns DisplayObject

    +

    已删除的 DisplayObject 实例。

    +
  • +
+
+
+ +

removeChildren

+
    +
  • removeChildren(): void
  • +
+
    +
  • + +
    +
    +

    从 DisplayObjectContainer 实例的子级列表中删除所有 child DisplayObject 实例。

    +
    +
    +
    see
    +

    #removeChild()

    +
    +
    see
    +

    #removeChildAt()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

removeEntityProcessor

+ +
    +
  • + +
    +
    +

    从场景中删除EntitySystem处理器

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

removeEventListener

+
    +
  • removeEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean): void
  • +
+
    +
  • + +
    +
    +
    inheritdoc
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    • +
      listener: Function
      +
    • +
    • +
      thisObject: any
      +
    • +
    • +
      Optional useCapture: boolean
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

removePostProcessor

+ +
    +
  • + +
    +
    +

    删除一个后处理程序。注意,在删除时不会调用unload,因此如果不再需要PostProcessor,请确保调用unload来释放资源。

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

removeRenderer

+
    +
  • removeRenderer(renderer: Renderer): void
  • +
+
    +
  • + +
    +
    +

    从场景中移除渲染器

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

removeSceneComponent

+ +
    +
  • + +
    +
    +

    从SceneComponents列表中删除一个SceneComponent

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

render

+
    +
  • render(): void
  • +
+ +
+
+ +

requestScreenshot

+
    +
  • requestScreenshot(callback: Function): void
  • +
+
    +
  • + +
    +
    +

    在下一次绘制完成后,会进行场景全屏截图

    +
    +
    +

    Parameters

    +
      +
    • +
      callback: Function
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

setChildIndex

+
    +
  • setChildIndex(child: DisplayObject, index: number): void
  • +
+
    +
  • + +
    +
    +

    更改现有子项在显示对象容器中的位置。这会影响子对象的分层。

    +
    +
    +
    see
    +

    #addChildAt()

    +
    +
    see
    +

    #getChildAt()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child: DisplayObject
      +
      +

      要为其更改索引编号的 DisplayObject 子实例。

      +
      +
    • +
    • +
      index: number
      +
      +

      生成的 child 显示对象的索引编号。当新的索引编号小于0或大于已有子元件数量时,新加入的DisplayObject对象将会放置于最上层。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

setChildrenSortMode

+
    +
  • setChildrenSortMode(value: string): void
  • +
+
    +
  • + +
    +
    +

    设置子项目的排序方式

    +
    +
    +
    see
    +

    egret.ChildrenSortMode

    +
    +
    version
    +

    Egret 5.2.19

    +
    +
    platform
    +

    Native

    +
    +
    language
    +

    en_US

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      value: string
      +
      +

      排序方式

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

sortChildren

+
    +
  • sortChildren(): void
  • +
+ +
+
+ +

swapChildren

+
    +
  • swapChildren(child1: DisplayObject, child2: DisplayObject): void
  • +
+
    +
  • + +
    +
    +

    交换两个指定子对象的 Z 轴顺序(从前到后顺序)。显示对象容器中所有其他子对象的索引位置保持不变。

    +
    +
    +
    see
    +

    #swapChildrenAt()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      child1: DisplayObject
      +
      +

      第一个子对象。

      +
      +
    • +
    • +
      child2: DisplayObject
      +
      +

      第二个子对象。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

swapChildrenAt

+
    +
  • swapChildrenAt(index1: number, index2: number): void
  • +
+
    +
  • + +
    +
    +

    在子级列表中两个指定的索引位置,交换子对象的 Z 轴顺序(前后顺序)。显示对象容器中所有其他子对象的索引位置保持不变。

    +
    +
    +
    see
    +

    #swapChildren()

    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      index1: number
      +
      +

      第一个子对象的索引位置。

      +
      +
    • +
    • +
      index2: number
      +
      +

      第二个子对象的索引位置。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

unload

+
    +
  • unload(): void
  • +
+
    +
  • + +
    +
    +

    在场景子类中重写这个,并在这里做任何必要的卸载。当SceneManager从活动槽中删除此场景时调用。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+ +

updateResolutionScaler

+
    +
  • updateResolutionScaler(): void
  • +
+ +
+
+ +

willTrigger

+
    +
  • willTrigger(type: string): boolean
  • +
+
    +
  • + +
    +
    +
    inheritdoc
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Static createWithDefaultRenderer

+
    +
  • createWithDefaultRenderer(): Scene
  • +
+
    +
  • + +
    +
    +

    辅助器,创建一个场景与DefaultRenderer附加并准备使用

    +
    +
    +

    Returns Scene

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_systems_entityprocessingsystem_.es.entityprocessingsystem.html b/source/docs/classes/_ecs_systems_entityprocessingsystem_.es.entityprocessingsystem.html new file mode 100644 index 00000000..b48e2c95 --- /dev/null +++ b/source/docs/classes/_ecs_systems_entityprocessingsystem_.es.entityprocessingsystem.html @@ -0,0 +1,654 @@ + + + + + + EntityProcessingSystem | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class EntityProcessingSystem

+
+
+
+
+
+
+
+
+
+

基本实体处理系统。将其用作处理具有特定组件的许多实体的基础

+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Accessors

+
+ +

matcher

+ + +
+
+ +

scene

+
    +
  • get scene(): Scene
  • +
  • set scene(value: Scene): void
  • +
+ +
+
+
+

Methods

+
+ +

add

+
    +
  • add(entity: Entity): void
  • +
+ +
+
+ +

Protected begin

+
    +
  • begin(): void
  • +
+ +
+
+ +

Protected end

+
    +
  • end(): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+ +
+
+ +

Protected lateProcess

+
    +
  • lateProcess(entities: Entity[]): void
  • +
+ +
+
+ +

lateProcessEntity

+
    +
  • lateProcessEntity(entity: Entity): void
  • +
+ +
+
+ +

lateUpdate

+
    +
  • lateUpdate(): void
  • +
+ +
+
+ +

onAdded

+
    +
  • onAdded(entity: Entity): void
  • +
+ +
+
+ +

onChanged

+
    +
  • onChanged(entity: Entity): void
  • +
+ +
+
+ +

onRemoved

+
    +
  • onRemoved(entity: Entity): void
  • +
+ +
+
+ +

Protected process

+
    +
  • process(entities: Entity[]): void
  • +
+ +
+
+ +

Abstract processEntity

+
    +
  • processEntity(entity: Entity): any
  • +
+ +
+
+ +

remove

+
    +
  • remove(entity: Entity): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_systems_entitysystem_.es.entitysystem.html b/source/docs/classes/_ecs_systems_entitysystem_.es.entitysystem.html new file mode 100644 index 00000000..2732c431 --- /dev/null +++ b/source/docs/classes/_ecs_systems_entitysystem_.es.entitysystem.html @@ -0,0 +1,619 @@ + + + + + + EntitySystem | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class EntitySystem

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private _entities

+
_entities: Entity[] = []
+ +
+
+ +

Private _matcher

+
_matcher: Matcher
+ +
+
+ +

Private _scene

+
_scene: Scene
+ +
+
+
+

Accessors

+
+ +

matcher

+ + +
+
+ +

scene

+
    +
  • get scene(): Scene
  • +
  • set scene(value: Scene): void
  • +
+ +
+
+
+

Methods

+
+ +

add

+
    +
  • add(entity: Entity): void
  • +
+ +
+
+ +

Protected begin

+
    +
  • begin(): void
  • +
+ +
+
+ +

Protected end

+
    +
  • end(): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+ +
+
+ +

Protected lateProcess

+
    +
  • lateProcess(entities: Entity[]): void
  • +
+ +
+
+ +

lateUpdate

+
    +
  • lateUpdate(): void
  • +
+ +
+
+ +

onAdded

+
    +
  • onAdded(entity: Entity): void
  • +
+ +
+
+ +

onChanged

+
    +
  • onChanged(entity: Entity): void
  • +
+ +
+
+ +

onRemoved

+
    +
  • onRemoved(entity: Entity): void
  • +
+ +
+
+ +

Protected process

+
    +
  • process(entities: Entity[]): void
  • +
+ +
+
+ +

remove

+
    +
  • remove(entity: Entity): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected method
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_systems_passivesystem_.es.passivesystem.html b/source/docs/classes/_ecs_systems_passivesystem_.es.passivesystem.html new file mode 100644 index 00000000..2cbeafd2 --- /dev/null +++ b/source/docs/classes/_ecs_systems_passivesystem_.es.passivesystem.html @@ -0,0 +1,579 @@ + + + + + + PassiveSystem | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class PassiveSystem

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Accessors

+
+ +

matcher

+ + +
+
+ +

scene

+
    +
  • get scene(): Scene
  • +
  • set scene(value: Scene): void
  • +
+ +
+
+
+

Methods

+
+ +

add

+
    +
  • add(entity: Entity): void
  • +
+ +
+
+ +

Protected begin

+
    +
  • begin(): void
  • +
+ +
+
+ +

Protected end

+
    +
  • end(): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+ +
+
+ +

Protected lateProcess

+
    +
  • lateProcess(entities: Entity[]): void
  • +
+ +
+
+ +

lateUpdate

+
    +
  • lateUpdate(): void
  • +
+ +
+
+ +

onAdded

+
    +
  • onAdded(entity: Entity): void
  • +
+ +
+
+ +

onChanged

+
    +
  • onChanged(entity: Entity): void
  • +
+ +
+
+ +

onRemoved

+
    +
  • onRemoved(entity: Entity): void
  • +
+ +
+
+ +

Protected process

+
    +
  • process(entities: Entity[]): void
  • +
+ +
+
+ +

remove

+
    +
  • remove(entity: Entity): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Inherited constructor
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_systems_processingsystem_.es.processingsystem.html b/source/docs/classes/_ecs_systems_processingsystem_.es.processingsystem.html new file mode 100644 index 00000000..c1f24ea1 --- /dev/null +++ b/source/docs/classes/_ecs_systems_processingsystem_.es.processingsystem.html @@ -0,0 +1,605 @@ + + + + + + ProcessingSystem | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ProcessingSystem

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Accessors

+
+ +

matcher

+ + +
+
+ +

scene

+
    +
  • get scene(): Scene
  • +
  • set scene(value: Scene): void
  • +
+ +
+
+
+

Methods

+
+ +

add

+
    +
  • add(entity: Entity): void
  • +
+ +
+
+ +

Protected begin

+
    +
  • begin(): void
  • +
+ +
+
+ +

Protected end

+
    +
  • end(): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+ +
+
+ +

Protected lateProcess

+
    +
  • lateProcess(entities: Entity[]): void
  • +
+ +
+
+ +

lateUpdate

+
    +
  • lateUpdate(): void
  • +
+ +
+
+ +

onAdded

+
    +
  • onAdded(entity: Entity): void
  • +
+ +
+
+ +

onChanged

+
    +
  • onChanged(entity: Entity): void
  • +
+ +
+
+ +

onRemoved

+
    +
  • onRemoved(entity: Entity): void
  • +
+ +
+
+ +

Protected process

+
    +
  • process(entities: Entity[]): void
  • +
+ +
+
+ +

Abstract processSystem

+
    +
  • processSystem(): any
  • +
+ +
+
+ +

remove

+
    +
  • remove(entity: Entity): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Inherited constructor
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_transform_.es.transform.html b/source/docs/classes/_ecs_transform_.es.transform.html new file mode 100644 index 00000000..bb6b2e80 --- /dev/null +++ b/source/docs/classes/_ecs_transform_.es.transform.html @@ -0,0 +1,1687 @@ + + + + + + Transform | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Transform

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + HashObject +
      +
    • + Transform +
    • +
    +
  • +
+
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

_children

+
_children: Transform[]
+ +
+
+ +

_localDirty

+
_localDirty: boolean
+ +
+
+ +

_localPosition

+
_localPosition: Vector2 = Vector2.zero
+ +
+
+ +

_localPositionDirty

+
_localPositionDirty: boolean
+ +
+
+ +

_localRotation

+
_localRotation: number = 0
+ +
+
+ +

_localRotationDirty

+
_localRotationDirty: boolean
+ +
+
+ +

_localScale

+
_localScale: Vector2 = Vector2.one
+ +
+
+ +

_localScaleDirty

+
_localScaleDirty: boolean
+ +
+
+ +

_localTransform

+
_localTransform: Matrix2D = Matrix2D.create()
+ +
+
+

值会根据位置、旋转和比例自动重新计算

+
+
+
+
+ +

_parent

+
_parent: Transform
+ +
+
+ +

_position

+
_position: Vector2 = Vector2.zero
+ +
+
+ +

_positionDirty

+
_positionDirty: boolean
+ +
+
+ +

_rotation

+
_rotation: number = 0
+ +
+
+ +

_rotationMatrix

+
_rotationMatrix: Matrix2D = Matrix2D.create().identity()
+ +
+
+ +

_scale

+
_scale: Vector2 = Vector2.one
+ +
+
+ +

_scaleMatrix

+
_scaleMatrix: Matrix2D = Matrix2D.create().identity()
+ +
+
+ +

_translationMatrix

+
_translationMatrix: Matrix2D = Matrix2D.create().identity()
+ +
+
+ +

_worldInverseDirty

+
_worldInverseDirty: boolean
+ +
+
+ +

_worldInverseTransform

+
_worldInverseTransform: Matrix2D = Matrix2D.create().identity()
+ +
+
+ +

_worldToLocalDirty

+
_worldToLocalDirty: boolean
+ +
+
+ +

_worldToLocalTransform

+
_worldToLocalTransform: Matrix2D = Matrix2D.create().identity()
+ +
+
+ +

_worldTransform

+
_worldTransform: Matrix2D = Matrix2D.create().identity()
+ +
+
+

值将自动从本地和父矩阵重新计算。

+
+
+
+
+ +

Readonly entity

+
entity: Entity
+ +
+
+

与此转换关联的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

hierarchyDirty

+
hierarchyDirty: DirtyType
+ +
+
+
+

Accessors

+
+ +

childCount

+
    +
  • get childCount(): number
  • +
+ +
+
+ +

localPosition

+
    +
  • get localPosition(): Vector2
  • +
  • set localPosition(value: Vector2): void
  • +
+
    +
  • + +
    +
    +

    转换相对于父转换的位置。如果转换没有父元素,则与transform.position相同

    +
    +
    +

    Returns Vector2

    +
  • +
  • + +
    +
    +

    转换相对于父转换的位置。如果转换没有父元素,则与transform.position相同

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

localRotation

+
    +
  • get localRotation(): number
  • +
  • set localRotation(value: number): void
  • +
+
    +
  • + +
    +
    +

    相对于父变换的旋转,变换的旋转。如果转换没有父元素,则与transform.rotation相同

    +
    +
    +

    Returns number

    +
  • +
  • + +
    +
    +

    相对于父变换的旋转,变换的旋转。如果转换没有父元素,则与transform.rotation相同

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

localRotationDegrees

+
    +
  • get localRotationDegrees(): number
  • +
  • set localRotationDegrees(value: number): void
  • +
+
    +
  • + +
    +
    +

    旋转相对于父变换旋转的角度

    +
    +
    +

    Returns number

    +
  • +
  • + +
    +
    +

    旋转相对于父变换旋转的角度

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

localScale

+
    +
  • get localScale(): Vector2
  • +
  • set localScale(value: Vector2): void
  • +
+
    +
  • + +
    +
    +

    转换相对于父元素的比例。如果转换没有父元素,则与transform.scale相同

    +
    +
    +

    Returns Vector2

    +
  • +
  • + +
    +
    +

    转换相对于父元素的比例。如果转换没有父元素,则与transform.scale相同

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

localToWorldTransform

+
    +
  • get localToWorldTransform(): Matrix2D
  • +
+ +
+
+ +

parent

+ + +
+
+ +

position

+ + +
+
+ +

rotation

+
    +
  • get rotation(): number
  • +
  • set rotation(value: number): void
  • +
+
    +
  • + +
    +
    +

    在世界空间中以弧度旋转的变换

    +
    +
    +

    Returns number

    +
  • +
  • + +
    +
    +

    变换在世界空间的旋转度

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

rotationDegrees

+
    +
  • get rotationDegrees(): number
  • +
  • set rotationDegrees(value: number): void
  • +
+
    +
  • + +
    +
    +

    变换在世界空间的旋转度

    +
    +
    +

    Returns number

    +
  • +
  • + +
    +
    +

    变换在世界空间的旋转度

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

scale

+ + +
+
+ +

worldInverseTransform

+
    +
  • get worldInverseTransform(): Matrix2D
  • +
+ +
+
+ +

worldToLocalTransform

+
    +
  • get worldToLocalTransform(): Matrix2D
  • +
+ +
+
+
+

Methods

+
+ +

copyFrom

+ +
    +
  • + +
    +
    +

    从另一个transform属性进行拷贝

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

equals

+ + +
+
+ +

getChild

+ + +
+
+ +

lookAt

+ +
    +
  • + +
    +
    +

    旋转精灵的顶部,使其朝向位置

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

roundPosition

+
    +
  • roundPosition(): void
  • +
+ +
+
+ +

setDirty

+
    +
  • setDirty(dirtyFlagType: DirtyType): void
  • +
+ +
+
+ +

setLocalPosition

+ +
    +
  • + +
    +
    +

    设置转换相对于父转换的位置。如果转换没有父元素,则与transform.position相同

    +
    +
    +

    Parameters

    +
      +
    • +
      localPosition: Vector2
      +
      +
      +
    • +
    +

    Returns Transform

    +
  • +
+
+
+ +

setLocalRotation

+
    +
  • setLocalRotation(radians: number): this
  • +
+
    +
  • + +
    +
    +

    相对于父变换的旋转设置变换的旋转。如果转换没有父元素,则与transform.rotation相同

    +
    +
    +

    Parameters

    +
      +
    • +
      radians: number
      +
      +
      +
    • +
    +

    Returns this

    +
  • +
+
+
+ +

setLocalRotationDegrees

+
    +
  • setLocalRotationDegrees(degrees: number): Transform
  • +
+
    +
  • + +
    +
    +

    相对于父变换的旋转设置变换的旋转。如果转换没有父元素,则与transform.rotation相同

    +
    +
    +

    Parameters

    +
      +
    • +
      degrees: number
      +
      +
      +
    • +
    +

    Returns Transform

    +
  • +
+
+
+ +

setLocalScale

+ +
    +
  • + +
    +
    +

    设置转换相对于父对象的比例。如果转换没有父元素,则与transform.scale相同

    +
    +
    +

    Parameters

    + +

    Returns Transform

    +
  • +
+
+
+ +

setParent

+ + +
+
+ +

setPosition

+
    +
  • setPosition(x: number, y: number): Transform
  • +
+
    +
  • + +
    +
    +

    设置转换在世界空间中的位置

    +
    +
    +

    Parameters

    +
      +
    • +
      x: number
      +
    • +
    • +
      y: number
      +
      +
      +
    • +
    +

    Returns Transform

    +
  • +
+
+
+ +

setRotation

+
    +
  • setRotation(radians: number): Transform
  • +
+
    +
  • + +
    +
    +

    设置变换在世界空间的旋转度

    +
    +
    +

    Parameters

    +
      +
    • +
      radians: number
      +
      +
      +
    • +
    +

    Returns Transform

    +
  • +
+
+
+ +

setRotationDegrees

+
    +
  • setRotationDegrees(degrees: number): Transform
  • +
+
    +
  • + +
    +
    +

    设置变换在世界空间的旋转度

    +
    +
    +

    Parameters

    +
      +
    • +
      degrees: number
      +
      +
      +
    • +
    +

    Returns Transform

    +
  • +
+
+
+ +

setScale

+ + +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

updateTransform

+
    +
  • updateTransform(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Inherited property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_bitset_.es.bitset.html b/source/docs/classes/_ecs_utils_bitset_.es.bitset.html new file mode 100644 index 00000000..bb44ccd8 --- /dev/null +++ b/source/docs/classes/_ecs_utils_bitset_.es.bitset.html @@ -0,0 +1,501 @@ + + + + + + BitSet | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class BitSet

+
+
+
+
+
+
+
+
+
+

这个类可以从两方面来考虑。你可以把它看成一个位向量或者一组非负整数。这个名字有点误导人。

+
+

它是由一个位向量实现的,但同样可以把它看成是一个非负整数的集合;集合中的每个整数由对应索引处的集合位表示。该结构的大小由集合中的最大整数决定。

+
+
+
+

Hierarchy

+
    +
  • + BitSet +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new BitSet(nbits?: number): BitSet
  • +
+ +
+
+
+

Properties

+
+ +

Private _bits

+
_bits: number[]
+ +
+
+ +

Static Private LONG_MASK

+
LONG_MASK: number = 63
+ +
+
+
+

Methods

+
+ +

and

+ + +
+
+ +

andNot

+
    +
  • andNot(bs: BitSet): void
  • +
+ +
+
+ +

cardinality

+
    +
  • cardinality(): number
  • +
+ +
+
+ +

clear

+
    +
  • clear(pos?: number): void
  • +
+ +
+
+ +

Private ensure

+
    +
  • ensure(lastElt: number): void
  • +
+ +
+
+ +

get

+
    +
  • get(pos: number): boolean
  • +
+ +
+
+ +

intersects

+
    +
  • intersects(set: BitSet): boolean
  • +
+ +
+
+ +

isEmpty

+
    +
  • isEmpty(): boolean
  • +
+ +
+
+ +

nextSetBit

+
    +
  • nextSetBit(from: number): number
  • +
+ +
+
+ +

set

+
    +
  • set(pos: number, value?: boolean): void
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      pos: number
      +
    • +
    • +
      Default value value: boolean = true
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Private property
  • +
  • Private method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_componentlist_.es.componentlist.html b/source/docs/classes/_ecs_utils_componentlist_.es.componentlist.html new file mode 100644 index 00000000..916fc026 --- /dev/null +++ b/source/docs/classes/_ecs_utils_componentlist_.es.componentlist.html @@ -0,0 +1,772 @@ + + + + + + ComponentList | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ComponentList

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + ComponentList +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

_components

+
_components: FastList<Component> = new FastList<Component>()
+ +
+
+

添加到实体的组件列表

+
+
+
+
+ +

_componentsToAdd

+
_componentsToAdd: Component[] = []
+ +
+
+

添加到此框架的组件列表。用来对组件进行分组,这样我们就可以同时进行加工

+
+
+
+
+ +

_componentsToRemove

+
_componentsToRemove: Component[] = []
+ +
+
+

标记要删除此框架的组件列表。用来对组件进行分组,这样我们就可以同时进行加工

+
+
+
+
+ +

_entity

+
_entity: Entity
+ +
+
+ +

_isComponentListUnsorted

+
_isComponentListUnsorted: boolean
+ +
+
+

用于确定是否需要对该框架中的组件进行排序的标志

+
+
+
+
+ +

_tempBufferList

+
_tempBufferList: Component[] = []
+ +
+
+ +

Static compareUpdatableOrder

+
compareUpdatableOrder: IUpdatableComparer = new IUpdatableComparer()
+ +
+
+

组件列表的全局updateOrder排序

+
+
+
+
+
+

Accessors

+
+ +

buffer

+ + +
+
+ +

count

+
    +
  • get count(): number
  • +
+ +
+
+
+

Methods

+
+ +

add

+ + +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

deregisterAllComponents

+
    +
  • deregisterAllComponents(): void
  • +
+ +
+
+ +

getComponent

+
    +
  • getComponent<T>(type: any, onlyReturnInitializedComponents: boolean): T
  • +
+
    +
  • + +
    +
    +

    获取类型T的第一个组件并返回它 + 可以选择跳过检查未初始化的组件(尚未调用onAddedToEntity方法的组件) + 如果没有找到组件,则返回null。

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
    • +
    • +
      onlyReturnInitializedComponents: boolean
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

getComponents

+
    +
  • getComponents(typeName: string | any, components?: any): any
  • +
+
    +
  • + +
    +
    +

    获取T类型的所有组件,但不使用列表分配

    +
    +
    +

    Parameters

    +
      +
    • +
      typeName: string | any
      +
    • +
    • +
      Optional components: any
      +
      +
      +
    • +
    +

    Returns any

    +
  • +
+
+
+ +

handleRemove

+
    +
  • handleRemove(component: Component): void
  • +
+ +
+
+ +

markEntityListUnsorted

+
    +
  • markEntityListUnsorted(): void
  • +
+ +
+
+ +

onEntityDisabled

+
    +
  • onEntityDisabled(): void
  • +
+ +
+
+ +

onEntityEnabled

+
    +
  • onEntityEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

registerAllComponents

+
    +
  • registerAllComponents(): void
  • +
+ +
+
+ +

remove

+ + +
+
+ +

removeAllComponents

+
    +
  • removeAllComponents(): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+ +

updateLists

+
    +
  • updateLists(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_componenttypemanager_.es.componenttypemanager.html b/source/docs/classes/_ecs_utils_componenttypemanager_.es.componenttypemanager.html new file mode 100644 index 00000000..211a6f02 --- /dev/null +++ b/source/docs/classes/_ecs_utils_componenttypemanager_.es.componenttypemanager.html @@ -0,0 +1,234 @@ + + + + + + ComponentTypeManager | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ComponentTypeManager

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + ComponentTypeManager +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Static Private _componentTypesMask

+
_componentTypesMask: Map<any, number> = new Map<any, number>()
+ +
+
+
+

Methods

+
+ +

Static add

+
    +
  • add(type: any): void
  • +
+ +
+
+ +

Static getIndexFor

+
    +
  • getIndexFor(type: any): number
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_entitylist_.es.entitylist.html b/source/docs/classes/_ecs_utils_entitylist_.es.entitylist.html new file mode 100644 index 00000000..e56c301c --- /dev/null +++ b/source/docs/classes/_ecs_utils_entitylist_.es.entitylist.html @@ -0,0 +1,945 @@ + + + + + + EntityList | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class EntityList

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + EntityList +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

_addToSceneEntityList

+
_addToSceneEntityList: Entity[] = []
+ +
+
+ +

_entities

+
_entities: Entity[] = []
+ +
+
+

场景中添加的实体列表

+
+
+
+
+ +

_entitiesToAdded

+
_entitiesToAdded: Entity[] = []
+ +
+
+

本帧添加的实体列表。用于对实体进行分组,以便我们可以同时处理它们

+
+
+
+
+ +

_entitiesToRemove

+
_entitiesToRemove: Entity[] = []
+ +
+
+

本帧被标记为删除的实体列表。用于对实体进行分组,以便我们可以同时处理它们

+
+
+
+
+ +

_entityDict

+
_entityDict: Map<number, Entity[]> = new Map<number, Entity[]>()
+ +
+
+

通过标签跟踪实体,便于检索

+
+
+
+
+ +

_isEntityListUnsorted

+
_isEntityListUnsorted: boolean
+ +
+
+

标志,用于确定我们是否需要在这一帧中对实体进行排序

+
+
+
+
+ +

_unsortedTags

+
_unsortedTags: Set<number> = new Set<number>()
+ +
+
+ +

frameAllocate

+
frameAllocate: boolean = false
+ +
+
+

是否使用分帧处理

+
+
+
+
+ +

maxAllocate

+
maxAllocate: number = 10
+ +
+
+

每帧最大处理数量

+
+
+
+
+ +

scene

+
scene: Scene
+ +
+
+
+

Accessors

+
+ +

buffer

+ + +
+
+ +

count

+
    +
  • get count(): number
  • +
+ +
+
+
+

Methods

+
+ +

add

+
    +
  • add(entity: Entity): void
  • +
+
    +
  • + +
    +
    +

    将一个实体添加到列表中。所有的生命周期方法将在下一帧中被调用

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

addToTagList

+
    +
  • addToTagList(entity: Entity): void
  • +
+ +
+
+ +

contains

+
    +
  • contains(entity: Entity): boolean
  • +
+ +
+
+ +

entitiesOfType

+
    +
  • entitiesOfType<T>(type: any): T[]
  • +
+
    +
  • + +
    +
    +

    返回一个T类型的所有实体的列表。 + 返回的List可以通过ListPool.free放回池中。

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns T[]

    +
  • +
+
+
+ +

entitiesWithTag

+
    +
  • entitiesWithTag(tag: number): Entity[]
  • +
+
    +
  • + +
    +
    +

    返回带有标签的所有实体的列表。如果没有实体有标签,则返回一个空列表。 + 返回的List可以通过ListPool.free放回池中

    +
    +
    +

    Parameters

    +
      +
    • +
      tag: number
      +
      +
      +
    • +
    +

    Returns Entity[]

    +
  • +
+
+
+ +

findComponentOfType

+
    +
  • findComponentOfType<T>(type: any): T
  • +
+
    +
  • + +
    +
    +

    返回在场景中找到的第一个T类型的组件。

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

findComponentsOfType

+
    +
  • findComponentsOfType<T>(type: any): T[]
  • +
+
    +
  • + +
    +
    +

    返回在场景中找到的所有T类型的组件。 + 返回的List可以通过ListPool.free放回池中。

    +
    +
    +

    Type parameters

    + +

    Parameters

    +
      +
    • +
      type: any
      +
      +
      +
    • +
    +

    Returns T[]

    +
  • +
+
+
+ +

findEntity

+
    +
  • findEntity(name: string): Entity
  • +
+
    +
  • + +
    +
    +

    返回第一个找到的名字为name的实体。如果没有找到则返回null

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +
      +
      +
    • +
    +

    Returns Entity

    +
  • +
+
+
+ +

getTagList

+
    +
  • getTagList(tag: number): Entity[]
  • +
+ +
+
+ +

markEntityListUnsorted

+
    +
  • markEntityListUnsorted(): void
  • +
+ +
+
+ +

markTagUnsorted

+
    +
  • markTagUnsorted(tag: number): void
  • +
+ +
+
+ +

Private perEntityAddToScene

+
    +
  • perEntityAddToScene(): void
  • +
+ +
+
+ +

remove

+
    +
  • remove(entity: Entity): void
  • +
+
    +
  • + +
    +
    +

    从列表中删除一个实体。所有的生命周期方法将在下一帧中被调用

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

removeAllEntities

+
    +
  • removeAllEntities(): void
  • +
+ +
+
+ +

removeFromTagList

+
    +
  • removeFromTagList(entity: Entity): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+ +

updateLists

+
    +
  • updateLists(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_entityprocessorlist_.es.entityprocessorlist.html b/source/docs/classes/_ecs_utils_entityprocessorlist_.es.entityprocessorlist.html new file mode 100644 index 00000000..9c100af4 --- /dev/null +++ b/source/docs/classes/_ecs_utils_entityprocessorlist_.es.entityprocessorlist.html @@ -0,0 +1,509 @@ + + + + + + EntityProcessorList | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class EntityProcessorList

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + EntityProcessorList +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

Protected _processors

+
_processors: EntitySystem[] = []
+ +
+
+
+

Methods

+
+ +

add

+ + +
+
+ +

begin

+
    +
  • begin(): void
  • +
+ +
+
+ +

end

+
    +
  • end(): void
  • +
+ +
+
+ +

getProcessor

+
    +
  • getProcessor<T>(): T
  • +
+ +
+
+ +

lateUpdate

+
    +
  • lateUpdate(): void
  • +
+ +
+
+ +

Protected notifyEntityChanged

+
    +
  • notifyEntityChanged(entity: Entity): void
  • +
+ +
+
+ +

onComponentAdded

+
    +
  • onComponentAdded(entity: Entity): void
  • +
+ +
+
+ +

onComponentRemoved

+
    +
  • onComponentRemoved(entity: Entity): void
  • +
+ +
+
+ +

onEntityAdded

+
    +
  • onEntityAdded(entity: Entity): void
  • +
+ +
+
+ +

onEntityRemoved

+
    +
  • onEntityRemoved(entity: Entity): void
  • +
+ +
+
+ +

remove

+ + +
+
+ +

Protected removeFromProcessors

+
    +
  • removeFromProcessors(entity: Entity): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Protected property
  • +
  • Protected method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_fastdirectory_.es.fasterdictionary.html b/source/docs/classes/_ecs_utils_fastdirectory_.es.fasterdictionary.html new file mode 100644 index 00000000..59c7bd84 --- /dev/null +++ b/source/docs/classes/_ecs_utils_fastdirectory_.es.fasterdictionary.html @@ -0,0 +1,769 @@ + + + + + + FasterDictionary | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class FasterDictionary<TKey, TValue>

+
+
+
+
+
+
+
+
+
+

创建这个字典的原因只有一个: + 我需要一个能让我直接以数组的形式对值进行迭代的字典,而不需要生成一个数组或使用迭代器。 + 对于这个目标是比标准字典快N倍。 + Faster dictionary在大部分操作上也比标准字典快,但差别可以忽略不计。 + 唯一较慢的操作是在添加时调整内存大小,因为与标准数组相比,这个实现需要使用两个单独的数组。

+
+
+
+
+

Type parameters

+
    +
  • +

    TKey

    +
  • +
  • +

    TValue

    +
  • +
+
+
+

Hierarchy

+
    +
  • + FasterDictionary +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

_buckets

+
_buckets: number[]
+ +
+
+ +

_collisions

+
_collisions: number = 0
+ +
+
+ +

_freeValueCellIndex

+
_freeValueCellIndex: number = 0
+ +
+
+ +

_values

+
_values: TValue[]
+ +
+
+ +

_valuesInfo

+
_valuesInfo: FastNode[]
+ +
+
+
+

Accessors

+
+ +

count

+
    +
  • get count(): number
  • +
+ +
+
+ +

valuesArray

+
    +
  • get valuesArray(): TValue[]
  • +
+ +
+
+
+

Methods

+
+ +

add

+
    +
  • add(key: TKey, value: TValue): void
  • +
+ +
+
+ +

addValue

+
    +
  • addValue(key: TKey, value: TValue, indexSet: { value: number }): boolean
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      key: TKey
      +
    • +
    • +
      value: TValue
      +
    • +
    • +
      indexSet: { value: number }
      +
        +
      • +
        value: number
        +
      • +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

clear

+
    +
  • clear(): void
  • +
+ +
+
+ +

containsKey

+
    +
  • containsKey(key: TKey): boolean
  • +
+ +
+
+ +

fastClear

+
    +
  • fastClear(): void
  • +
+ +
+
+ +

getDirectValue

+
    +
  • getDirectValue(index: number): TValue
  • +
+ +
+
+ +

getIndex

+
    +
  • getIndex(key: TKey): number
  • +
+ +
+
+ +

getValuesArray

+
    +
  • getValuesArray(count: { value: number }): TValue[]
  • +
+ +
+
+ +

remove

+
    +
  • remove(key: TKey): boolean
  • +
+ +
+
+ +

trim

+
    +
  • trim(): void
  • +
+ +
+
+ +

tryFindIndex

+
    +
  • tryFindIndex(key: TKey, findIndex: { value: number }): boolean
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      key: TKey
      +
    • +
    • +
      findIndex: { value: number }
      +
        +
      • +
        value: number
        +
      • +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

tryGetValue

+
    +
  • tryGetValue(key: TKey): TValue
  • +
+ +
+
+ +

Static hash

+
    +
  • hash(key: any): number
  • +
+ +
+
+ +

Static reduce

+
    +
  • reduce(x: number, n: number): number
  • +
+ +
+
+ +

Static updateLinkedList

+
    +
  • updateLinkedList(index: number, valuesInfo: FastNode[]): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_fastdirectory_.es.fastnode.html b/source/docs/classes/_ecs_utils_fastdirectory_.es.fastnode.html new file mode 100644 index 00000000..fa176111 --- /dev/null +++ b/source/docs/classes/_ecs_utils_fastdirectory_.es.fastnode.html @@ -0,0 +1,257 @@ + + + + + + FastNode | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class FastNode

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + FastNode +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new FastNode(key: any, hash: number, previousNode?: number): FastNode
  • +
+ +
+
+
+

Properties

+
+ +

Readonly hashcode

+
hashcode: number
+ +
+
+ +

Readonly key

+
key: any
+ +
+
+ +

next

+
next: number
+ +
+
+ +

previous

+
previous: number
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_fastlist_.es.fastlist.html b/source/docs/classes/_ecs_utils_fastlist_.es.fastlist.html new file mode 100644 index 00000000..39f673a1 --- /dev/null +++ b/source/docs/classes/_ecs_utils_fastlist_.es.fastlist.html @@ -0,0 +1,550 @@ + + + + + + FastList | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class FastList<T>

+
+
+
+
+
+
+
+
+
+

围绕一个数组的非常基本的包装,当它达到容量时自动扩展。 + 注意,在迭代时应该这样直接访问缓冲区,但使用FastList.length字段。

+
+
+
tutorial
+

for( var i = 0; i <= list.length; i++ ) + var item = list.buffer[i];

+
+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+
    +
  • + FastList +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new FastList(size?: number): FastList
  • +
+ +
+
+
+

Properties

+
+ +

buffer

+
buffer: T[]
+ +
+
+

直接访问后备缓冲区。 + 不要使用buffer.Length! 使用FastList.length

+
+
+
+
+ +

length

+
length: number = 0
+ +
+
+

直接访问缓冲区内填充项的长度。不要改变。

+
+
+
+
+
+

Methods

+
+ +

add

+
    +
  • add(item: T): void
  • +
+
    +
  • + +
    +
    +

    将该项目添加到列表中

    +
    +
    +

    Parameters

    +
      +
    • +
      item: T
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

addRange

+
    +
  • addRange(array: T[]): void
  • +
+
    +
  • + +
    +
    +

    添加数组中的所有项目

    +
    +
    +

    Parameters

    +
      +
    • +
      array: T[]
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

clear

+
    +
  • clear(): void
  • +
+ +
+
+ +

contains

+
    +
  • contains(item: T): boolean
  • +
+
    +
  • + +
    +
    +

    检查项目是否在FastList中

    +
    +
    +

    Parameters

    +
      +
    • +
      item: T
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

ensureCapacity

+
    +
  • ensureCapacity(additionalItemCount?: number): void
  • +
+
    +
  • + +
    +
    +

    如果缓冲区达到最大,将分配更多的空间来容纳额外的ItemCount。

    +
    +
    +

    Parameters

    +
      +
    • +
      Default value additionalItemCount: number = 1
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

remove

+
    +
  • remove(item: T): void
  • +
+
    +
  • + +
    +
    +

    从列表中删除该项目

    +
    +
    +

    Parameters

    +
      +
    • +
      item: T
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

removeAt

+
    +
  • removeAt(index: number): void
  • +
+
    +
  • + +
    +
    +

    从列表中删除给定索引的项目。

    +
    +
    +

    Parameters

    +
      +
    • +
      index: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

reset

+
    +
  • reset(): void
  • +
+
    +
  • + +
    +
    +

    和clear的工作原理一样,只是它不会将缓冲区中的所有项目清空。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

sort

+ +
    +
  • + +
    +
    +

    对缓冲区中的所有项目进行排序,长度不限。

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_hashhelper_.es.hashhelpers.html b/source/docs/classes/_ecs_utils_hashhelper_.es.hashhelpers.html new file mode 100644 index 00000000..7f0848ed --- /dev/null +++ b/source/docs/classes/_ecs_utils_hashhelper_.es.hashhelpers.html @@ -0,0 +1,349 @@ + + + + + + HashHelpers | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class HashHelpers

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + HashHelpers +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Static Readonly hashCollisionThreshold

+
hashCollisionThreshold: number = 100
+ +
+
+ +

Static Readonly hashPrime

+
hashPrime: number = 101
+ +
+
+ +

Static Readonly maxPrimeArrayLength

+
maxPrimeArrayLength: 2146435069 = 2146435069
+ +
+
+

这是比Array.MaxArrayLength小的最大质数

+
+
+
+
+ +

Static Readonly primes

+
primes: number[] = [3, 7, 11, 17, 23, 29, 37, 47, 59, 71, 89, 107, 131, 163, 197, 239, 293, 353, 431, 521, 631, 761, 919,1103, 1327, 1597, 1931, 2333, 2801, 3371, 4049, 4861, 5839, 7013, 8419, 10103, 12143, 14591,17519, 21023, 25229, 30293, 36353, 43627, 52361, 62851, 75431, 90523, 108631, 130363, 156437,187751, 225307, 270371, 324449, 389357, 467237, 560689, 672827, 807403, 968897, 1162687, 1395263,1674319, 2009191, 2411033, 2893249, 3471899, 4166287, 4999559, 5999471, 7199369]
+ +
+
+

用来作为哈希表大小的质数表。 + 一个典型的调整大小的算法会在这个数组中选取比之前容量大两倍的最小质数。 + 假设我们的Hashtable当前的容量为x,并且添加了足够多的元素,因此需要进行大小调整。 + 调整大小首先计算2x,然后在表中找到第一个大于2x的质数,即如果质数的顺序是p_1,p_2,...,p_i,...,则找到p_n,使p_n-1 < 2x < p_n。 + 双倍对于保持哈希特操作的渐近复杂度是很重要的,比如添加。 + 拥有一个质数可以保证双倍哈希不会导致无限循环。 IE,你的哈希函数将是h1(key)+i*h2(key),0 <= i < size.h2和size必须是相对质数。

+
+
+
+
+
+

Methods

+
+ +

Static expandPrime

+
    +
  • expandPrime(oldSize: number): number
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      oldSize: number
      +
    • +
    +

    Returns number

    +

    返回要增长的哈希特表的大小

    +
  • +
+
+
+ +

Static getHashCode

+
    +
  • getHashCode(str: any): number
  • +
+ +
+
+ +

Static getPrime

+
    +
  • getPrime(min: number): number
  • +
+ +
+
+ +

Static isPrime

+
    +
  • isPrime(candidate: number): boolean
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Static property
  • +
  • Static method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_matcher_.es.matcher.html b/source/docs/classes/_ecs_utils_matcher_.es.matcher.html new file mode 100644 index 00000000..2cea85b3 --- /dev/null +++ b/source/docs/classes/_ecs_utils_matcher_.es.matcher.html @@ -0,0 +1,404 @@ + + + + + + Matcher | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Matcher

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Matcher +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Protected allSet

+
allSet: BitSet = new BitSet()
+ +
+
+ +

Protected exclusionSet

+
exclusionSet: BitSet = new BitSet()
+ +
+
+ +

Protected oneSet

+
oneSet: BitSet = new BitSet()
+ +
+
+
+

Methods

+
+ +

IsIntersted

+
    +
  • IsIntersted(e: Entity): boolean
  • +
+ +
+
+ +

all

+
    +
  • all(...types: any[]): Matcher
  • +
+ +
+
+ +

exclude

+
    +
  • exclude(...types: any[]): this
  • +
+ +
+
+ +

getAllSet

+ + +
+
+ +

getExclusionSet

+
    +
  • getExclusionSet(): BitSet
  • +
+ +
+
+ +

getOneSet

+ + +
+
+ +

one

+
    +
  • one(...types: any[]): this
  • +
+ +
+
+ +

Static empty

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected property
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_objectutils_.objectutils.html b/source/docs/classes/_ecs_utils_objectutils_.objectutils.html new file mode 100644 index 00000000..4a109bb9 --- /dev/null +++ b/source/docs/classes/_ecs_utils_objectutils_.objectutils.html @@ -0,0 +1,226 @@ + + + + + + ObjectUtils | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ObjectUtils

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + ObjectUtils +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static clone

+
    +
  • clone<T>(p: any, c?: T): T
  • +
+
    +
  • + +
    +
    +

    对象深度拷贝

    +
    +
    +

    Type parameters

    +
      +
    • +

      T

      +
    • +
    +

    Parameters

    +
      +
    • +
      p: any
      +
      +

      any 源对象

      +
      +
    • +
    • +
      Default value c: T = null
      +
      +

      any 目标对象, 不传则返回新对象, 传则合并属性, 相同名字的属性则会覆盖

      +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

Static elements

+
    +
  • elements(p: {}): any[]
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_renderablecomponentlist_.es.renderablecomponentlist.html b/source/docs/classes/_ecs_utils_renderablecomponentlist_.es.renderablecomponentlist.html new file mode 100644 index 00000000..8367ed54 --- /dev/null +++ b/source/docs/classes/_ecs_utils_renderablecomponentlist_.es.renderablecomponentlist.html @@ -0,0 +1,570 @@ + + + + + + RenderableComponentList | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class RenderableComponentList

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + RenderableComponentList +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

_components

+
_components: IRenderable[] = []
+ +
+
+

添加到实体的组件列表

+
+
+
+
+ +

_componentsByRenderLayer

+
_componentsByRenderLayer: Map<number, IRenderable[]> = new Map<number, IRenderable[]>()
+ +
+
+

通过渲染层跟踪组件,便于检索

+
+
+
+
+ +

Private _componentsNeedSort

+
_componentsNeedSort: boolean = true
+ +
+
+ +

_unsortedRenderLayers

+
_unsortedRenderLayers: number[] = []
+ +
+
+ +

Static compareUpdatableOrder

+
compareUpdatableOrder: RenderableComparer = new RenderableComparer()
+ +
+
+

IRenderable列表的全局updatePrder排序

+
+
+
+
+
+

Accessors

+
+ +

buffer

+ + +
+
+ +

componentsNeedSort

+
    +
  • get componentsNeedSort(): boolean
  • +
  • set componentsNeedSort(value: boolean): void
  • +
+ +
+
+ +

count

+
    +
  • get count(): number
  • +
+ +
+
+
+

Methods

+
+ +

add

+ + +
+
+ +

addToRenderLayerList

+
    +
  • addToRenderLayerList(component: IRenderable, renderLayer: number): void
  • +
+ +
+
+ +

componentsWithRenderLayer

+
    +
  • componentsWithRenderLayer(renderLayer: number): IRenderable[]
  • +
+ +
+
+ +

remove

+ + +
+
+ +

setNeedsComponentSort

+
    +
  • setNeedsComponentSort(): void
  • +
+ +
+
+ +

setRenderLayerNeedsComponentSort

+
    +
  • setRenderLayerNeedsComponentSort(renderLayer: number): void
  • +
+ +
+
+ +

updateList

+
    +
  • updateList(): void
  • +
+ +
+
+ +

updateRenderableRenderLayer

+
    +
  • updateRenderableRenderLayer(component: IRenderable, oldRenderLayer: number, newRenderLayer: number): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_stringutils_.stringutils.html b/source/docs/classes/_ecs_utils_stringutils_.stringutils.html new file mode 100644 index 00000000..5876f6cb --- /dev/null +++ b/source/docs/classes/_ecs_utils_stringutils_.stringutils.html @@ -0,0 +1,623 @@ + + + + + + StringUtils | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class StringUtils

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + StringUtils +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Static Private specialSigns

+
specialSigns: string[] = ['&', '&amp;','<', '&lt;','>', '&gt;','"', '&quot;',"'", '&apos;','®', '&reg;','©', '&copy;','™', '&trade;',]
+ +
+
+

特殊符号字符串

+
+
+
+
+
+

Methods

+
+ +

Static cutOff

+
    +
  • cutOff(str: string, start: number, len: number, order?: boolean): string
  • +
+
    +
  • + +
    +
    +

    截断某段字符串

    +
    +
    +

    Parameters

    +
      +
    • +
      str: string
      +
      +

      目标字符串

      +
      +
    • +
    • +
      start: number
      +
      +

      需要截断的起始索引

      +
      +
    • +
    • +
      len: number
      +
      +

      截断长度

      +
      +
    • +
    • +
      Default value order: boolean = true
      +
      +

      顺序,true从字符串头部开始计算,false从字符串尾巴开始结算。

      +
      +
    • +
    +

    Returns string

    +

    截断后的字符串

    +
  • +
+
+
+ +

Static htmlSpecialChars

+
    +
  • htmlSpecialChars(str: string, reversion?: boolean): string
  • +
+
    +
  • + +
    +
    +

    用html实体换掉字符窜中的特殊字符

    +
    +
    +

    Parameters

    +
      +
    • +
      str: string
      +
      +

      需要替换的字符串

      +
      +
    • +
    • +
      Default value reversion: boolean = false
      +
      +

      是否翻转替换:将转义符号替换为正常的符号

      +
      +
    • +
    +

    Returns string

    +

    换掉特殊字符后的字符串

    +
  • +
+
+
+ +

Static isWhiteSpace

+
    +
  • isWhiteSpace(str: string): boolean
  • +
+
    +
  • + +
    +
    +

    返回该字符是否为空白字符

    +
    +
    +

    Parameters

    +
      +
    • +
      str: string
      +
    • +
    +

    Returns boolean

    +

    返回该字符是否为空白字符

    +
  • +
+
+
+ +

Static lTrim

+
    +
  • lTrim(target: string): string
  • +
+
    +
  • + +
    +
    +

    去除字符串左端的空白字符

    +
    +
    +

    Parameters

    +
      +
    • +
      target: string
      +
      +

      目标字符串

      +
      +
    • +
    +

    Returns string

    +
  • +
+
+
+ +

Static matchChineseWord

+
    +
  • matchChineseWord(str: string): string[]
  • +
+
    +
  • + +
    +
    +

    匹配中文字符

    +
    +
    +

    Parameters

    +
      +
    • +
      str: string
      +
      +

      需要匹配的字符串

      +
      +
    • +
    +

    Returns string[]

    +
  • +
+
+
+ +

Static rTrim

+
    +
  • rTrim(target: string): string
  • +
+
    +
  • + +
    +
    +

    去除字符串右端的空白字符

    +
    +
    +

    Parameters

    +
      +
    • +
      target: string
      +
      +

      目标字符串

      +
      +
    • +
    +

    Returns string

    +
  • +
+
+
+ +

Static replaceMatch

+
    +
  • replaceMatch(mainStr: string, targetStr: string, replaceStr: string, caseMark?: boolean): string
  • +
+
    +
  • + +
    +
    +

    返回执行替换后的字符串

    +
    +
    +

    Parameters

    +
      +
    • +
      mainStr: string
      +
      +

      待查找字符串

      +
      +
    • +
    • +
      targetStr: string
      +
      +

      目标字符串

      +
      +
    • +
    • +
      replaceStr: string
      +
      +

      替换字符串

      +
      +
    • +
    • +
      Default value caseMark: boolean = false
      +
      +

      是否忽略大小写

      +
      +
    • +
    +

    Returns string

    +

    返回执行替换后的字符串

    +
  • +
+
+
+ +

Static reverse

+
    +
  • reverse(str: string): string
  • +
+
    +
  • + +
    +
    +

    翻转字符串

    +
    +
    +

    Parameters

    +
      +
    • +
      str: string
      +
      +

      字符串

      +
      +
    • +
    +

    Returns string

    +

    翻转后的字符串

    +
  • +
+
+
+ +

Static strReplace

+
    +
  • strReplace(str: string, rStr: string[]): string
  • +
+
    +
  • + +
    +
    +

    {0} 字符替换

    +
    +
    +

    Parameters

    +
      +
    • +
      str: string
      +
    • +
    • +
      rStr: string[]
      +
    • +
    +

    Returns string

    +
  • +
+
+
+ +

Static trim

+
    +
  • trim(target: string): string
  • +
+
    +
  • + +
    +
    +

    返回一个去除2段空白字符的字符串

    +
    +
    +

    Parameters

    +
      +
    • +
      target: string
      +
    • +
    +

    Returns string

    +

    返回一个去除2段空白字符的字符串

    +
  • +
+
+
+ +

Static zfill

+
    +
  • zfill(str: string, width?: number): string
  • +
+
    +
  • + +
    +
    +

    给数字字符前面添 "0"

    +
    +
    +
    +trace( StringFormat.zfill('1') );
    +// 01
    +
    +trace( StringFormat.zfill('16', 5) );
    +// 00016
    +
    +trace( StringFormat.zfill('-3', 3) );
    +// -03
    +
    +
    +
    +

    Parameters

    +
      +
    • +
      str: string
      +
      +

      要进行处理的字符串

      +
      +
    • +
    • +
      Default value width: number = 2
      +
      +

      处理后字符串的长度, + 如果str.length >= width,将不做任何处理直接返回原始的str。

      +
      +
    • +
    +

    Returns string

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_textureutils_.es.textureutils.html b/source/docs/classes/_ecs_utils_textureutils_.es.textureutils.html new file mode 100644 index 00000000..3367594b --- /dev/null +++ b/source/docs/classes/_ecs_utils_textureutils_.es.textureutils.html @@ -0,0 +1,386 @@ + + + + + + TextureUtils | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TextureUtils

+
+
+
+
+
+
+
+
+
+

纹理帮助类

+
+
+
+
+

Hierarchy

+
    +
  • + TextureUtils +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Static sharedCanvas

+
sharedCanvas: HTMLCanvasElement
+ +
+
+ +

Static sharedContext

+
sharedContext: CanvasRenderingContext2D
+ +
+
+
+

Methods

+
+ +

Static convertImageToCanvas

+
    +
  • convertImageToCanvas(texture: Texture, rect?: Rectangle): HTMLCanvasElement
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      texture: Texture
      +
    • +
    • +
      Optional rect: Rectangle
      +
    • +
    +

    Returns HTMLCanvasElement

    +
  • +
+
+
+ +

Static eliFoTevas

+
    +
  • eliFoTevas(type: string, texture: Texture, filePath: string, rect?: Rectangle, encoderOptions?: any): void
  • +
+
    +
  • + +
    +
    +

    有些杀毒软件认为 saveToFile 可能是一个病毒文件

    +
    +
    +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    • +
      texture: Texture
      +
    • +
    • +
      filePath: string
      +
    • +
    • +
      Optional rect: Rectangle
      +
    • +
    • +
      Optional encoderOptions: any
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static getPixel32

+
    +
  • getPixel32(texture: Texture, x: number, y: number): number[]
  • +
+ +
+
+ +

Static getPixels

+
    +
  • getPixels(texture: Texture, x: number, y: number, width?: number, height?: number): number[]
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      texture: Texture
      +
    • +
    • +
      x: number
      +
    • +
    • +
      y: number
      +
    • +
    • +
      Default value width: number = 1
      +
    • +
    • +
      Default value height: number = 1
      +
    • +
    +

    Returns number[]

    +
  • +
+
+
+ +

Static toDataURL

+
    +
  • toDataURL(type: string, texture: Texture, rect?: Rectangle, encoderOptions?: any): string
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      type: string
      +
    • +
    • +
      texture: Texture
      +
    • +
    • +
      Optional rect: Rectangle
      +
    • +
    • +
      Optional encoderOptions: any
      +
    • +
    +

    Returns string

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Static property
  • +
  • Static method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_time_.es.time.html b/source/docs/classes/_ecs_utils_time_.es.time.html new file mode 100644 index 00000000..68fb1a0b --- /dev/null +++ b/source/docs/classes/_ecs_utils_time_.es.time.html @@ -0,0 +1,365 @@ + + + + + + Time | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Time

+
+
+
+
+
+
+
+
+
+

提供帧定时信息

+
+
+
+
+

Hierarchy

+
    +
  • + Time +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Static Private _lastTime

+
_lastTime: number = 0
+ +
+
+ +

Static _timeSinceSceneLoad

+
_timeSinceSceneLoad: any
+ +
+
+

自场景加载以来的总时间

+
+
+
+
+ +

Static deltaTime

+
deltaTime: number = 0
+ +
+
+

前一帧到当前帧的时间增量,按时间刻度进行缩放

+
+
+
+
+ +

Static frameCount

+
frameCount: number = 0
+ +
+
+

已传递的帧总数

+
+
+
+
+ +

Static timeScale

+
timeScale: number = 1
+ +
+
+

时间刻度缩放

+
+
+
+
+ +

Static unscaledDeltaTime

+
unscaledDeltaTime: any
+ +
+
+

deltaTime的未缩放版本。不受时间尺度的影响

+
+
+
+
+
+

Methods

+
+ +

Static checkEvery

+
    +
  • checkEvery(interval: number): boolean
  • +
+
    +
  • + +
    +
    +

    允许在间隔检查。只应该使用高于delta的间隔值,否则它将始终返回true。

    +
    +
    +

    Parameters

    +
      +
    • +
      interval: number
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Static sceneChanged

+
    +
  • sceneChanged(): void
  • +
+ +
+
+ +

Static update

+
    +
  • update(currentTime: number): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Static property
  • +
  • Static method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_ecs_utils_timeutils_.timeutils.html b/source/docs/classes/_ecs_utils_timeutils_.timeutils.html new file mode 100644 index 00000000..eeca9b51 --- /dev/null +++ b/source/docs/classes/_ecs_utils_timeutils_.timeutils.html @@ -0,0 +1,582 @@ + + + + + + TimeUtils | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TimeUtils

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TimeUtils +
  • +
+
+
+

Index

+
+ +
+
+
+

Methods

+
+ +

Static dateId

+
    +
  • dateId(t?: Date): number
  • +
+
    +
  • + +
    +
    +

    计算日期ID

    +
    +
    +

    Parameters

    +
      +
    • +
      Default value t: Date = null
      +
    • +
    +

    Returns number

    +

    日期ID

    +
  • +
+
+
+ +

Static diffDay

+
    +
  • diffDay(a: Date, b: Date, fixOne?: boolean): number
  • +
+
    +
  • + +
    +
    +

    计算俩日期时间差,如果a比b小,返回负数

    +
    +
    +

    Parameters

    +
      +
    • +
      a: Date
      +
    • +
    • +
      b: Date
      +
    • +
    • +
      Default value fixOne: boolean = false
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Static formatDate

+
    +
  • formatDate(date: Date): string
  • +
+ +
+
+ +

Static formatDateTime

+
    +
  • formatDateTime(date: Date): string
  • +
+ +
+
+ +

Static getFirstDayOfWeek

+
    +
  • getFirstDayOfWeek(d?: Date): Date
  • +
+
    +
  • + +
    +
    +

    获取本周一 凌晨时间

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional d: Date
      +
    • +
    +

    Returns Date

    +
  • +
+
+
+ +

Static getFirstOfDay

+
    +
  • getFirstOfDay(d?: Date): Date
  • +
+ +
+
+ +

Static getNextFirstOfDay

+
    +
  • getNextFirstOfDay(d?: Date): Date
  • +
+ +
+
+ +

Static monthId

+
    +
  • monthId(d?: Date): number
  • +
+
    +
  • + +
    +
    +

    计算月份ID

    +
    +
    +

    Parameters

    +
      +
    • +
      Default value d: Date = null
      +
      +

      指定计算日期

      +
      +
    • +
    +

    Returns number

    +

    月ID

    +
  • +
+
+
+ +

Static parseDate

+
    +
  • parseDate(s: string): Date
  • +
+
    +
  • + +
    +
    +

    Parameters

    +
      +
    • +
      s: string
      +
    • +
    +

    Returns Date

    +

    s 2018-12-12 或者 2018-12-12 12:12:12

    +
  • +
+
+
+ +

Static secondToTime

+
    +
  • secondToTime(time?: number, partition?: string, showHour?: boolean): string
  • +
+
    +
  • + +
    +
    +

    秒数转换为时间形式。

    +
    +
    +

    Parameters

    +
      +
    • +
      Default value time: number = 0
      +
      +

      秒数

      +
      +
    • +
    • +
      Default value partition: string = ":"
      +
      +

      分隔符

      +
      +
    • +
    • +
      Default value showHour: boolean = true
      +
      +

      是否显示小时

      +
      +
    • +
    +

    Returns string

    +

    返回一个以分隔符分割的时, 分, 秒

    +

    比如: time = 4351; secondToTime(time)返回字符串01:12:31;

    +
  • +
+
+
+ +

Static timeToMillisecond

+
    +
  • timeToMillisecond(time: string, partition?: string): string
  • +
+
    +
  • + +
    +
    +

    时间形式转换为毫秒数。

    +
    +
    +
    throws
    +

    Error Exception

    +

    用法1 trace(MillisecondTransform.timeToMillisecond("00:60:00")) + 输出 3600000

    +

    用法2 trace(MillisecondTransform.timeToMillisecond("00.60.00",".")) + 输出 3600000

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      time: string
      +
      +

      以指定分隔符分割的时间字符串

      +
      +
    • +
    • +
      Default value partition: string = ":"
      +
      +

      分隔符

      +
      +
    • +
    +

    Returns string

    +

    毫秒数显示的字符串

    +
  • +
+
+
+ +

Static weekId

+
    +
  • weekId(d?: Date, first?: boolean): number
  • +
+
    +
  • + +
    +
    +

    计算周ID

    +
    +
    +

    Parameters

    +
      +
    • +
      Default value d: Date = null
      +
      +

      指定计算日期

      +
      +
    • +
    • +
      Default value first: boolean = true
      +
    • +
    +

    Returns number

    +

    周ID

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_effects_gaussianblureffect_.es.gaussianblureffect.html b/source/docs/classes/_graphics_effects_gaussianblureffect_.es.gaussianblureffect.html new file mode 100644 index 00000000..07bb0fef --- /dev/null +++ b/source/docs/classes/_graphics_effects_gaussianblureffect_.es.gaussianblureffect.html @@ -0,0 +1,596 @@ + + + + + + GaussianBlurEffect | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class GaussianBlurEffect

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + CustomFilter +
      +
    • + GaussianBlurEffect +
    • +
    +
  • +
+
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $fragmentSrc

+
$fragmentSrc: string
+ +
+
+
+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Private $id

+
$id: number
+ +
+
+
+
+ +

Private $obj

+
$obj: any
+ +
+
+
native
+

Render

+
+
+
+
+
+ +

Private $shaderKey

+
$shaderKey: string
+ +
+
+
+
+ +

Private $uniforms

+
$uniforms: any
+ +
+
+
+
+ +

Private $vertexSrc

+
$vertexSrc: string
+ +
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

padding

+
padding: number
+ +
+
+

滤镜的内边距 + 如果自定义滤镜所需区域比原区域大(描边等),需要手动设置

+
+
+
version
+

Egret 4.1.0

+
+
platform
+

Web

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Private paddingBottom

+
paddingBottom: number
+ +
+
+
+
+ +

Private paddingLeft

+
paddingLeft: number
+ +
+
+
+
+ +

Private paddingRight

+
paddingRight: number
+ +
+
+
+
+ +

Private paddingTop

+
paddingTop: number
+ +
+
+
+
+ +

Private type

+
type: string
+ +
+
+
+
+ +

Readonly uniforms

+
uniforms: any
+ +
+
+

着色器中uniform的初始值(key,value一一对应),目前仅支持数字和数组。

+
+
+
version
+

Egret 4.1.0

+
+
platform
+

Web

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static Private blur_frag

+
blur_frag: string = "precision mediump float;\n" +"uniform sampler2D uSampler;\n" +"uniform float screenWidth;\n" +"uniform float screenHeight;\n" +"float normpdf(in float x, in float sigma)\n" +"{\n" +"return 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;\n" +"}\n" +"void main()\n" +"{\n" +"vec3 c = texture2D(uSampler, gl_FragCoord.xy / vec2(screenWidth, screenHeight).xy).rgb;\n" +"const int mSize = 11;\n" +"const int kSize = (mSize - 1)/2;\n" +"float kernel[mSize];\n" +"vec3 final_colour = vec3(0.0);\n" +"float sigma = 7.0;\n" +"float z = 0.0;\n" +"for (int j = 0; j <= kSize; ++j)\n" +"{\n" +"kernel[kSize+j] = kernel[kSize-j] = normpdf(float(j),sigma);\n" +"}\n" +"for (int j = 0; j < mSize; ++j)\n" +"{\n" +"z += kernel[j];\n" +"}\n" +"for (int i = -kSize; i <= kSize; ++i)\n" +"{\n" +"for (int j = -kSize; j <= kSize; ++j)\n" +"{\n" +"final_colour += kernel[kSize+j]*kernel[kSize+i]*texture2D(uSampler, (gl_FragCoord.xy+vec2(float(i),float(j))) / vec2(screenWidth, screenHeight).xy).rgb;\n" +"}\n}\n" +"gl_FragColor = vec4(final_colour/(z*z), 1.0);\n" +"}"
+ +
+
+
+

Methods

+
+ +

Private $toJson

+
    +
  • $toJson(): string
  • +
+ +
+
+ +

onPropertyChange

+
    +
  • onPropertyChange(): void
  • +
+ +
+
+ +

Protected updatePadding

+
    +
  • updatePadding(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Constructor
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_effects_polygonlighteffect_.es.polygonlighteffect.html b/source/docs/classes/_graphics_effects_polygonlighteffect_.es.polygonlighteffect.html new file mode 100644 index 00000000..5a80be22 --- /dev/null +++ b/source/docs/classes/_graphics_effects_polygonlighteffect_.es.polygonlighteffect.html @@ -0,0 +1,610 @@ + + + + + + PolygonLightEffect | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class PolygonLightEffect

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + CustomFilter +
      +
    • + PolygonLightEffect +
    • +
    +
  • +
+
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private $fragmentSrc

+
$fragmentSrc: string
+ +
+
+
+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Private $id

+
$id: number
+ +
+
+
+
+ +

Private $obj

+
$obj: any
+ +
+
+
native
+

Render

+
+
+
+
+
+ +

Private $shaderKey

+
$shaderKey: string
+ +
+
+
+
+ +

Private $uniforms

+
$uniforms: any
+ +
+
+
+
+ +

Private $vertexSrc

+
$vertexSrc: string
+ +
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

padding

+
padding: number
+ +
+
+

滤镜的内边距 + 如果自定义滤镜所需区域比原区域大(描边等),需要手动设置

+
+
+
version
+

Egret 4.1.0

+
+
platform
+

Web

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Private paddingBottom

+
paddingBottom: number
+ +
+
+
+
+ +

Private paddingLeft

+
paddingLeft: number
+ +
+
+
+
+ +

Private paddingRight

+
paddingRight: number
+ +
+
+
+
+ +

Private paddingTop

+
paddingTop: number
+ +
+
+
+
+ +

Private type

+
type: string
+ +
+
+
+
+ +

Readonly uniforms

+
uniforms: any
+ +
+
+

着色器中uniform的初始值(key,value一一对应),目前仅支持数字和数组。

+
+
+
version
+

Egret 4.1.0

+
+
platform
+

Web

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static Private fragmentSrc

+
fragmentSrc: string = "precision lowp float;\n" +"varying vec2 vTextureCoord;\n" +"uniform sampler2D uSampler;\n" +"#define SAMPLE_COUNT 15\n" +"uniform vec2 _sampleOffsets[SAMPLE_COUNT];\n" +"uniform float _sampleWeights[SAMPLE_COUNT];\n" +"void main(void) {\n" +"vec4 c = vec4(0, 0, 0, 0);\n" +"for( int i = 0; i < SAMPLE_COUNT; i++ )\n" +" c += texture2D( uSampler, vTextureCoord + _sampleOffsets[i] ) * _sampleWeights[i];\n" +"gl_FragColor = c;\n" +"}"
+ +
+
+ +

Static Private vertSrc

+
vertSrc: string = "attribute vec2 aVertexPosition;\n" +"attribute vec2 aTextureCoord;\n" +"uniform vec2 projectionVector;\n" +"varying vec2 vTextureCoord;\n" +"const vec2 center = vec2(-1.0, 1.0);\n" +"void main(void) {\n" +" gl_Position = vec4( (aVertexPosition / projectionVector) + center , 0.0, 1.0);\n" +" vTextureCoord = aTextureCoord;\n" +"}"
+ +
+
+
+

Methods

+
+ +

Private $toJson

+
    +
  • $toJson(): string
  • +
+ +
+
+ +

onPropertyChange

+
    +
  • onPropertyChange(): void
  • +
+ +
+
+ +

Protected updatePadding

+
    +
  • updatePadding(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Constructor
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_graphics_.es.graphics.html b/source/docs/classes/_graphics_graphics_.es.graphics.html new file mode 100644 index 00000000..af63d10a --- /dev/null +++ b/source/docs/classes/_graphics_graphics_.es.graphics.html @@ -0,0 +1,223 @@ + + + + + + Graphics | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Graphics

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Graphics +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

pixelTexture

+
pixelTexture: Sprite
+ +
+
+

用于绘制矩形、线条、圆等的精灵。 + 将在启动时生成,但你可以用你的图集中的精灵代替,以减少纹理交换。应该是一个1x1的白色像素

+
+
+
+
+ +

Static Instance

+
Instance: Graphics
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_graphicscapabilities_.es.graphicscapabilities.html b/source/docs/classes/_graphics_graphicscapabilities_.es.graphicscapabilities.html new file mode 100644 index 00000000..9545976c --- /dev/null +++ b/source/docs/classes/_graphics_graphicscapabilities_.es.graphicscapabilities.html @@ -0,0 +1,531 @@ + + + + + + GraphicsCapabilities | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class GraphicsCapabilities

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Capabilities +
      +
    • + GraphicsCapabilities +
    • +
    +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

Static Readonly boundingClientHeight

+
boundingClientHeight: number
+ +
+
+

客户端边界高度。 + 该值在文档类初始化之前始终是0。 + 该值在派发 Event.RESIZE 以及 StageOrientationEvent.ORIENTATION_CHANGE 之后会发生改变。

+
+
+
version
+

Egret 3.1.3

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static Readonly boundingClientWidth

+
boundingClientWidth: number
+ +
+
+

客户端边界宽度。 + 该值在文档类初始化之前始终是0。 + 该值在派发 Event.RESIZE 以及 StageOrientationEvent.ORIENTATION_CHANGE 之后会发生改变。

+
+
+
version
+

Egret 3.1.3

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static Readonly engineVersion

+
engineVersion: string
+ +
+
+

Egret 的版本号。

+
+
+
version
+

Egret 3.2.0

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static Readonly isMobile

+
isMobile: boolean
+ +
+
+

表示程序内容是否运行在移动设备中(例如移动电话或平板电脑)。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static Readonly language

+
language: string
+ +
+
+

表示运行内容的系统的语言代码。语言指定为 ISO 639-1 中的小写双字母语言代码。 + 对于中文,另外使用 ISO 3166 中的大写双字母国家/地区代码,以区分简体中文和繁体中文。
+ 以下是可能但不限于的语言和值:

+
    +
  • 简体中文 zh-CN
  • +
  • 繁体中文 zh-TW
  • +
  • 英语 en
  • +
  • 日语 ja
  • +
  • 韩语 ko
  • +
+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static Readonly os

+
os: string
+ +
+
+

指示当前的操作系统。os 属性返回下列字符串:

+
    +
  • 苹果手机操作系统 "iOS"
  • +
  • 安卓手机操作系统 "Android"
  • +
  • 微软手机操作系统 "Windows Phone"
  • +
  • 微软桌面操作系统 "Windows PC"
  • +
  • 苹果桌面操作系统 "Mac OS"
  • +
  • 未知操作系统 "Unknown"
  • +
+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static Readonly renderMode

+
renderMode: string
+ +
+
+

当前渲染模式。

+
+
+
version
+

Egret 3.0.7

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static Readonly runtimeType

+
runtimeType: string
+ +
+
+

指示当前的运行类型。runtimeType 属性返回下列字符串:

+
    +
  • 运行在Web上 egret.RuntimeType.WEB
  • +
  • 运行在Runtime2.0上 egret.RuntimeType.RUNTIME2
  • +
  • 运行在微信小游戏上 egret.RuntimeType.WXGAME
  • +
+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Static supportedCompressedTexture

+
supportedCompressedTexture: SupportedCompressedTexture
+ +
+
+

supported compressed texture

+
+
+
version
+

Egret 5.2.19

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+
+

Methods

+
+ +

initialize

+ + +
+
+ +

Private platformInitialize

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_graphicsdevice_.es.graphicsdevice.html b/source/docs/classes/_graphics_graphicsdevice_.es.graphicsdevice.html new file mode 100644 index 00000000..da71fff2 --- /dev/null +++ b/source/docs/classes/_graphics_graphicsdevice_.es.graphicsdevice.html @@ -0,0 +1,276 @@ + + + + + + GraphicsDevice | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class GraphicsDevice

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + GraphicsDevice +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private _viewport

+
_viewport: Viewport
+ +
+
+ +

graphicsCapabilities

+
graphicsCapabilities: GraphicsCapabilities
+ +
+
+
+

Accessors

+
+ +

viewport

+ + +
+
+
+

Methods

+
+ +

Private setup

+
    +
  • setup(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Private property
  • +
  • Private method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_postprocessing_postprocessor_.es.postprocessor.html b/source/docs/classes/_graphics_postprocessing_postprocessor_.es.postprocessor.html new file mode 100644 index 00000000..ac418236 --- /dev/null +++ b/source/docs/classes/_graphics_postprocessing_postprocessor_.es.postprocessor.html @@ -0,0 +1,402 @@ + + + + + + PostProcessor | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class PostProcessor

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

effect

+
effect: Filter
+ +
+
+ +

enabled

+
enabled: boolean
+ +
+
+ +

scene

+
scene: Scene
+ +
+
+ +

shape

+
shape: Shape
+ +
+
+ +

Static default_vert

+
default_vert: string = "attribute vec2 aVertexPosition;\n" +"attribute vec2 aTextureCoord;\n" +"attribute vec2 aColor;\n" +"uniform vec2 projectionVector;\n" +//"uniform vec2 offsetVector;\n" +"varying vec2 vTextureCoord;\n" +"varying vec4 vColor;\n" +"const vec2 center = vec2(-1.0, 1.0);\n" +"void main(void) {\n" +"gl_Position = vec4( (aVertexPosition / projectionVector) + center , 0.0, 1.0);\n" +"vTextureCoord = aTextureCoord;\n" +"vColor = vec4(aColor.x, aColor.x, aColor.x, aColor.x);\n" +"}"
+ +
+
+
+

Methods

+
+ +

Protected drawFullscreenQuad

+
    +
  • drawFullscreenQuad(): void
  • +
+ +
+
+ +

onAddedToScene

+
    +
  • onAddedToScene(scene: Scene): void
  • +
+ +
+
+ +

onSceneBackBufferSizeChanged

+
    +
  • onSceneBackBufferSizeChanged(newWidth: number, newHeight: number): void
  • +
+ +
+
+ +

process

+
    +
  • process(): void
  • +
+ +
+
+ +

unload

+
    +
  • unload(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected method
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_postprocessing_postprocessors_gaussianblurpostprocessor_.es.gaussianblurpostprocessor.html b/source/docs/classes/_graphics_postprocessing_postprocessors_gaussianblurpostprocessor_.es.gaussianblurpostprocessor.html new file mode 100644 index 00000000..ebe5e15d --- /dev/null +++ b/source/docs/classes/_graphics_postprocessing_postprocessors_gaussianblurpostprocessor_.es.gaussianblurpostprocessor.html @@ -0,0 +1,410 @@ + + + + + + GaussianBlurPostProcessor | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class GaussianBlurPostProcessor

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

effect

+
effect: Filter
+ +
+
+ +

enabled

+
enabled: boolean
+ +
+
+ +

scene

+
scene: Scene
+ +
+
+ +

shape

+
shape: Shape
+ +
+
+ +

Static default_vert

+
default_vert: string = "attribute vec2 aVertexPosition;\n" +"attribute vec2 aTextureCoord;\n" +"attribute vec2 aColor;\n" +"uniform vec2 projectionVector;\n" +//"uniform vec2 offsetVector;\n" +"varying vec2 vTextureCoord;\n" +"varying vec4 vColor;\n" +"const vec2 center = vec2(-1.0, 1.0);\n" +"void main(void) {\n" +"gl_Position = vec4( (aVertexPosition / projectionVector) + center , 0.0, 1.0);\n" +"vTextureCoord = aTextureCoord;\n" +"vColor = vec4(aColor.x, aColor.x, aColor.x, aColor.x);\n" +"}"
+ +
+
+
+

Methods

+
+ +

Protected drawFullscreenQuad

+
    +
  • drawFullscreenQuad(): void
  • +
+ +
+
+ +

onAddedToScene

+
    +
  • onAddedToScene(scene: Scene): void
  • +
+ +
+
+ +

onSceneBackBufferSizeChanged

+
    +
  • onSceneBackBufferSizeChanged(newWidth: number, newHeight: number): void
  • +
+ +
+
+ +

process

+
    +
  • process(): void
  • +
+ +
+
+ +

unload

+
    +
  • unload(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_renderers_defaultrenderer_.es.defaultrenderer.html b/source/docs/classes/_graphics_renderers_defaultrenderer_.es.defaultrenderer.html new file mode 100644 index 00000000..ba664fa7 --- /dev/null +++ b/source/docs/classes/_graphics_renderers_defaultrenderer_.es.defaultrenderer.html @@ -0,0 +1,585 @@ + + + + + + DefaultRenderer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class DefaultRenderer

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Renderer +
      +
    • + DefaultRenderer +
    • +
    +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

camera

+
camera: Camera
+ +
+
+

渲染器用于渲染的摄像机(实际上是用于剔除的变换矩阵和边界) + 不是必须的 + Renderer子类可以选择调用beginRender时使用的摄像头

+
+
+
+
+ +

Readonly renderOrder

+
renderOrder: number = 0
+ +
+
+

指定场景调用渲染器的顺序

+
+
+
+
+ +

renderTexture

+
renderTexture: RenderTexture
+ +
+
+

如果renderTarget不是null,这个渲染器将渲染到渲染目标而不是屏幕

+
+
+
+
+ +

shouldDebugRender

+
shouldDebugRender: boolean = true
+ +
+
+

这个渲染器的标志,决定它是否应该调试渲染。 + render方法接收一个bool (debugRenderEnabled),让渲染器知道全局调试渲染是否打开/关闭。 + 渲染器然后使用本地bool来决定它是否应该调试渲染。

+
+
+
+
+
+

Accessors

+
+ +

wantsToRenderToSceneRenderTarget

+
    +
  • get wantsToRenderToSceneRenderTarget(): boolean
  • +
+ +
+
+
+

Methods

+
+ +

Protected beginRender

+
    +
  • beginRender(cam: Camera): void
  • +
+ +
+
+ +

compareTo

+
    +
  • compareTo(other: Renderer): number
  • +
+ +
+
+ +

Protected debugRender

+ + +
+
+ +

onAddedToScene

+
    +
  • onAddedToScene(scene: Scene): void
  • +
+ +
+
+ +

onSceneBackBufferSizeChanged

+
    +
  • onSceneBackBufferSizeChanged(newWidth: number, newHeight: number): void
  • +
+ +
+
+ +

render

+
    +
  • render(scene: Scene): void
  • +
+ +
+
+ +

Protected renderAfterStateCheck

+ + +
+
+ +

unload

+
    +
  • unload(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_renderers_irenderable_.es.renderablecomparer.html b/source/docs/classes/_graphics_renderers_irenderable_.es.renderablecomparer.html new file mode 100644 index 00000000..ada60130 --- /dev/null +++ b/source/docs/classes/_graphics_renderers_irenderable_.es.renderablecomparer.html @@ -0,0 +1,196 @@ + + + + + + RenderableComparer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class RenderableComparer

+
+
+
+
+
+
+
+
+
+

用于排序IRenderables的比较器

+
+
+
+
+

Hierarchy

+
    +
  • + RenderableComparer +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

compare

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_renderers_polygonlight_polylight_.es.polylight.html b/source/docs/classes/_graphics_renderers_polygonlight_polylight_.es.polylight.html new file mode 100644 index 00000000..837625c9 --- /dev/null +++ b/source/docs/classes/_graphics_renderers_polygonlight_polylight_.es.polylight.html @@ -0,0 +1,1605 @@ + + + + + + PolyLight | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class PolyLight

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new PolyLight(radius: number, color: number, power: number): PolyLight
  • +
+ +
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

Protected _areBoundsDirty

+
_areBoundsDirty: boolean = true
+ +
+
+ +

Protected _bounds

+
_bounds: Rectangle = new Rectangle()
+ +
+
+ +

Private _indices

+
_indices: number[] = []
+ +
+
+ +

Private _lightEffect

+
_lightEffect: any
+ +
+
+ +

Protected _localOffset

+
_localOffset: Vector2 = Vector2.zero
+ +
+
+ +

Protected _radius

+
_radius: number
+ +
+
+ +

Protected _renderLayer

+
_renderLayer: number = 0
+ +
+
+ +

color

+
color: number = 0
+ +
+
+

用于着色器处理精灵

+
+
+
+
+ +

debugDisplayObject

+
debugDisplayObject: DisplayObjectContainer = new egret.DisplayObjectContainer()
+ +
+
+

用于装载debug使用的显示容器

+
+
+
+
+ +

debugRenderEnabled

+
debugRenderEnabled: boolean = true
+ +
+
+ +

displayObject

+
displayObject: DisplayObject = new egret.DisplayObject()
+ +
+
+

用于装载egret显示对象

+
+
+
+
+ +

entity

+
entity: Entity
+ +
+
+

此组件附加的实体

+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

hollowShape

+
hollowShape: Shape = new egret.Shape()
+ +
+
+ +

pixelShape

+
pixelShape: Shape = new egret.Shape()
+ +
+
+ +

power

+
power: number
+ +
+
+ +

updateInterval

+
updateInterval: number = 1
+ +
+
+

更新该组件的时间间隔。这与实体的更新间隔无关。

+
+
+
+
+
+

Accessors

+
+ +

bounds

+ + +
+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果组件和实体都已启用,则为。当启用该组件时,将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

height

+
    +
  • get height(): number
  • +
+ +
+
+ +

isVisible

+
    +
  • get isVisible(): boolean
  • +
  • set isVisible(value: boolean): void
  • +
+ +
+
+ +

localOffset

+
    +
  • get localOffset(): Vector2
  • +
  • set localOffset(value: Vector2): void
  • +
+ +
+
+ +

radius

+
    +
  • get radius(): number
  • +
  • set radius(value: number): void
  • +
+ +
+
+ +

renderLayer

+
    +
  • get renderLayer(): number
  • +
  • set renderLayer(value: number): void
  • +
+ +
+
+ +

transform

+ + +
+
+ +

updateOrder

+
    +
  • get updateOrder(): number
  • +
  • set updateOrder(value: number): void
  • +
+ +
+
+ +

width

+
    +
  • get width(): number
  • +
+ +
+
+
+

Methods

+
+ +

compareTo

+ + +
+
+ +

Private computeTriangleIndices

+
    +
  • computeTriangleIndices(totalTris?: number): void
  • +
+ +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(): void
  • +
+
    +
  • + +
    +
    +

    当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

isVisibleFromCamera

+
    +
  • isVisibleFromCamera(camera: Camera): boolean
  • +
+ +
+
+ +

onAddedToEntity

+
    +
  • onAddedToEntity(): void
  • +
+
    +
  • + +
    +
    +

    在提交所有挂起的组件更改后,将该组件添加到场景时调用。此时,设置了实体字段和实体。场景也设定好了。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

Protected onBecameInvisible

+
    +
  • onBecameInvisible(): void
  • +
+ +
+
+ +

Protected onBecameVisible

+
    +
  • onBecameVisible(): void
  • +
+ +
+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

onEntityTransformChanged

+
    +
  • onEntityTransformChanged(comp: Component): void
  • +
+ +
+
+ +

onRemovedFromEntity

+
    +
  • onRemovedFromEntity(): void
  • +
+ +
+
+ +

render

+
    +
  • render(camera: Camera): void
  • +
+ +
+
+ +

reset

+
    +
  • reset(): void
  • +
+ +
+
+ +

setColor

+ + +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): this
  • +
+ +
+
+ +

setLocalOffset

+ + +
+
+ +

setRadius

+
    +
  • setRadius(radius: number): void
  • +
+ +
+
+ +

setRenderLayer

+ + +
+
+ +

setUpdateOrder

+
    +
  • setUpdateOrder(updateOrder: number): this
  • +
+ +
+
+ +

sync

+
    +
  • sync(camera: Camera): void
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Private property
  • +
  • Private method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_renderers_renderer_.es.renderer.html b/source/docs/classes/_graphics_renderers_renderer_.es.renderer.html new file mode 100644 index 00000000..9d03c160 --- /dev/null +++ b/source/docs/classes/_graphics_renderers_renderer_.es.renderer.html @@ -0,0 +1,592 @@ + + + + + + Renderer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Renderer

+
+
+
+
+
+
+
+
+
+

渲染器被添加到场景中并处理所有对RenderableComponent的实际调用

+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

Protected constructor

+ + +
+
+
+

Properties

+
+ +

camera

+
camera: Camera
+ +
+
+

渲染器用于渲染的摄像机(实际上是用于剔除的变换矩阵和边界) + 不是必须的 + Renderer子类可以选择调用beginRender时使用的摄像头

+
+
+
+
+ +

Readonly renderOrder

+
renderOrder: number = 0
+ +
+
+

指定场景调用渲染器的顺序

+
+
+
+
+ +

renderTexture

+
renderTexture: RenderTexture
+ +
+
+

如果renderTarget不是null,这个渲染器将渲染到渲染目标而不是屏幕

+
+
+
+
+ +

shouldDebugRender

+
shouldDebugRender: boolean = true
+ +
+
+

这个渲染器的标志,决定它是否应该调试渲染。 + render方法接收一个bool (debugRenderEnabled),让渲染器知道全局调试渲染是否打开/关闭。 + 渲染器然后使用本地bool来决定它是否应该调试渲染。

+
+
+
+
+
+

Accessors

+
+ +

wantsToRenderToSceneRenderTarget

+
    +
  • get wantsToRenderToSceneRenderTarget(): boolean
  • +
+
    +
  • + +
    +
    +

    如果为true,场景将使用场景渲染目标调用setRenderTarget。 + 如果渲染器有渲染纹理,默认实现返回true

    +
    +
    +

    Returns boolean

    +
  • +
+
+
+
+

Methods

+
+ +

Protected beginRender

+
    +
  • beginRender(cam: Camera): void
  • +
+ +
+
+ +

compareTo

+
    +
  • compareTo(other: Renderer): number
  • +
+ +
+
+ +

Protected debugRender

+ + +
+
+ +

onAddedToScene

+
    +
  • onAddedToScene(scene: Scene): void
  • +
+ +
+
+ +

onSceneBackBufferSizeChanged

+
    +
  • onSceneBackBufferSizeChanged(newWidth: number, newHeight: number): void
  • +
+
    +
  • + +
    +
    +

    当默认场景渲染目标被调整大小和当场景已经开始添加渲染器时调用

    +
    +
    +

    Parameters

    +
      +
    • +
      newWidth: number
      +
    • +
    • +
      newHeight: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Abstract render

+
    +
  • render(scene: Scene): any
  • +
+ +
+
+ +

Protected renderAfterStateCheck

+ + +
+
+ +

unload

+
    +
  • unload(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_renderers_renderlayerexcluderenderer_.es.renderlayerexcluderenderer.html b/source/docs/classes/_graphics_renderers_renderlayerexcluderenderer_.es.renderlayerexcluderenderer.html new file mode 100644 index 00000000..6e500a93 --- /dev/null +++ b/source/docs/classes/_graphics_renderers_renderlayerexcluderenderer_.es.renderlayerexcluderenderer.html @@ -0,0 +1,613 @@ + + + + + + RenderLayerExcludeRenderer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class RenderLayerExcludeRenderer

+
+
+
+
+
+
+
+
+
+

除了一个渲染层,只渲染所有的渲染器。 + 当与RenderLayerRenderer一起使用时,将UI渲染与游戏的其他部分分离开来。

+
+
+
+
+

Hierarchy

+
    +
  • + Renderer +
      +
    • + RenderLayerExcludeRenderer +
    • +
    +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

camera

+
camera: Camera
+ +
+
+

渲染器用于渲染的摄像机(实际上是用于剔除的变换矩阵和边界) + 不是必须的 + Renderer子类可以选择调用beginRender时使用的摄像头

+
+
+
+
+ +

excludedRenderLayers

+
excludedRenderLayers: number[]
+ +
+
+ +

Readonly renderOrder

+
renderOrder: number = 0
+ +
+
+

指定场景调用渲染器的顺序

+
+
+
+
+ +

renderTexture

+
renderTexture: RenderTexture
+ +
+
+

如果renderTarget不是null,这个渲染器将渲染到渲染目标而不是屏幕

+
+
+
+
+ +

shouldDebugRender

+
shouldDebugRender: boolean = true
+ +
+
+

这个渲染器的标志,决定它是否应该调试渲染。 + render方法接收一个bool (debugRenderEnabled),让渲染器知道全局调试渲染是否打开/关闭。 + 渲染器然后使用本地bool来决定它是否应该调试渲染。

+
+
+
+
+
+

Accessors

+
+ +

wantsToRenderToSceneRenderTarget

+
    +
  • get wantsToRenderToSceneRenderTarget(): boolean
  • +
+ +
+
+
+

Methods

+
+ +

Protected beginRender

+
    +
  • beginRender(cam: Camera): void
  • +
+ +
+
+ +

compareTo

+
    +
  • compareTo(other: Renderer): number
  • +
+ +
+
+ +

Protected debugRender

+ + +
+
+ +

onAddedToScene

+
    +
  • onAddedToScene(scene: Scene): void
  • +
+ +
+
+ +

onSceneBackBufferSizeChanged

+
    +
  • onSceneBackBufferSizeChanged(newWidth: number, newHeight: number): void
  • +
+ +
+
+ +

render

+
    +
  • render(scene: Scene): void
  • +
+ +
+
+ +

Protected renderAfterStateCheck

+ + +
+
+ +

unload

+
    +
  • unload(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_renderers_screenspacerenderer_.es.screenspacerenderer.html b/source/docs/classes/_graphics_renderers_screenspacerenderer_.es.screenspacerenderer.html new file mode 100644 index 00000000..e5405559 --- /dev/null +++ b/source/docs/classes/_graphics_renderers_screenspacerenderer_.es.screenspacerenderer.html @@ -0,0 +1,605 @@ + + + + + + ScreenSpaceRenderer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ScreenSpaceRenderer

+
+
+
+
+
+
+
+
+
+

渲染器使用自己的不移动的摄像机进行渲染。

+
+
+
+
+

Hierarchy

+
    +
  • + Renderer +
      +
    • + ScreenSpaceRenderer +
    • +
    +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new ScreenSpaceRenderer(renderOrder: number, ...renderLayers: number[]): ScreenSpaceRenderer
  • +
+ +
+
+
+

Properties

+
+ +

camera

+
camera: Camera
+ +
+
+

渲染器用于渲染的摄像机(实际上是用于剔除的变换矩阵和边界) + 不是必须的 + Renderer子类可以选择调用beginRender时使用的摄像头

+
+
+
+
+ +

renderLayers

+
renderLayers: number[]
+ +
+
+ +

Readonly renderOrder

+
renderOrder: number = 0
+ +
+
+

指定场景调用渲染器的顺序

+
+
+
+
+ +

renderTexture

+
renderTexture: RenderTexture
+ +
+
+

如果renderTarget不是null,这个渲染器将渲染到渲染目标而不是屏幕

+
+
+
+
+ +

shouldDebugRender

+
shouldDebugRender: boolean = true
+ +
+
+

这个渲染器的标志,决定它是否应该调试渲染。 + render方法接收一个bool (debugRenderEnabled),让渲染器知道全局调试渲染是否打开/关闭。 + 渲染器然后使用本地bool来决定它是否应该调试渲染。

+
+
+
+
+
+

Accessors

+
+ +

wantsToRenderToSceneRenderTarget

+
    +
  • get wantsToRenderToSceneRenderTarget(): boolean
  • +
+ +
+
+
+

Methods

+
+ +

Protected beginRender

+
    +
  • beginRender(cam: Camera): void
  • +
+ +
+
+ +

compareTo

+
    +
  • compareTo(other: Renderer): number
  • +
+ +
+
+ +

Protected debugRender

+ + +
+
+ +

onAddedToScene

+
    +
  • onAddedToScene(scene: Scene): void
  • +
+ +
+
+ +

onSceneBackBufferSizeChanged

+
    +
  • onSceneBackBufferSizeChanged(newWidth: number, newHeight: number): void
  • +
+ +
+
+ +

render

+
    +
  • render(scene: Scene): void
  • +
+ +
+
+ +

Protected renderAfterStateCheck

+ + +
+
+ +

unload

+
    +
  • unload(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_textures_gaussianblur_.es.gaussianblur.html b/source/docs/classes/_graphics_textures_gaussianblur_.es.gaussianblur.html new file mode 100644 index 00000000..1ca6b622 --- /dev/null +++ b/source/docs/classes/_graphics_textures_gaussianblur_.es.gaussianblur.html @@ -0,0 +1,413 @@ + + + + + + GaussianBlur | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class GaussianBlur

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + GaussianBlur +
  • +
+
+
+

Index

+
+ +
+
+
+

Methods

+
+ +

Static calculate1DSampleKernel

+
    +
  • calculate1DSampleKernel(deviation: number): FasterDictionary<{ x: number; y: number }, number>
  • +
+ +
+
+ +

Static calculate1DSampleKernelOfSize

+
    +
  • calculate1DSampleKernelOfSize(deviation: number, size: number): FasterDictionary<{ x: number; y: number }, number>
  • +
+ +
+
+ +

Static calculateNormalized1DSampleKernel

+
    +
  • calculateNormalized1DSampleKernel(deviation: number): FasterDictionary<{ x: number; y: number }, number>
  • +
+ +
+
+ +

Static createBlurredTexture

+
    +
  • createBlurredTexture(image: Texture, deviation?: number): void
  • +
+
    +
  • + +
    +
    +

    创建一个新的纹理,它是原始纹理的高斯模糊版本

    +
    +
    +

    Parameters

    +
      +
    • +
      image: Texture
      +
    • +
    • +
      Default value deviation: number = 1
      +
      +

      偏差

      +
      +
    • +
    +

    Returns void

    +

    模糊的纹理

    +
  • +
+
+
+ +

Static createBlurredTextureData

+
    +
  • createBlurredTextureData(srcData: Color[], width: number, height: number, deviation?: number): Color[]
  • +
+ +
+
+ +

Static gaussianConvolution

+ + +
+
+ +

Static normalizeMatrix

+ + +
+
+ +

Static processPoint

+
    +
  • processPoint(matrix: FasterDictionary<{ x: number; y: number }, number>, x: number, y: number, kernel: FasterDictionary<{ x: number; y: number }, number>, direction: number): number
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_transitions_fadetransition_.es.fadetransition.html b/source/docs/classes/_graphics_transitions_fadetransition_.es.fadetransition.html new file mode 100644 index 00000000..406404c3 --- /dev/null +++ b/source/docs/classes/_graphics_transitions_fadetransition_.es.fadetransition.html @@ -0,0 +1,579 @@ + + + + + + FadeTransition | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class FadeTransition

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private _alpha

+
_alpha: number = 0
+ +
+
+ +

Private _mask

+
_mask: Shape
+ +
+
+ +

delayBeforeFadeInDuration

+
delayBeforeFadeInDuration: number = 0.1
+ +
+
+ +

fadeEaseType

+
fadeEaseType: Function = egret.Ease.quadInOut
+ +
+
+ +

fadeOutDuration

+
fadeOutDuration: number = 0.4
+ +
+
+ +

fadeToColor

+
fadeToColor: number = 0
+ +
+
+ +

isNewSceneLoaded

+
isNewSceneLoaded: boolean
+ +
+
+

将此用于两个部分的转换。例如,淡出会先淡出到黑色,然后当isNewSceneLoaded为true,它会淡出。 + 对于场景过渡,isNewSceneLoaded应该在中点设置为true,这就标识一个新的场景被加载了。

+
+
+
+
+ +

loadsNewScene

+
loadsNewScene: boolean
+ +
+
+

是否加载新场景的标志

+
+
+
+
+ +

onScreenObscured

+
onScreenObscured: Function
+ +
+
+

在loadNextScene执行时调用。这在进行场景间过渡时很有用,这样你就知道什么时候可以更多地使用相机或者重置任何实体

+
+
+
+
+ +

onTransitionCompleted

+
onTransitionCompleted: Function
+ +
+
+

当转换完成执行时调用,以便可以调用其他工作,比如启动另一个转换。

+
+
+
+
+ +

Protected sceneLoadAction

+
sceneLoadAction: Function
+ +
+
+

返回新加载场景的函数

+
+
+
+
+
+

Accessors

+
+ +

hasPreviousSceneRender

+
    +
  • get hasPreviousSceneRender(): boolean
  • +
+ +
+
+
+

Methods

+
+ +

Protected loadNextScene

+
    +
  • loadNextScene(): Promise<void>
  • +
+ +
+
+ +

onBeginTransition

+
    +
  • onBeginTransition(): Promise<void>
  • +
+ +
+
+ +

preRender

+
    +
  • preRender(): void
  • +
+ +
+
+ +

render

+
    +
  • render(): void
  • +
+ +
+
+ +

tickEffectProgressProperty

+
    +
  • tickEffectProgressProperty(filter: CustomFilter, duration: number, easeType: Function, reverseDirection?: boolean): Promise<boolean>
  • +
+ +
+
+ +

Protected transitionComplete

+
    +
  • transitionComplete(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected method
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_transitions_scenetransition_.es.scenetransition.html b/source/docs/classes/_graphics_transitions_scenetransition_.es.scenetransition.html new file mode 100644 index 00000000..61715d67 --- /dev/null +++ b/source/docs/classes/_graphics_transitions_scenetransition_.es.scenetransition.html @@ -0,0 +1,503 @@ + + + + + + SceneTransition | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class SceneTransition

+
+
+
+
+
+
+
+
+
+

SceneTransition用于从一个场景过渡到另一个场景或在一个有效果的场景中过渡

+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private _hasPreviousSceneRender

+
_hasPreviousSceneRender: boolean
+ +
+
+ +

isNewSceneLoaded

+
isNewSceneLoaded: boolean
+ +
+
+

将此用于两个部分的转换。例如,淡出会先淡出到黑色,然后当isNewSceneLoaded为true,它会淡出。 + 对于场景过渡,isNewSceneLoaded应该在中点设置为true,这就标识一个新的场景被加载了。

+
+
+
+
+ +

loadsNewScene

+
loadsNewScene: boolean
+ +
+
+

是否加载新场景的标志

+
+
+
+
+ +

onScreenObscured

+
onScreenObscured: Function
+ +
+
+

在loadNextScene执行时调用。这在进行场景间过渡时很有用,这样你就知道什么时候可以更多地使用相机或者重置任何实体

+
+
+
+
+ +

onTransitionCompleted

+
onTransitionCompleted: Function
+ +
+
+

当转换完成执行时调用,以便可以调用其他工作,比如启动另一个转换。

+
+
+
+
+ +

Protected sceneLoadAction

+
sceneLoadAction: Function
+ +
+
+

返回新加载场景的函数

+
+
+
+
+
+

Accessors

+
+ +

hasPreviousSceneRender

+
    +
  • get hasPreviousSceneRender(): boolean
  • +
+ +
+
+
+

Methods

+
+ +

Protected loadNextScene

+
    +
  • loadNextScene(): Promise<void>
  • +
+ +
+
+ +

onBeginTransition

+
    +
  • onBeginTransition(): Promise<void>
  • +
+ +
+
+ +

preRender

+
    +
  • preRender(): void
  • +
+ +
+
+ +

render

+
    +
  • render(): void
  • +
+ +
+
+ +

tickEffectProgressProperty

+
    +
  • tickEffectProgressProperty(filter: CustomFilter, duration: number, easeType: Function, reverseDirection?: boolean): Promise<boolean>
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      filter: CustomFilter
      +
    • +
    • +
      duration: number
      +
    • +
    • +
      easeType: Function
      +
    • +
    • +
      Default value reverseDirection: boolean = false
      +
    • +
    +

    Returns Promise<boolean>

    +
  • +
+
+
+ +

Protected transitionComplete

+
    +
  • transitionComplete(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Protected property
  • +
  • Protected method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_transitions_windtransition_.es.windtransition.html b/source/docs/classes/_graphics_transitions_windtransition_.es.windtransition.html new file mode 100644 index 00000000..9df91bf1 --- /dev/null +++ b/source/docs/classes/_graphics_transitions_windtransition_.es.windtransition.html @@ -0,0 +1,626 @@ + + + + + + WindTransition | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class WindTransition

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private _mask

+
_mask: Shape
+ +
+
+ +

Private _windEffect

+
_windEffect: CustomFilter
+ +
+
+ +

duration

+
duration: number = 1
+ +
+
+ +

easeType

+
easeType: (t: number) => number = egret.Ease.quadOut
+ +
+

Type declaration

+
    +
  • +
      +
    • (t: number): number
    • +
    +
      +
    • +

      Parameters

      +
        +
      • +
        t: number
        +
      • +
      +

      Returns number

      +
    • +
    +
  • +
+
+
+
+ +

isNewSceneLoaded

+
isNewSceneLoaded: boolean
+ +
+
+

将此用于两个部分的转换。例如,淡出会先淡出到黑色,然后当isNewSceneLoaded为true,它会淡出。 + 对于场景过渡,isNewSceneLoaded应该在中点设置为true,这就标识一个新的场景被加载了。

+
+
+
+
+ +

loadsNewScene

+
loadsNewScene: boolean
+ +
+
+

是否加载新场景的标志

+
+
+
+
+ +

onScreenObscured

+
onScreenObscured: Function
+ +
+
+

在loadNextScene执行时调用。这在进行场景间过渡时很有用,这样你就知道什么时候可以更多地使用相机或者重置任何实体

+
+
+
+
+ +

onTransitionCompleted

+
onTransitionCompleted: Function
+ +
+
+

当转换完成执行时调用,以便可以调用其他工作,比如启动另一个转换。

+
+
+
+
+ +

Protected sceneLoadAction

+
sceneLoadAction: Function
+ +
+
+

返回新加载场景的函数

+
+
+
+
+
+

Accessors

+
+ +

hasPreviousSceneRender

+
    +
  • get hasPreviousSceneRender(): boolean
  • +
+ +
+
+ +

size

+
    +
  • set size(value: number): void
  • +
+ +
+
+ +

windSegments

+
    +
  • set windSegments(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

Protected loadNextScene

+
    +
  • loadNextScene(): Promise<void>
  • +
+ +
+
+ +

onBeginTransition

+
    +
  • onBeginTransition(): Promise<void>
  • +
+ +
+
+ +

preRender

+
    +
  • preRender(): void
  • +
+ +
+
+ +

render

+
    +
  • render(): void
  • +
+ +
+
+ +

tickEffectProgressProperty

+
    +
  • tickEffectProgressProperty(filter: CustomFilter, duration: number, easeType: Function, reverseDirection?: boolean): Promise<boolean>
  • +
+ +
+
+ +

Protected transitionComplete

+
    +
  • transitionComplete(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected method
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_graphics_viewport_.es.viewport.html b/source/docs/classes/_graphics_viewport_.es.viewport.html new file mode 100644 index 00000000..da4f4622 --- /dev/null +++ b/source/docs/classes/_graphics_viewport_.es.viewport.html @@ -0,0 +1,425 @@ + + + + + + Viewport | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Viewport

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Viewport +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Viewport(x: number, y: number, width: number, height: number): Viewport
  • +
+ +
+
+
+

Properties

+
+ +

Private _height

+
_height: number
+ +
+
+ +

Private _maxDepth

+
_maxDepth: number
+ +
+
+ +

Private _minDepth

+
_minDepth: number
+ +
+
+ +

Private _width

+
_width: number
+ +
+
+ +

Private _x

+
_x: number
+ +
+
+ +

Private _y

+
_y: number
+ +
+
+
+

Accessors

+
+ +

aspectRatio

+
    +
  • get aspectRatio(): number
  • +
+ +
+
+ +

bounds

+ + +
+
+ +

height

+
    +
  • get height(): number
  • +
  • set height(value: number): void
  • +
+ +
+
+ +

width

+
    +
  • get width(): number
  • +
  • set width(value: number): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_math_bezier_.es.bezier.html b/source/docs/classes/_math_bezier_.es.bezier.html new file mode 100644 index 00000000..b5eb0c86 --- /dev/null +++ b/source/docs/classes/_math_bezier_.es.bezier.html @@ -0,0 +1,439 @@ + + + + + + Bezier | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Bezier

+
+
+
+
+
+
+
+
+
+

贝塞尔帮助类

+
+
+
+
+

Hierarchy

+
    +
  • + Bezier +
  • +
+
+
+

Index

+
+ +
+
+
+

Methods

+
+ +

Static getFirstDerivative

+ + +
+
+ +

Static getFirstDerivativeThree

+ + +
+
+ +

Static getOptimizedDrawingPoints

+ +
    +
  • + +
    +
    +

    递归地细分bezier曲线,直到满足距离校正 + 在这种算法中,平面切片的点要比曲面切片少。返回完成后应返回到ListPool的合并列表。

    +
    +
    +

    Parameters

    +
      +
    • +
      start: Vector2
      +
    • +
    • +
      firstCtrlPoint: Vector2
      +
    • +
    • +
      secondCtrlPoint: Vector2
      +
    • +
    • +
      end: Vector2
      +
    • +
    • +
      Default value distanceTolerance: number = 1
      +
      +
      +
    • +
    +

    Returns Vector2[]

    +
  • +
+
+
+ +

Static getPoint

+ + +
+
+ +

Static getPointThree

+ + +
+
+ +

Static Private recursiveGetOptimizedDrawingPoints

+ +
    +
  • + +
    +
    +

    递归地细分bezier曲线,直到满足距离校正。在这种算法中,平面切片的点要比曲面切片少。

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_math_flags_.es.flags.html b/source/docs/classes/_math_flags_.es.flags.html new file mode 100644 index 00000000..989a41e1 --- /dev/null +++ b/source/docs/classes/_math_flags_.es.flags.html @@ -0,0 +1,387 @@ + + + + + + Flags | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Flags

+
+
+
+
+
+
+
+
+
+

帮助处理位掩码的实用程序类 + 除了isFlagSet之外,所有方法都期望flag参数是一个非移位的标志 + 允许您使用普通的(0、1、2、3等)来设置/取消您的标记

+
+
+
+
+

Hierarchy

+
    +
  • + Flags +
  • +
+
+
+

Index

+
+ +
+
+
+

Methods

+
+ +

Static invertFlags

+
    +
  • invertFlags(self: Ref<number>): void
  • +
+
    +
  • + +
    +
    +

    反转数值集合位

    +
    +
    +

    Parameters

    +
      +
    • +
      self: Ref<number>
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static isFlagSet

+
    +
  • isFlagSet(self: number, flag: number): boolean
  • +
+
    +
  • + +
    +
    +

    检查位标志是否已在数值中设置 + 检查期望标志是否已经移位

    +
    +
    +

    Parameters

    +
      +
    • +
      self: number
      +
    • +
    • +
      flag: number
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Static isUnshiftedFlagSet

+
    +
  • isUnshiftedFlagSet(self: number, flag: number): boolean
  • +
+
    +
  • + +
    +
    +

    检查位标志是否在数值中设置

    +
    +
    +

    Parameters

    +
      +
    • +
      self: number
      +
    • +
    • +
      flag: number
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Static setFlag

+
    +
  • setFlag(self: Ref<number>, flag: number): void
  • +
+
    +
  • + +
    +
    +

    设置标志位

    +
    +
    +

    Parameters

    +
      +
    • +
      self: Ref<number>
      +
    • +
    • +
      flag: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static setFlagExclusive

+
    +
  • setFlagExclusive(self: Ref<number>, flag: number): void
  • +
+
    +
  • + +
    +
    +

    设置数值标志位,移除所有已经设置的标志

    +
    +
    +

    Parameters

    +
      +
    • +
      self: Ref<number>
      +
    • +
    • +
      flag: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static unsetFlag

+
    +
  • unsetFlag(self: Ref<number>, flag: number): void
  • +
+
    +
  • + +
    +
    +

    取消标志位

    +
    +
    +

    Parameters

    +
      +
    • +
      self: Ref<number>
      +
    • +
    • +
      flag: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_math_mathhelper_.es.mathhelper.html b/source/docs/classes/_math_mathhelper_.es.mathhelper.html new file mode 100644 index 00000000..7f83dd6a --- /dev/null +++ b/source/docs/classes/_math_mathhelper_.es.mathhelper.html @@ -0,0 +1,624 @@ + + + + + + MathHelper | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class MathHelper

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + MathHelper +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Static Readonly Deg2Rad

+
Deg2Rad: 0.0174532924 = 0.0174532924
+ +
+
+ +

Static Readonly Epsilon

+
Epsilon: number = 0.00001
+ +
+
+ +

Static Readonly PiOver2

+
PiOver2: number = Math.PI / 2
+ +
+
+

表示pi除以2的值(1.57079637)

+
+
+
+
+ +

Static Readonly Rad2Deg

+
Rad2Deg: 57.29578 = 57.29578
+ +
+
+
+

Methods

+
+ +

Static angleBetweenVectors

+ + +
+
+ +

Static approach

+
    +
  • approach(start: number, end: number, shift: number): number
  • +
+
    +
  • + +
    +
    +

    由上移量向上移。start可以小于或大于end。例如:开始是2,结束是10,移位是4,结果是6

    +
    +
    +

    Parameters

    +
      +
    • +
      start: number
      +
    • +
    • +
      end: number
      +
    • +
    • +
      shift: number
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Static clamp

+
    +
  • clamp(value: number, min: number, max: number): number
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      value: number
      +
    • +
    • +
      min: number
      +
    • +
    • +
      max: number
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Static clamp01

+
    +
  • clamp01(value: number): number
  • +
+
    +
  • + +
    +
    +

    数值限定在0-1之间

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Static incrementWithWrap

+
    +
  • incrementWithWrap(t: number, length: number): number
  • +
+
    +
  • + +
    +
    +

    增加t并确保它总是大于或等于0并且小于长度

    +
    +
    +

    Parameters

    +
      +
    • +
      t: number
      +
    • +
    • +
      length: number
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Static isEven

+
    +
  • isEven(value: number): boolean
  • +
+
    +
  • + +
    +
    +

    如果值为偶数,返回true

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Static lerp

+
    +
  • lerp(value1: number, value2: number, amount: number): number
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      value1: number
      +
    • +
    • +
      value2: number
      +
    • +
    • +
      amount: number
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Static map

+
    +
  • map(value: number, leftMin: number, leftMax: number, rightMin: number, rightMax: number): number
  • +
+
    +
  • + +
    +
    +

    mapps值(在leftMin - leftMax范围内)到rightMin - rightMax范围内的值

    +
    +
    +

    Parameters

    +
      +
    • +
      value: number
      +
    • +
    • +
      leftMin: number
      +
    • +
    • +
      leftMax: number
      +
    • +
    • +
      rightMin: number
      +
    • +
    • +
      rightMax: number
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Static pointOnCirlce

+
    +
  • pointOnCirlce(circleCenter: Vector2, radius: number, angleInDegrees: number): Vector2
  • +
+
    +
  • + +
    +
    +

    给定圆心、半径和角度,得到圆周上的一个点。0度是3点钟。

    +
    +
    +

    Parameters

    +
      +
    • +
      circleCenter: Vector2
      +
    • +
    • +
      radius: number
      +
    • +
    • +
      angleInDegrees: number
      +
      +
      +
    • +
    +

    Returns Vector2

    +
  • +
+
+
+ +

Static toDegrees

+
    +
  • toDegrees(radians: number): number
  • +
+
    +
  • + +
    +
    +

    将弧度转换成角度。

    +
    +
    +

    Parameters

    +
      +
    • +
      radians: number
      +
      +

      用弧度表示的角

      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Static toRadians

+
    +
  • toRadians(degrees: number): number
  • +
+
    +
  • + +
    +
    +

    将角度转换为弧度

    +
    +
    +

    Parameters

    +
      +
    • +
      degrees: number
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Static property
  • +
  • Static method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_math_matrix2d_.es.matrix2d.html b/source/docs/classes/_math_matrix2d_.es.matrix2d.html new file mode 100644 index 00000000..5be67da1 --- /dev/null +++ b/source/docs/classes/_math_matrix2d_.es.matrix2d.html @@ -0,0 +1,2071 @@ + + + + + + Matrix2D | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Matrix2D

+
+
+
+
+
+
+
+
+
+

表示右手3 * 3的浮点矩阵,可以存储平移、缩放和旋转信息。

+
+
+
+
+

Hierarchy

+
    +
  • + Matrix +
      +
    • + Matrix2D +
    • +
    +
  • +
+
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Matrix2D(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number): Matrix2D
  • +
+
    +
  • + +
    +
    +

    使用指定参数创建一个 Matrix 对象

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      Optional a: number
      +
      +
      +

      缩放或旋转图像时影响像素沿 x 轴定位的值。

      +
      +
      +
    • +
    • +
      Optional b: number
      +
      +
      +

      旋转或倾斜图像时影响像素沿 y 轴定位的值。

      +
      +
      +
    • +
    • +
      Optional c: number
      +
      +
      +

      旋转或倾斜图像时影响像素沿 x 轴定位的值。

      +
      +
      +
    • +
    • +
      Optional d: number
      +
      +
      +

      缩放或旋转图像时影响像素沿 y 轴定位的值。

      +
      +
      +
    • +
    • +
      Optional tx: number
      +
      +
      +

      沿 x 轴平移每个点的距离。

      +
      +
      +
    • +
    • +
      Optional ty: number
      +
      +
      +

      沿 y 轴平移每个点的距离。

      +
      +
      +
    • +
    +

    Returns Matrix2D

    +
  • +
+
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

a

+
a: number
+ +
+
+

缩放或旋转图像时影响像素沿 x 轴定位的值

+
+
+
default
+

1

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

b

+
b: number
+ +
+
+

旋转或倾斜图像时影响像素沿 y 轴定位的值

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

c

+
c: number
+ +
+
+

旋转或倾斜图像时影响像素沿 x 轴定位的值

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

d

+
d: number
+ +
+
+

缩放或旋转图像时影响像素沿 y 轴定位的值

+
+
+
default
+

1

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

tx

+
tx: number
+ +
+
+

沿 x 轴平移每个点的距离

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

ty

+
ty: number
+ +
+
+

沿 y 轴平移每个点的距离

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+
+

Accessors

+
+ +

m11

+
    +
  • get m11(): number
  • +
  • set m11(value: number): void
  • +
+ +
+
+ +

m12

+
    +
  • get m12(): number
  • +
  • set m12(value: number): void
  • +
+ +
+
+ +

m21

+
    +
  • get m21(): number
  • +
  • set m21(value: number): void
  • +
+ +
+
+ +

m22

+
    +
  • get m22(): number
  • +
  • set m22(value: number): void
  • +
+ +
+
+ +

m31

+
    +
  • get m31(): number
  • +
  • set m31(value: number): void
  • +
+ +
+
+ +

m32

+
    +
  • get m32(): number
  • +
  • set m32(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

Private $getScaleX

+
    +
  • $getScaleX(): number
  • +
+ +
+
+ +

Private $getScaleY

+
    +
  • $getScaleY(): number
  • +
+ +
+
+ +

Private $getSkewX

+
    +
  • $getSkewX(): number
  • +
+ +
+
+ +

Private $getSkewY

+
    +
  • $getSkewY(): number
  • +
+ +
+
+ +

Private $invertInto

+
    +
  • $invertInto(target: Matrix): void
  • +
+ +
+
+ +

Private $preMultiplyInto

+
    +
  • $preMultiplyInto(other: Matrix, target: Matrix): void
  • +
+ +
+
+ +

Private $transformBounds

+
    +
  • $transformBounds(bounds: Rectangle): void
  • +
+ +
+
+ +

Private $updateScaleAndRotation

+
    +
  • $updateScaleAndRotation(scaleX: number, scaleY: number, skewX: number, skewY: number): void
  • +
+ +
+
+ +

add

+ + +
+
+ +

append

+
    +
  • append(a: number, b: number, c: number, d: number, tx: number, ty: number): Matrix
  • +
+
    +
  • + +
    +
    +

    后置矩阵

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      a: number
      +
      +

      缩放或旋转图像时影响像素沿 x 轴定位的值

      +
      +
    • +
    • +
      b: number
      +
      +

      缩放或旋转图像时影响像素沿 y 轴定位的值

      +
      +
    • +
    • +
      c: number
      +
      +

      缩放或旋转图像时影响像素沿 x 轴定位的值

      +
      +
    • +
    • +
      d: number
      +
      +

      缩放或旋转图像时影响像素沿 y 轴定位的值

      +
      +
    • +
    • +
      tx: number
      +
      +

      沿 x 轴平移每个点的距离

      +
      +
    • +
    • +
      ty: number
      +
      +

      沿 y 轴平移每个点的距离

      +
      +
    • +
    +

    Returns Matrix

    +

    矩阵自身

    +
  • +
+
+
+ +

clone

+
    +
  • clone(): Matrix
  • +
+
    +
  • + +
    +
    +

    返回一个新的 Matrix 对象,它是此矩阵的克隆,带有与所含对象完全相同的副本。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns Matrix

    +
  • +
+
+
+ +

concat

+
    +
  • concat(other: Matrix): void
  • +
+
    +
  • + +
    +
    +

    将某个矩阵与当前矩阵连接,从而将这两个矩阵的几何效果有效地结合在一起。在数学术语中,将两个矩阵连接起来与使用矩阵乘法将它们结合起来是相同的。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      other: Matrix
      +
      +

      要连接到源矩阵的矩阵。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

copyFrom

+
    +
  • copyFrom(other: Matrix): Matrix
  • +
+
    +
  • + +
    +
    +

    将源 Matrix 对象中的所有矩阵数据复制到调用方 Matrix 对象中。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      other: Matrix
      +
      +

      要拷贝的目标矩阵

      +
      +
    • +
    +

    Returns Matrix

    +
  • +
+
+
+ +

createBox

+
    +
  • createBox(scaleX: number, scaleY: number, rotation?: number, tx?: number, ty?: number): void
  • +
+
    +
  • + +
    +
    +

    包括用于缩放、旋转和转换的参数。当应用于矩阵时,该方法会基于这些参数设置矩阵的值。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      scaleX: number
      +
      +

      水平缩放所用的系数

      +
      +
    • +
    • +
      scaleY: number
      +
      +

      垂直缩放所用的系数

      +
      +
    • +
    • +
      Optional rotation: number
      +
      +

      旋转量(以弧度为单位)

      +
      +
    • +
    • +
      Optional tx: number
      +
      +

      沿 x 轴向右平移(移动)的像素数

      +
      +
    • +
    • +
      Optional ty: number
      +
      +

      沿 y 轴向下平移(移动)的像素数

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

createGradientBox

+
    +
  • createGradientBox(width: number, height: number, rotation?: number, tx?: number, ty?: number): void
  • +
+
    +
  • + +
    +
    +

    创建 Graphics 类的 beginGradientFill() 和 lineGradientStyle() 方法所需的矩阵的特定样式。 + 宽度和高度被缩放为 scaleX/scaleY 对,而 tx/ty 值偏移了宽度和高度的一半。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      width: number
      +
      +

      渐变框的宽度

      +
      +
    • +
    • +
      height: number
      +
      +

      渐变框的高度

      +
      +
    • +
    • +
      Optional rotation: number
      +
      +

      旋转量(以弧度为单位)

      +
      +
    • +
    • +
      Optional tx: number
      +
      +

      沿 x 轴向右平移的距离(以像素为单位)。此值将偏移 width 参数的一半

      +
      +
    • +
    • +
      Optional ty: number
      +
      +

      沿 y 轴向下平移的距离(以像素为单位)。此值将偏移 height 参数的一半

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

deltaTransformPoint

+
    +
  • deltaTransformPoint(point: Point): Point
  • +
+
    +
  • + +
    +
    +

    如果给定预转换坐标空间中的点,则此方法返回发生转换后该点的坐标。 + 与使用 transformPoint() 方法应用的标准转换不同,deltaTransformPoint() 方法的转换不考虑转换参数 tx 和 ty。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      point: Point
      +
      +

      想要获得其矩阵转换结果的点

      +
      +
    • +
    +

    Returns Point

    +

    由应用矩阵转换所产生的点

    +
  • +
+
+
+ +

determinant

+
    +
  • determinant(): number
  • +
+ +
+
+ +

divide

+ + +
+
+ +

equals

+
    +
  • equals(other: Matrix): boolean
  • +
+
    +
  • + +
    +
    +

    是否与另一个矩阵数据相等

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      other: Matrix
      +
      +

      要比较的另一个矩阵对象。

      +
      +
    • +
    +

    Returns boolean

    +

    是否相等,ture表示相等。

    +
  • +
+
+
+ +

identity

+ + +
+
+ +

invert

+ + +
+
+ +

multiply

+ + +
+
+ +

prepend

+
    +
  • prepend(a: number, b: number, c: number, d: number, tx: number, ty: number): Matrix
  • +
+
    +
  • + +
    +
    +

    前置矩阵

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      a: number
      +
      +

      缩放或旋转图像时影响像素沿 x 轴定位的值

      +
      +
    • +
    • +
      b: number
      +
      +

      缩放或旋转图像时影响像素沿 y 轴定位的值

      +
      +
    • +
    • +
      c: number
      +
      +

      缩放或旋转图像时影响像素沿 x 轴定位的值

      +
      +
    • +
    • +
      d: number
      +
      +

      缩放或旋转图像时影响像素沿 y 轴定位的值

      +
      +
    • +
    • +
      tx: number
      +
      +

      沿 x 轴平移每个点的距离

      +
      +
    • +
    • +
      ty: number
      +
      +

      沿 y 轴平移每个点的距离

      +
      +
    • +
    +

    Returns Matrix

    +

    矩阵自身

    +
  • +
+
+
+ +

release

+ + +
+
+ +

rotate

+ + +
+
+ +

scale

+
    +
  • scale(sx: number, sy: number): Matrix2D
  • +
+ +
+
+ +

setTo

+
    +
  • setTo(a: number, b: number, c: number, d: number, tx: number, ty: number): Matrix
  • +
+
    +
  • + +
    +
    +

    将 Matrix 的成员设置为指定值

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      a: number
      +
      +

      缩放或旋转图像时影响像素沿 x 轴定位的值。

      +
      +
    • +
    • +
      b: number
      +
      +

      旋转或倾斜图像时影响像素沿 y 轴定位的值。

      +
      +
    • +
    • +
      c: number
      +
      +

      旋转或倾斜图像时影响像素沿 x 轴定位的值。

      +
      +
    • +
    • +
      d: number
      +
      +

      缩放或旋转图像时影响像素沿 y 轴定位的值。

      +
      +
    • +
    • +
      tx: number
      +
      +

      沿 x 轴平移每个点的距离。

      +
      +
    • +
    • +
      ty: number
      +
      +

      沿 y 轴平移每个点的距离。

      +
      +
    • +
    +

    Returns Matrix

    +
  • +
+
+
+ +

substract

+ + +
+
+ +

toString

+
    +
  • toString(): string
  • +
+
    +
  • + +
    +
    +

    返回将 Matrix 对象表示的几何转换应用于指定点所产生的结果。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns string

    +

    一个字符串,它包含 Matrix 对象的属性值:a、b、c、d、tx 和 ty。

    +
  • +
+
+
+ +

transformPoint

+
    +
  • transformPoint(pointX: number, pointY: number, resultPoint?: Point): Point
  • +
+
    +
  • + +
    +
    +

    返回将 Matrix 对象表示的几何转换应用于指定点所产生的结果。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      pointX: number
      +
      +

      想要获得其矩阵转换结果的点的x坐标。

      +
      +
    • +
    • +
      pointY: number
      +
      +

      想要获得其矩阵转换结果的点的y坐标。

      +
      +
    • +
    • +
      Optional resultPoint: Point
      +
      +

      框架建议尽可能减少创建对象次数来优化性能,可以从外部传入一个复用的Point对象来存储结果,若不传入将创建一个新的Point对象返回。

      +
      +
    • +
    +

    Returns Point

    +

    由应用矩阵转换所产生的点。

    +
  • +
+
+
+ +

translate

+
    +
  • translate(dx: number, dy: number): Matrix2D
  • +
+ +
+
+ +

Static create

+ +
    +
  • + +
    +
    +

    从对象池中取出或创建一个新的Matrix对象。

    +
    +
    +

    Returns Matrix2D

    +
  • +
+
+
+ +

Static release

+
    +
  • release(matrix: Matrix): void
  • +
+
    +
  • + +
    +
    +

    释放一个Matrix实例到对象池

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      matrix: Matrix
      +
      +

      需要回收的 matrix

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_math_rectangle_.es.rectangle.html b/source/docs/classes/_math_rectangle_.es.rectangle.html new file mode 100644 index 00000000..12b455a0 --- /dev/null +++ b/source/docs/classes/_math_rectangle_.es.rectangle.html @@ -0,0 +1,1982 @@ + + + + + + Rectangle | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Rectangle

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Rectangle(x?: number, y?: number, width?: number, height?: number): Rectangle
  • +
+
    +
  • + +
    +
    +

    创建一个新 Rectangle 对象,其左上角由 x 和 y 参数指定,并具有指定的 width 和 height 参数。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      Optional x: number
      +
      +
      +

      矩形左上角的 x 坐标。

      +
      +
      +
    • +
    • +
      Optional y: number
      +
      +
      +

      矩形左上角的 y 坐标。

      +
      +
      +
    • +
    • +
      Optional width: number
      +
      +
      +

      矩形的宽度(以像素为单位)。

      +
      +
      +
    • +
    • +
      Optional height: number
      +
      +
      +

      矩形的高度(以像素为单位)。

      +
      +
      +
    • +
    +

    Returns Rectangle

    +
  • +
+
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

_tempMat

+
_tempMat: Matrix2D
+ +
+
+ +

_transformMat

+
_transformMat: Matrix2D
+ +
+
+ +

bottom

+
bottom: number
+ +
+
+

y 和 height 属性的和。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

bottomRight

+
bottomRight: Point
+ +
+
+

由 right 和 bottom 属性的值确定的 Rectangle 对象的右下角的位置。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

height

+
height: number
+ +
+
+

The height of the rectangle, in pixels.

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

left

+
left: number
+ +
+
+

矩形左上角的 x 坐标。更改 Rectangle 对象的 left 属性对 y 和 height 属性没有影响。但是,它会影响 width 属性,而更改 x 值不会影响 width 属性。 + left 属性的值等于 x 属性的值。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

right

+
right: number
+ +
+
+

x 和 width 属性的和。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

top

+
top: number
+ +
+
+

矩形左上角的 y 坐标。更改 Rectangle 对象的 top 属性对 x 和 width 属性没有影响。但是,它会影响 height 属性,而更改 y 值不会影响 height 属性。
+ top 属性的值等于 y 属性的值。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

topLeft

+
topLeft: Point
+ +
+
+

由该点的 x 和 y 坐标确定的 Rectangle 对象左上角的位置。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

width

+
width: number
+ +
+
+

矩形的宽度(以像素为单位)。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

x

+
x: number
+ +
+
+

矩形左上角的 x 坐标。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

y

+
y: number
+ +
+
+

矩形左上角的 y 坐标。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+
+

Accessors

+
+ +

center

+ + +
+
+ +

location

+ + +
+
+ +

max

+ + +
+
+ +

size

+ + +
+
+
+

Methods

+
+ +

Private $getBaseHeight

+
    +
  • $getBaseHeight(angle: number): number
  • +
+ +
+
+ +

Private $getBaseWidth

+
    +
  • $getBaseWidth(angle: number): number
  • +
+ +
+
+ +

Private $intersectInPlace

+
    +
  • $intersectInPlace(clipRect: Rectangle): Rectangle
  • +
+ +
+
+ +

calculateBounds

+
    +
  • calculateBounds(parentPosition: Vector2, position: Vector2, origin: Vector2, scale: Vector2, rotation: number, width: number, height: number): void
  • +
+ +
+
+ +

clone

+
    +
  • clone(): Rectangle
  • +
+
    +
  • + +
    +
    +

    返回一个新的 Rectangle 对象,其 x、y、width 和 height 属性的值与原始 Rectangle 对象的对应值相同。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns Rectangle

    +

    新的 Rectangle 对象,其 x、y、width 和 height 属性的值与原始 Rectangle 对象的对应值相同。

    +
  • +
+
+
+ +

contains

+
    +
  • contains(x: number, y: number): boolean
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      x: number
      +
    • +
    • +
      y: number
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

containsPoint

+
    +
  • containsPoint(point: Point): boolean
  • +
+
    +
  • + +
    +
    +

    确定由此 Rectangle 对象定义的矩形区域内是否包含指定的点。 + 此方法与 Rectangle.contains() 方法类似,只不过它采用 Point 对象作为参数。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      point: Point
      +
      +

      包含点对象

      +
      +
    • +
    +

    Returns boolean

    +

    如果包含,返回true,否则返回false

    +
  • +
+
+
+ +

containsRect

+
    +
  • containsRect(value: Rectangle): boolean
  • +
+
    +
  • + +
    +
    +

    获取所提供的矩形是否在此矩形的边界内

    +
    +
    +

    Parameters

    + +

    Returns boolean

    +
  • +
+
+
+ +

copyFrom

+
    +
  • copyFrom(sourceRect: Rectangle): Rectangle
  • +
+
    +
  • + +
    +
    +

    将源 Rectangle 对象中的所有矩形数据复制到调用方 Rectangle 对象中。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      sourceRect: Rectangle
      +
      +

      要从中复制数据的 Rectangle 对象。

      +
      +
    • +
    +

    Returns Rectangle

    +
  • +
+
+
+ +

equals

+
    +
  • equals(toCompare: Rectangle): boolean
  • +
+
    +
  • + +
    +
    +

    确定在 toCompare 参数中指定的对象是否等于此 Rectangle 对象。 + 此方法将某个对象的 x、y、width 和 height 属性与此 Rectangle 对象所对应的相同属性进行比较。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      toCompare: Rectangle
      +
      +

      要与此 Rectangle 对象进行比较的矩形。

      +
      +
    • +
    +

    Returns boolean

    +

    如果对象具有与此 Rectangle 对象完全相同的 x、y、width 和 height 属性值,则返回 true 值,否则返回 false。

    +
  • +
+
+
+ +

getClosestPointOnBoundsToOrigin

+
    +
  • getClosestPointOnBoundsToOrigin(): Vector2
  • +
+ +
+
+ +

getClosestPointOnRectangleBorderToPoint

+ + +
+
+ +

getHalfSize

+ + +
+
+ +

inflate

+
    +
  • inflate(dx: number, dy: number): void
  • +
+
    +
  • + +
    +
    +

    按指定量增加 Rectangle 对象的大小(以像素为单位) + 保持 Rectangle 对象的中心点不变,使用 dx 值横向增加它的大小,使用 dy 值纵向增加它的大小。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      dx: number
      +
      +

      Rectangle 对象横向增加的值。

      +
      +
    • +
    • +
      dy: number
      +
      +

      Rectangle 对象纵向增加的值。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

inflatePoint

+
    +
  • inflatePoint(point: Point): void
  • +
+
    +
  • + +
    +
    +

    增加 Rectangle 对象的大小。此方法与 Rectangle.inflate() 方法类似,只不过它采用 Point 对象作为参数。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      point: Point
      +
      +

      The x property of this Point object is used to increase the horizontal dimension of the Rectangle object. The y property is used to increase the vertical dimension of the Rectangle object.

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

intersection

+
    +
  • intersection(toIntersect: Rectangle): Rectangle
  • +
+
    +
  • + +
    +
    +

    如果在 toIntersect 参数中指定的 Rectangle 对象与此 Rectangle 对象相交,则返回交集区域作为 Rectangle 对象。如果矩形不相交, + 则此方法返回一个空的 Rectangle 对象,其属性设置为 0。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      toIntersect: Rectangle
      +
      +

      要对照比较以查看其是否与此 Rectangle 对象相交的 Rectangle 对象。

      +
      +
    • +
    +

    Returns Rectangle

    +

    等于交集区域的 Rectangle 对象。如果该矩形不相交,则此方法返回一个空的 Rectangle 对象;即,其 x、y、width 和 + height 属性均设置为 0 的矩形。

    +
  • +
+
+
+ +

intersects

+
    +
  • intersects(value: Rectangle): boolean
  • +
+
    +
  • + +
    +
    +

    如果其他相交矩形返回true

    +
    +
    +

    Parameters

    +
      +
    • +
      value: Rectangle
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

isEmpty

+
    +
  • isEmpty(): boolean
  • +
+
    +
  • + +
    +
    +

    确定此 Rectangle 对象是否为空。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns boolean

    +

    如果 Rectangle 对象的宽度或高度小于等于 0,则返回 true 值,否则返回 false。

    +
  • +
+
+
+ +

offset

+
    +
  • offset(dx: number, dy: number): void
  • +
+
    +
  • + +
    +
    +

    按指定量调整 Rectangle 对象的位置(由其左上角确定)。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      dx: number
      +
      +

      将 Rectangle 对象的 x 值移动此数量。

      +
      +
    • +
    • +
      dy: number
      +
      +

      将 Rectangle 对象的 t 值移动此数量。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

offsetPoint

+
    +
  • offsetPoint(point: Point): void
  • +
+
    +
  • + +
    +
    +

    将 Point 对象用作参数来调整 Rectangle 对象的位置。此方法与 Rectangle.offset() 方法类似,只不过它采用 Point 对象作为参数。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      point: Point
      +
      +

      要用于偏移此 Rectangle 对象的 Point 对象。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

rayIntersects

+
    +
  • rayIntersects(ray: Ray2D, distance: Ref<number>): boolean
  • +
+ +
+
+ +

setEmpty

+
    +
  • setEmpty(): void
  • +
+
    +
  • + +
    +
    +

    将 Rectangle 对象的所有属性设置为 0。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

setTo

+
    +
  • setTo(x: number, y: number, width: number, height: number): Rectangle
  • +
+
    +
  • + +
    +
    +

    将 Rectangle 的成员设置为指定值

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      x: number
      +
      +

      矩形左上角的 x 坐标。

      +
      +
    • +
    • +
      y: number
      +
      +

      矩形左上角的 y 坐标。

      +
      +
    • +
    • +
      width: number
      +
      +

      矩形的宽度(以像素为单位)。

      +
      +
    • +
    • +
      height: number
      +
      +

      矩形的高度(以像素为单位)。

      +
      +
    • +
    +

    Returns Rectangle

    +
  • +
+
+
+ +

toString

+
    +
  • toString(): string
  • +
+
    +
  • + +
    +
    +

    生成并返回一个字符串,该字符串列出 Rectangle 对象的水平位置和垂直位置以及高度和宽度。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns string

    +

    一个字符串,它列出了 Rectangle 对象的下列各个属性的值:x、y、width 和 height。

    +
  • +
+
+
+ +

union

+
    +
  • union(toUnion: Rectangle): Rectangle
  • +
+
    +
  • + +
    +
    +

    通过填充两个矩形之间的水平和垂直空间,将这两个矩形组合在一起以创建一个新的 Rectangle 对象。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      toUnion: Rectangle
      +
      +

      要添加到此 Rectangle 对象的 Rectangle 对象。

      +
      +
    • +
    +

    Returns Rectangle

    +

    充当两个矩形的联合的新 Rectangle 对象。

    +
  • +
+
+
+ +

Static create

+
    +
  • create(): Rectangle
  • +
+
    +
  • + +
    +
    +

    从对象池中取出或创建一个新的Rectangle对象。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns Rectangle

    +
  • +
+
+
+ +

Static fromMinMax

+
    +
  • fromMinMax(minX: number, minY: number, maxX: number, maxY: number): Rectangle
  • +
+
    +
  • + +
    +
    +

    创建一个矩形的最小/最大点(左上角,右下角的点)

    +
    +
    +

    Parameters

    +
      +
    • +
      minX: number
      +
    • +
    • +
      minY: number
      +
    • +
    • +
      maxX: number
      +
    • +
    • +
      maxY: number
      +
      +
      +
    • +
    +

    Returns Rectangle

    +
  • +
+
+
+ +

Static rectEncompassingPoints

+ + +
+
+ +

Static release

+
    +
  • release(rect: Rectangle): void
  • +
+
    +
  • + +
    +
    +

    释放一个Rectangle实例到对象池

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      rect: Rectangle
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_math_subpixelfloat_.es.subpixelfloat.html b/source/docs/classes/_math_subpixelfloat_.es.subpixelfloat.html new file mode 100644 index 00000000..c1614e22 --- /dev/null +++ b/source/docs/classes/_math_subpixelfloat_.es.subpixelfloat.html @@ -0,0 +1,250 @@ + + + + + + SubpixelFloat | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class SubpixelFloat

+
+
+
+
+
+
+
+
+
+

它存储值,直到累计的总数大于1。一旦超过1,该值将在调用update时添加到amount中 + 一般用法如下:

+
+

let deltaMove = this.velocity * es.Time.deltaTime; + deltaMove.x = this._x.update(deltaMove.x); + deltaMove.y = this._y.update(deltaMove.y);

+
+
+
+

Hierarchy

+
    +
  • + SubpixelFloat +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

remainder

+
remainder: number = 0
+ +
+
+
+

Methods

+
+ +

reset

+
    +
  • reset(): void
  • +
+ +
+
+ +

update

+
    +
  • update(amount: number): number
  • +
+
    +
  • + +
    +
    +

    以amount递增余数,将值截断,存储新的余数并将amount设置为当前值

    +
    +
    +

    Parameters

    +
      +
    • +
      amount: number
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_math_subpixelvector2_.es.subpixelvector2.html b/source/docs/classes/_math_subpixelvector2_.es.subpixelvector2.html new file mode 100644 index 00000000..3f6b6372 --- /dev/null +++ b/source/docs/classes/_math_subpixelvector2_.es.subpixelvector2.html @@ -0,0 +1,253 @@ + + + + + + SubpixelVector2 | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class SubpixelVector2

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + SubpixelVector2 +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

_x

+
_x: SubpixelFloat = new SubpixelFloat()
+ +
+
+ +

_y

+
_y: SubpixelFloat = new SubpixelFloat()
+ +
+
+
+

Methods

+
+ +

reset

+
    +
  • reset(): void
  • +
+ +
+
+ +

update

+
    +
  • update(amount: Vector2): void
  • +
+
    +
  • + +
    +
    +

    以数量递增s/y余数,将值截断为整数,存储新的余数并将amount设置为当前值

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_math_vector2_.es.vector2.html b/source/docs/classes/_math_vector2_.es.vector2.html new file mode 100644 index 00000000..8a4c4b61 --- /dev/null +++ b/source/docs/classes/_math_vector2_.es.vector2.html @@ -0,0 +1,1101 @@ + + + + + + Vector2 | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Vector2

+
+
+
+
+
+
+
+
+
+

2d 向量

+
+
+
+
+

Hierarchy

+
    +
  • + Vector2 +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+
    +
  • x
  • +
  • y
  • +
+
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Vector2(x?: number, y?: number): Vector2
  • +
+
    +
  • + +
    +
    +

    从两个值构造一个带有X和Y的二维向量。

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional x: number
      +
      +
      +

      二维空间中的x坐标

      +
      +
      +
    • +
    • +
      Optional y: number
      +
      +
      +

      二维空间的y坐标

      +
      +
      +
    • +
    +

    Returns Vector2

    +
  • +
+
+
+
+

Properties

+
+ +

x

+
x: number = 0
+ +
+
+ +

y

+
y: number = 0
+ +
+
+
+

Accessors

+
+ +

Static one

+ + +
+
+ +

Static unitX

+ + +
+
+ +

Static unitY

+ + +
+
+ +

Static zero

+ + +
+
+
+

Methods

+
+ +

add

+ + +
+
+ +

divide

+ + +
+
+ +

equals

+
    +
  • equals(other: Vector2 | object): boolean
  • +
+
    +
  • + +
    +
    +

    比较当前实例是否等于指定的对象

    +
    +
    +

    Parameters

    +
      +
    • +
      other: Vector2 | object
      +
      +

      要比较的对象

      +
      +
    • +
    +

    Returns boolean

    +

    如果实例相同true 否则false

    +
  • +
+
+
+ +

length

+
    +
  • length(): number
  • +
+ +
+
+ +

lengthSquared

+
    +
  • lengthSquared(): number
  • +
+
    +
  • + +
    +
    +

    返回该Vector2的平方长度

    +
    +
    +

    Returns number

    +

    这个Vector2的平方长度

    +
  • +
+
+
+ +

multiply

+ + +
+
+ +

normalize

+
    +
  • normalize(): void
  • +
+
    +
  • + +
    +
    +

    将这个Vector2变成一个方向相同的单位向量

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

round

+ + +
+
+ +

subtract

+
    +
  • subtract(value: Vector2): this
  • +
+
    +
  • + +
    +
    +

    从当前Vector2减去一个Vector2

    +
    +
    +

    Parameters

    +
      +
    • +
      value: Vector2
      +
      +

      要减去的Vector2

      +
      +
    • +
    +

    Returns this

    +

    当前Vector2

    +
  • +
+
+
+ +

Static add

+ + +
+
+ +

Static angle

+ +
    +
  • + +
    +
    +

    返回两个向量之间的角度,单位是度数

    +
    +
    +

    Parameters

    + +

    Returns number

    +
  • +
+
+
+ +

Static clamp

+ + +
+
+ +

Static distance

+ +
    +
  • + +
    +
    +

    返回两个向量之间的距离

    +
    +
    +

    Parameters

    + +

    Returns number

    +

    两个向量之间的距离

    +
  • +
+
+
+ +

Static distanceSquared

+ + +
+
+ +

Static divide

+ + +
+
+ +

Static dot

+ + +
+
+ +

Static lerp

+ +
    +
  • + +
    +
    +

    创建一个新的Vector2,其中包含指定向量的线性插值

    +
    +
    +

    Parameters

    +
      +
    • +
      value1: Vector2
      +
      +

      第一个向量

      +
      +
    • +
    • +
      value2: Vector2
      +
      +

      第二个向量

      +
      +
    • +
    • +
      amount: number
      +
      +

      加权值(0.0-1.0之间)

      +
      +
    • +
    +

    Returns Vector2

    +

    指定向量的线性插值结果

    +
  • +
+
+
+ +

Static multiply

+ + +
+
+ +

Static negate

+ +
    +
  • + +
    +
    +

    创建一个包含指定向量反转的新Vector2

    +
    +
    +

    Parameters

    + +

    Returns Vector2

    +

    矢量反演的结果

    +
  • +
+
+
+ +

Static normalize

+ +
    +
  • + +
    +
    +

    创建一个新的Vector2 + 它包含来自另一个向量的标准化值。

    +
    +
    +

    Parameters

    + +

    Returns Vector2

    +
  • +
+
+
+ +

Static subtract

+ + +
+
+ +

Static transform

+ +
    +
  • + +
    +
    +

    创建一个新的Vector2,该Vector2包含了通过指定的Matrix进行的二维向量变换。

    +
    +
    +

    Parameters

    + +

    Returns Vector2

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_math_vector3_.es.vector3.html b/source/docs/classes/_math_vector3_.es.vector3.html new file mode 100644 index 00000000..b9eaedf4 --- /dev/null +++ b/source/docs/classes/_math_vector3_.es.vector3.html @@ -0,0 +1,240 @@ + + + + + + Vector3 | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Vector3

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Vector3 +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+
    +
  • x
  • +
  • y
  • +
  • z
  • +
+
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Vector3(x: number, y: number, z: number): Vector3
  • +
+ +
+
+
+

Properties

+
+ +

x

+
x: number
+ +
+
+ +

y

+
y: number
+ +
+
+ +

z

+
z: number
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_collidertriggerhelper_.es.collidertriggerhelper.html b/source/docs/classes/_physics_collidertriggerhelper_.es.collidertriggerhelper.html new file mode 100644 index 00000000..03e9856b --- /dev/null +++ b/source/docs/classes/_physics_collidertriggerhelper_.es.collidertriggerhelper.html @@ -0,0 +1,354 @@ + + + + + + ColliderTriggerHelper | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ColliderTriggerHelper

+
+
+
+
+
+
+
+
+
+

移动器使用的帮助器类,用于管理触发器碰撞器交互并调用itriggerlistener

+
+
+
+
+

Hierarchy

+
    +
  • + ColliderTriggerHelper +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private _activeTriggerIntersections

+
_activeTriggerIntersections: Pair<Collider>[] = []
+ +
+
+

存储当前帧中发生的所有活动交集对

+
+
+
+
+ +

Private _entity

+
_entity: Entity
+ +
+
+ +

Private _previousTriggerIntersections

+
_previousTriggerIntersections: Pair<Collider>[] = []
+ +
+
+

存储前一帧的交叉对,以便我们可以在移动该帧后检测出口

+
+
+
+
+ +

Private _tempTriggerList

+
_tempTriggerList: ITriggerListener[] = []
+ +
+
+
+

Methods

+
+ +

Private checkForExitedColliders

+
    +
  • checkForExitedColliders(): void
  • +
+ +
+
+ +

Private notifyTriggerListeners

+
    +
  • notifyTriggerListeners(collisionPair: Pair<Collider>, isEntering: boolean): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Private property
  • +
  • Private method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_collision_.es.collisions.html b/source/docs/classes/_physics_collision_.es.collisions.html new file mode 100644 index 00000000..028267f3 --- /dev/null +++ b/source/docs/classes/_physics_collision_.es.collisions.html @@ -0,0 +1,526 @@ + + + + + + Collisions | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Collisions

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Collisions +
  • +
+
+
+

Index

+
+ +
+
+
+

Methods

+
+ +

Static circleToCircle

+
    +
  • circleToCircle(circleCenter1: Vector2, circleRadius1: number, circleCenter2: Vector2, circleRadius2: number): boolean
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      circleCenter1: Vector2
      +
    • +
    • +
      circleRadius1: number
      +
    • +
    • +
      circleCenter2: Vector2
      +
    • +
    • +
      circleRadius2: number
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Static circleToLine

+ + +
+
+ +

Static circleToPoint

+
    +
  • circleToPoint(circleCenter: Vector2, radius: number, point: Vector2): boolean
  • +
+ +
+
+ +

Static closestPointOnLine

+ + +
+
+ +

Static getSector

+ +
    +
  • + +
    +
    +

    位标志和帮助使用Cohen–Sutherland算法

    +
    +

    位标志: + 1001 1000 1010 + 0001 0000 0010 + 0101 0100 0110

    +
    +

    Parameters

    +
      +
    • +
      rX: number
      +
    • +
    • +
      rY: number
      +
    • +
    • +
      rW: number
      +
    • +
    • +
      rH: number
      +
    • +
    • +
      point: Vector2
      +
      +
      +
    • +
    +

    Returns PointSectors

    +
  • +
+
+
+ +

Static isLineToLine

+ + +
+
+ +

Static lineToLineIntersection

+ + +
+
+ +

Static rectToCircle

+
    +
  • rectToCircle(rect: Rectangle, cPosition: Vector2, cRadius: number): boolean
  • +
+ +
+
+ +

Static rectToLine

+ + +
+
+ +

Static rectToPoint

+
    +
  • rectToPoint(rX: number, rY: number, rW: number, rH: number, point: Vector2): boolean
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      rX: number
      +
    • +
    • +
      rY: number
      +
    • +
    • +
      rW: number
      +
    • +
    • +
      rH: number
      +
    • +
    • +
      point: Vector2
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_physics_.es.physics.html b/source/docs/classes/_physics_physics_.es.physics.html new file mode 100644 index 00000000..7002cc95 --- /dev/null +++ b/source/docs/classes/_physics_physics_.es.physics.html @@ -0,0 +1,662 @@ + + + + + + Physics | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Physics

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Physics +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

Static _hitArray

+
_hitArray: RaycastHit[] = [new RaycastHit()]
+ +
+
+

我们保留它以避免在每次raycast发生时分配它

+
+
+
+
+ +

Static Private _spatialHash

+
_spatialHash: SpatialHash
+ +
+
+ +

Static Readonly allLayers

+
allLayers: number = -1
+ +
+
+

接受layerMask的所有方法的默认值

+
+
+
+
+ +

Static raycastsHitTriggers

+
raycastsHitTriggers: boolean = false
+ +
+
+

raycast是否检测配置为触发器的碰撞器

+
+
+
+
+ +

Static raycastsStartInColliders

+
raycastsStartInColliders: boolean = false
+ +
+
+

在碰撞器中开始的射线/直线是否强制转换检测到那些碰撞器

+
+
+
+
+ +

Static spatialHashCellSize

+
spatialHashCellSize: number = 100
+ +
+
+

调用reset并创建一个新的SpatialHash时使用的单元格大小

+
+
+
+
+
+

Methods

+
+ +

Static addCollider

+
    +
  • addCollider(collider: Collider): void
  • +
+ +
+
+ +

Static boxcastBroadphase

+ +
    +
  • + +
    +
    +

    返回所有碰撞器与边界相交的碰撞器。bounds。请注意,这是一个broadphase检查,所以它只检查边界,不做单个碰撞到碰撞器的检查!

    +
    +
    +

    Parameters

    +
      +
    • +
      rect: Rectangle
      +
    • +
    • +
      Default value layerMask: number = this.allLayers
      +
      +
      +
    • +
    +

    Returns Collider[]

    +
  • +
+
+
+ +

Static boxcastBroadphaseExcludingSelf

+ +
    +
  • + +
    +
    +

    返回所有与边界相交的碰撞器,不包括传入的碰撞器(self)。如果您希望为其他查询自行创建扫过的边界,则此方法非常有用

    +
    +
    +

    Parameters

    +
      +
    • +
      collider: Collider
      +
    • +
    • +
      rect: Rectangle
      +
    • +
    • +
      Default value layerMask: number = this.allLayers
      +
      +
      +
    • +
    +

    Returns Collider[]

    +
  • +
+
+
+ +

Static clear

+
    +
  • clear(): void
  • +
+ +
+
+ +

Static debugDraw

+
    +
  • debugDraw(secondsToDisplay: any): void
  • +
+
    +
  • + +
    +
    +

    debug绘制空间散列的内容

    +
    +
    +

    Parameters

    +
      +
    • +
      secondsToDisplay: any
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static linecast

+ +
    +
  • + +
    +
    +

    返回与layerMask匹配的碰撞器的第一次命中

    +
    +
    +

    Parameters

    +
      +
    • +
      start: Vector2
      +
    • +
    • +
      end: Vector2
      +
    • +
    • +
      Default value layerMask: number = Physics.allLayers
      +
      +
      +
    • +
    +

    Returns RaycastHit

    +
  • +
+
+
+ +

Static linecastAll

+ +
    +
  • + +
    +
    +

    通过空间散列强制执行一行,并用该行命中的任何碰撞器填充hits数组

    +
    +
    +

    Parameters

    +
      +
    • +
      start: Vector2
      +
    • +
    • +
      end: Vector2
      +
    • +
    • +
      hits: RaycastHit[]
      +
    • +
    • +
      Default value layerMask: number = Physics.allLayers
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Static overlapCircleAll

+
    +
  • overlapCircleAll(center: Vector2, randius: number, results: any[], layerMask?: number): number
  • +
+
    +
  • + +
    +
    +

    获取位于指定圆内的所有碰撞器

    +
    +
    +

    Parameters

    +
      +
    • +
      center: Vector2
      +
    • +
    • +
      randius: number
      +
    • +
    • +
      results: any[]
      +
    • +
    • +
      Default value layerMask: number = -1
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Static removeCollider

+
    +
  • removeCollider(collider: Collider): void
  • +
+ +
+
+ +

Static reset

+
    +
  • reset(): void
  • +
+ +
+
+ +

Static updateCollider

+
    +
  • updateCollider(collider: Collider): void
  • +
+
    +
  • + +
    +
    +

    更新物理系统中对撞机的位置。这实际上只是移除然后重新添加带有新边界的碰撞器

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Static property
  • +
  • Static method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_ray2d_.es.ray2d.html b/source/docs/classes/_physics_ray2d_.es.ray2d.html new file mode 100644 index 00000000..8ce0720b --- /dev/null +++ b/source/docs/classes/_physics_ray2d_.es.ray2d.html @@ -0,0 +1,244 @@ + + + + + + Ray2D | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Ray2D

+
+
+
+
+
+
+
+
+
+

不是真正的射线(射线只有开始和方向),作为一条线和射线。

+
+
+
+
+

Hierarchy

+
    +
  • + Ray2D +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

direction

+
direction: Vector2
+ +
+
+ +

end

+
end: Vector2
+ +
+
+ +

start

+
start: Vector2
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_raycasthit_.es.raycasthit.html b/source/docs/classes/_physics_raycasthit_.es.raycasthit.html new file mode 100644 index 00000000..1f82d093 --- /dev/null +++ b/source/docs/classes/_physics_raycasthit_.es.raycasthit.html @@ -0,0 +1,441 @@ + + + + + + RaycastHit | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class RaycastHit

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + RaycastHit +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

centroid

+
centroid: Vector2
+ +
+
+

用于执行转换的质心。使其接触的形状的位置。

+
+
+
+
+ +

collider

+
collider: Collider
+ +
+
+

对撞机被射线击中

+
+
+
+
+ +

distance

+
distance: number = 0
+ +
+
+

从射线原点到碰撞点的距离

+
+
+
+
+ +

fraction

+
fraction: number = 0
+ +
+
+

撞击发生时沿射线的距离。

+
+
+
+
+ +

normal

+
normal: Vector2 = Vector2.zero
+ +
+
+

被射线击中的表面的法向量

+
+
+
+
+ +

point

+
point: Vector2 = Vector2.zero
+ +
+
+

世界空间中光线击中对撞机表面的点

+
+
+
+
+
+

Methods

+
+ +

reset

+
    +
  • reset(): void
  • +
+ +
+
+ +

setValues

+
    +
  • setValues(collider: Collider, fraction: number, distance: number, point: Vector2): void
  • +
+ +
+
+ +

setValuesNonCollider

+
    +
  • setValuesNonCollider(fraction: number, distance: number, point: Vector2, normal: Vector2): void
  • +
+ +
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_shapes_box_.es.box.html b/source/docs/classes/_physics_shapes_box_.es.box.html new file mode 100644 index 00000000..4f292b68 --- /dev/null +++ b/source/docs/classes/_physics_shapes_box_.es.box.html @@ -0,0 +1,1050 @@ + + + + + + Box | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Box

+
+
+
+
+
+
+
+
+
+

多边形的特殊情况。在进行SAT碰撞检查时,我们只需要检查2个轴而不是8个轴

+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Box(width: number, height: number): Box
  • +
+ +
+
+
+

Properties

+
+ +

_areEdgeNormalsDirty

+
_areEdgeNormalsDirty: boolean = true
+ +
+
+ +

_edgeNormals

+
_edgeNormals: Vector2[]
+ +
+
+ +

_originalPoints

+
_originalPoints: Vector2[]
+ +
+
+

多边形的原始数据

+
+
+
+
+ +

_polygonCenter

+
_polygonCenter: Vector2
+ +
+
+ +

bounds

+
bounds: Rectangle
+ +
+
+

缓存的形状边界 内部字段

+
+
+
+
+ +

center

+
center: Vector2
+ +
+
+

这不是中心。这个值不一定是物体的中心。对撞机更准确。 + 应用任何转换旋转的localOffset + 内部字段

+
+
+
+
+ +

height

+
height: number
+ +
+
+ +

isBox

+
isBox: boolean
+ +
+
+

用于优化未旋转box碰撞

+
+
+
+
+ +

isUnrotated

+
isUnrotated: boolean = true
+ +
+
+ +

points

+
points: Vector2[]
+ +
+
+

组成多边形的点 + 保持顺时针与凸边形

+
+
+
+
+ +

position

+
position: Vector2
+ +
+
+

有一个单独的位置字段可以让我们改变形状的位置来进行碰撞检查,而不是改变entity.position。 + 触发碰撞器/边界/散列更新的位置。 + 内部字段

+
+
+
+
+ +

width

+
width: number
+ +
+
+
+

Accessors

+
+ +

edgeNormals

+ + +
+
+
+

Methods

+
+ +

buildEdgeNormals

+
    +
  • buildEdgeNormals(): void
  • +
+ +
+
+ +

collidesWithLine

+ + +
+
+ +

collidesWithShape

+ + +
+
+ +

containsPoint

+
    +
  • containsPoint(point: Vector2): boolean
  • +
+ +
+
+ +

overlaps

+
    +
  • overlaps(other: Shape): any
  • +
+ +
+
+ +

pointCollidesWithShape

+ + +
+
+ +

recalculateBounds

+
    +
  • recalculateBounds(collider: Collider): void
  • +
+ +
+
+ +

recalculateCenterAndEdgeNormals

+
    +
  • recalculateCenterAndEdgeNormals(): void
  • +
+ +
+
+ +

setPoints

+
    +
  • setPoints(points: Vector2[]): void
  • +
+ +
+
+ +

updateBox

+
    +
  • updateBox(width: number, height: number): void
  • +
+
    +
  • + +
    +
    +

    更新框点,重新计算中心,设置宽度/高度

    +
    +
    +

    Parameters

    +
      +
    • +
      width: number
      +
    • +
    • +
      height: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static Private buildBox

+
    +
  • buildBox(width: number, height: number): Vector2[]
  • +
+
    +
  • + +
    +
    +

    在一个盒子的形状中建立多边形需要的点的帮助方法

    +
    +
    +

    Parameters

    +
      +
    • +
      width: number
      +
    • +
    • +
      height: number
      +
      +
      +
    • +
    +

    Returns Vector2[]

    +
  • +
+
+
+ +

Static buildSymmetricalPolygon

+
    +
  • buildSymmetricalPolygon(vertCount: number, radius: number): any[]
  • +
+ +
+
+ +

Static findPolygonCenter

+ + +
+
+ +

Static getClosestPointOnPolygonToPoint

+ + +
+
+ +

Static getFarthestPointInDirection

+ + +
+
+ +

Static recenterPolygonVerts

+
    +
  • recenterPolygonVerts(points: Vector2[]): void
  • +
+ +
+
+ +

Static rotatePolygonVerts

+
    +
  • rotatePolygonVerts(radians: number, originalPoints: Vector2[], rotatedPoints: Vector2[]): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_shapes_circle_.es.circle.html b/source/docs/classes/_physics_shapes_circle_.es.circle.html new file mode 100644 index 00000000..f447e099 --- /dev/null +++ b/source/docs/classes/_physics_shapes_circle_.es.circle.html @@ -0,0 +1,488 @@ + + + + + + Circle | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Circle

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Shape +
      +
    • + Circle +
    • +
    +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Circle(radius: number): Circle
  • +
+ +
+
+
+

Properties

+
+ +

_originalRadius

+
_originalRadius: number
+ +
+
+ +

bounds

+
bounds: Rectangle
+ +
+
+

缓存的形状边界 内部字段

+
+
+
+
+ +

center

+
center: Vector2
+ +
+
+

这不是中心。这个值不一定是物体的中心。对撞机更准确。 + 应用任何转换旋转的localOffset + 内部字段

+
+
+
+
+ +

position

+
position: Vector2
+ +
+
+

有一个单独的位置字段可以让我们改变形状的位置来进行碰撞检查,而不是改变entity.position。 + 触发碰撞器/边界/散列更新的位置。 + 内部字段

+
+
+
+
+ +

radius

+
radius: number
+ +
+
+
+

Methods

+
+ +

collidesWithLine

+ + +
+
+ +

collidesWithShape

+ + +
+
+ +

containsPoint

+
    +
  • containsPoint(point: Vector2): boolean
  • +
+ +
+
+ +

overlaps

+
    +
  • overlaps(other: Shape): boolean
  • +
+ +
+
+ +

pointCollidesWithShape

+ + +
+
+ +

recalculateBounds

+
    +
  • recalculateBounds(collider: Collider): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Inherited property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_shapes_collisionresult_.es.collisionresult.html b/source/docs/classes/_physics_shapes_collisionresult_.es.collisionresult.html new file mode 100644 index 00000000..af8815ce --- /dev/null +++ b/source/docs/classes/_physics_shapes_collisionresult_.es.collisionresult.html @@ -0,0 +1,317 @@ + + + + + + CollisionResult | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class CollisionResult

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + CollisionResult +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

collider

+
collider: Collider
+ +
+
+

与之相撞的对撞机

+
+
+
+
+ +

minimumTranslationVector

+
minimumTranslationVector: Vector2 = Vector2.zero
+ +
+
+

应用于第一个形状以推入形状的转换

+
+
+
+
+ +

normal

+
normal: Vector2 = Vector2.zero
+ +
+
+

被形状击中的表面的法向量

+
+
+
+
+ +

point

+
point: Vector2 = Vector2.zero
+ +
+
+

不是所有冲突类型都使用!在依赖这个字段之前,请检查ShapeCollisions切割类!

+
+
+
+
+
+

Methods

+
+ +

invertResult

+
    +
  • invertResult(): this
  • +
+ +
+
+ +

removeHorizontal

+
    +
  • removeHorizontal(deltaMovement: Vector2): void
  • +
+
    +
  • + +
    +
    +

    改变最小平移向量,如果没有相同方向上的运动,它将移除平移的x分量。

    +
    +
    +

    Parameters

    +
      +
    • +
      deltaMovement: Vector2
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

toString

+
    +
  • toString(): string
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_shapes_polygon_.es.polygon.html b/source/docs/classes/_physics_shapes_polygon_.es.polygon.html new file mode 100644 index 00000000..0776d07d --- /dev/null +++ b/source/docs/classes/_physics_shapes_polygon_.es.polygon.html @@ -0,0 +1,953 @@ + + + + + + Polygon | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Polygon

+
+
+
+
+
+
+
+
+
+

多边形

+
+
+
+
+

Hierarchy

+
    +
  • + Shape +
      +
    • + Polygon + +
    • +
    +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ +
    +
  • + +
    +
    +

    从点构造一个多边形 + 多边形应该以顺时针方式指定 不能重复第一个/最后一个点,它们以0 0为中心

    +
    +
    +

    Parameters

    +
      +
    • +
      points: Vector2[]
      +
    • +
    • +
      Optional isBox: boolean
      +
      +
      +
      +
      +
    • +
    +

    Returns Polygon

    +
  • +
+
+
+
+

Properties

+
+ +

_areEdgeNormalsDirty

+
_areEdgeNormalsDirty: boolean = true
+ +
+
+ +

_edgeNormals

+
_edgeNormals: Vector2[]
+ +
+
+ +

_originalPoints

+
_originalPoints: Vector2[]
+ +
+
+

多边形的原始数据

+
+
+
+
+ +

_polygonCenter

+
_polygonCenter: Vector2
+ +
+
+ +

bounds

+
bounds: Rectangle
+ +
+
+

缓存的形状边界 内部字段

+
+
+
+
+ +

center

+
center: Vector2
+ +
+
+

这不是中心。这个值不一定是物体的中心。对撞机更准确。 + 应用任何转换旋转的localOffset + 内部字段

+
+
+
+
+ +

isBox

+
isBox: boolean
+ +
+
+

用于优化未旋转box碰撞

+
+
+
+
+ +

isUnrotated

+
isUnrotated: boolean = true
+ +
+
+ +

points

+
points: Vector2[]
+ +
+
+

组成多边形的点 + 保持顺时针与凸边形

+
+
+
+
+ +

position

+
position: Vector2
+ +
+
+

有一个单独的位置字段可以让我们改变形状的位置来进行碰撞检查,而不是改变entity.position。 + 触发碰撞器/边界/散列更新的位置。 + 内部字段

+
+
+
+
+
+

Accessors

+
+ +

edgeNormals

+ +
    +
  • + +
    +
    +

    边缘法线用于SAT碰撞检测。缓存它们用于避免squareRoots + box只有两个边缘 因为其他两边是平行的

    +
    +
    +

    Returns Vector2[]

    +
  • +
+
+
+
+

Methods

+
+ +

buildEdgeNormals

+
    +
  • buildEdgeNormals(): void
  • +
+
    +
  • + +
    +
    +

    建立多边形边缘法线 + 它们仅由edgeNormals getter惰性创建和更新

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

collidesWithLine

+ + +
+
+ +

collidesWithShape

+ + +
+
+ +

containsPoint

+
    +
  • containsPoint(point: Vector2): boolean
  • +
+
    +
  • + +
    +
    +

    本质上,这个算法所做的就是从一个点发射一条射线。 + 如果它与奇数条多边形边相交,我们就知道它在多边形内部。

    +
    +
    +

    Parameters

    + +

    Returns boolean

    +
  • +
+
+
+ +

overlaps

+
    +
  • overlaps(other: Shape): any
  • +
+ +
+
+ +

pointCollidesWithShape

+ + +
+
+ +

recalculateBounds

+
    +
  • recalculateBounds(collider: Collider): void
  • +
+ +
+
+ +

recalculateCenterAndEdgeNormals

+
    +
  • recalculateCenterAndEdgeNormals(): void
  • +
+ +
+
+ +

setPoints

+
    +
  • setPoints(points: Vector2[]): void
  • +
+ +
+
+ +

Static buildSymmetricalPolygon

+
    +
  • buildSymmetricalPolygon(vertCount: number, radius: number): any[]
  • +
+
    +
  • + +
    +
    +

    建立一个对称的多边形(六边形,八角形,n角形)并返回点

    +
    +
    +

    Parameters

    +
      +
    • +
      vertCount: number
      +
    • +
    • +
      radius: number
      +
      +
      +
    • +
    +

    Returns any[]

    +
  • +
+
+
+ +

Static findPolygonCenter

+ +
    +
  • + +
    +
    +

    找到多边形的中心。注意,这对于正则多边形是准确的。不规则多边形没有中心。

    +
    +
    +

    Parameters

    + +

    Returns Vector2

    +
  • +
+
+
+ +

Static getClosestPointOnPolygonToPoint

+ +
    +
  • + +
    +
    +

    迭代多边形的所有边,并得到任意边上离点最近的点。 + 通过最近点的平方距离和它所在的边的法线返回。 + 点应该在多边形的空间中(点-多边形.位置)

    +
    +
    +

    Parameters

    + +

    Returns Vector2

    +
  • +
+
+
+ +

Static getFarthestPointInDirection

+ + +
+
+ +

Static recenterPolygonVerts

+
    +
  • recenterPolygonVerts(points: Vector2[]): void
  • +
+ +
+
+ +

Static rotatePolygonVerts

+
    +
  • rotatePolygonVerts(radians: number, originalPoints: Vector2[], rotatedPoints: Vector2[]): void
  • +
+
    +
  • + +
    +
    +

    旋转原始点并复制旋转的值到旋转的点

    +
    +
    +

    Parameters

    +
      +
    • +
      radians: number
      +
    • +
    • +
      originalPoints: Vector2[]
      +
    • +
    • +
      rotatedPoints: Vector2[]
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Inherited property
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_shapes_realtimecollisions_.es.realtimecollisions.html b/source/docs/classes/_physics_shapes_realtimecollisions_.es.realtimecollisions.html new file mode 100644 index 00000000..bc0872f5 --- /dev/null +++ b/source/docs/classes/_physics_shapes_realtimecollisions_.es.realtimecollisions.html @@ -0,0 +1,194 @@ + + + + + + RealtimeCollisions | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class RealtimeCollisions

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + RealtimeCollisions +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static intersectMovingCircleBox

+
    +
  • intersectMovingCircleBox(s: Circle, b: Box, movement: Vector2, time: Ref<number>): boolean
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_shapes_shape_.es.shape.html b/source/docs/classes/_physics_shapes_shape_.es.shape.html new file mode 100644 index 00000000..a5f4d2c2 --- /dev/null +++ b/source/docs/classes/_physics_shapes_shape_.es.shape.html @@ -0,0 +1,408 @@ + + + + + + Shape | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Shape

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

bounds

+
bounds: Rectangle
+ +
+
+

缓存的形状边界 内部字段

+
+
+
+
+ +

center

+
center: Vector2
+ +
+
+

这不是中心。这个值不一定是物体的中心。对撞机更准确。 + 应用任何转换旋转的localOffset + 内部字段

+
+
+
+
+ +

position

+
position: Vector2
+ +
+
+

有一个单独的位置字段可以让我们改变形状的位置来进行碰撞检查,而不是改变entity.position。 + 触发碰撞器/边界/散列更新的位置。 + 内部字段

+
+
+
+
+
+

Methods

+
+ +

Abstract collidesWithLine

+ + +
+
+ +

Abstract collidesWithShape

+ + +
+
+ +

Abstract containsPoint

+
    +
  • containsPoint(point: Vector2): any
  • +
+ +
+
+ +

Abstract overlaps

+
    +
  • overlaps(other: Shape): boolean
  • +
+ +
+
+ +

Abstract pointCollidesWithShape

+ + +
+
+ +

Abstract recalculateBounds

+
    +
  • recalculateBounds(collider: Collider): any
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html b/source/docs/classes/_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html new file mode 100644 index 00000000..9f69cf1c --- /dev/null +++ b/source/docs/classes/_physics_shapes_shapecollisions_shapecollisions_.es.shapecollisions.html @@ -0,0 +1,780 @@ + + + + + + ShapeCollisions | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ShapeCollisions

+
+
+
+
+
+
+
+
+
+

各种形状的碰撞例程 + 大多数人都希望第一个形状位于第二个形状的空间内(即shape1) + pos应该设置为shape1。pos - shape2.pos)。

+
+
+
+
+

Hierarchy

+
    +
  • + ShapeCollisions +
  • +
+
+
+

Index

+
+ +
+
+
+

Methods

+
+ +

Static boxToBox

+ + +
+
+ +

Static boxToBoxCast

+ + +
+
+ +

Static circleToBox

+ + +
+
+ +

Static circleToCircle

+ + +
+
+ +

Static circleToPolygon

+ + +
+
+ +

Static closestPointOnLine

+ + +
+
+ +

Static getInterval

+
    +
  • getInterval(axis: Vector2, polygon: Polygon, min: number, max: number): { max: number; min: number }
  • +
+
    +
  • + +
    +
    +

    计算一个多边形在一个轴上的投影,并返回一个[min,max]区间

    +
    +
    +

    Parameters

    +
      +
    • +
      axis: Vector2
      +
    • +
    • +
      polygon: Polygon
      +
    • +
    • +
      min: number
      +
    • +
    • +
      max: number
      +
      +
      +
    • +
    +

    Returns { max: number; min: number }

    +
      +
    • +
      max: number
      +
    • +
    • +
      min: number
      +
    • +
    +
  • +
+
+
+ +

Static intervalDistance

+
    +
  • intervalDistance(minA: number, maxA: number, minB: number, maxB: any): number
  • +
+
    +
  • + +
    +
    +

    计算[minA, maxA]和[minB, maxB]之间的距离。如果间隔重叠,距离是负的

    +
    +
    +

    Parameters

    +
      +
    • +
      minA: number
      +
    • +
    • +
      maxA: number
      +
    • +
    • +
      minB: number
      +
    • +
    • +
      maxB: any
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Static lineToCircle

+ + +
+
+ +

Static lineToLine

+ + +
+
+ +

Static lineToPoly

+ + +
+
+ +

Static Private minkowskiDifference

+ + +
+
+ +

Static pointToBox

+ + +
+
+ +

Static pointToCircle

+ + +
+
+ +

Static pointToPoly

+ + +
+
+ +

Static polygonToPolygon

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_spatialhash_.es.numberdictionary.html b/source/docs/classes/_physics_spatialhash_.es.numberdictionary.html new file mode 100644 index 00000000..aadacb12 --- /dev/null +++ b/source/docs/classes/_physics_spatialhash_.es.numberdictionary.html @@ -0,0 +1,346 @@ + + + + + + NumberDictionary | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class NumberDictionary

+
+
+
+
+
+
+
+
+
+

包装一个Unit32,列表碰撞器字典 + 它的主要目的是将int、int x、y坐标散列到单个Uint32键中,使用O(1)查找。

+
+
+
+
+

Hierarchy

+
    +
  • + NumberDictionary +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

_store

+
_store: Map<string, Collider[]> = new Map<string, Collider[]>()
+ +
+
+
+

Methods

+
+ +

add

+
    +
  • add(x: number, y: number, list: Collider[]): void
  • +
+ +
+
+ +

clear

+
    +
  • clear(): void
  • +
+ +
+
+ +

getKey

+
    +
  • getKey(x: number, y: number): string
  • +
+ +
+
+ +

remove

+ + +
+
+ +

tryGetValue

+
    +
  • tryGetValue(x: number, y: number): Collider[]
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_spatialhash_.es.raycastresultparser.html b/source/docs/classes/_physics_spatialhash_.es.raycastresultparser.html new file mode 100644 index 00000000..3505679d --- /dev/null +++ b/source/docs/classes/_physics_spatialhash_.es.raycastresultparser.html @@ -0,0 +1,396 @@ + + + + + + RaycastResultParser | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class RaycastResultParser

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + RaycastResultParser +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

_cellHits

+
_cellHits: RaycastHit[] = []
+ +
+
+ +

_checkedColliders

+
_checkedColliders: Collider[] = []
+ +
+
+ +

_hits

+
_hits: RaycastHit[]
+ +
+
+ +

_layerMask

+
_layerMask: number
+ +
+
+ +

_ray

+
_ray: Ray2D
+ +
+
+ +

_tempHit

+
_tempHit: RaycastHit = new RaycastHit()
+ +
+
+ +

hitCounter

+
hitCounter: number
+ +
+
+
+

Methods

+
+ +

checkRayIntersection

+
    +
  • checkRayIntersection(cellX: number, cellY: number, cell: Collider[]): boolean
  • +
+
    +
  • + +
    +
    +

    如果hits数组被填充,返回true。单元格不能为空!

    +
    +
    +

    Parameters

    +
      +
    • +
      cellX: number
      +
    • +
    • +
      cellY: number
      +
    • +
    • +
      cell: Collider[]
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

reset

+
    +
  • reset(): void
  • +
+ +
+
+ +

start

+ + +
+
+ +

Static compareRaycastHits

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_spatialhash_.es.spatialhash.html b/source/docs/classes/_physics_spatialhash_.es.spatialhash.html new file mode 100644 index 00000000..2a89abb6 --- /dev/null +++ b/source/docs/classes/_physics_spatialhash_.es.spatialhash.html @@ -0,0 +1,736 @@ + + + + + + SpatialHash | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class SpatialHash

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + SpatialHash +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

_cellDict

+
_cellDict: NumberDictionary = new NumberDictionary()
+ +
+
+

保存所有数据的字典

+
+
+
+
+ +

_cellSize

+
_cellSize: number
+ +
+
+

散列中每个单元格的大小

+
+
+
+
+ +

_inverseCellSize

+
_inverseCellSize: number
+ +
+
+

1除以单元格大小。缓存结果,因为它被大量使用。

+
+
+
+
+ +

_overlapTestCircle

+
_overlapTestCircle: Circle = new Circle(0)
+ +
+
+

缓存的循环用于重叠检查

+
+
+
+
+ +

_raycastParser

+
_raycastParser: RaycastResultParser
+ +
+
+ +

_tempHashSet

+
_tempHashSet: Collider[] = []
+ +
+
+

用于返回冲突信息的共享HashSet

+
+
+
+
+ +

gridBounds

+
gridBounds: Rectangle = new Rectangle()
+ +
+
+
+

Methods

+
+ +

aabbBroadphase

+ + +
+
+ +

Private cellAtPosition

+
    +
  • cellAtPosition(x: number, y: number, createCellIfEmpty?: boolean): Collider[]
  • +
+
    +
  • + +
    +
    +

    获取世界空间x,y值的单元格。 + 如果单元格为空且createCellIfEmpty为true,则会创建一个新的单元格

    +
    +
    +

    Parameters

    +
      +
    • +
      x: number
      +
    • +
    • +
      y: number
      +
    • +
    • +
      Default value createCellIfEmpty: boolean = false
      +
      +
      +
    • +
    +

    Returns Collider[]

    +
  • +
+
+
+ +

Private cellCoords

+
    +
  • cellCoords(x: number, y: number): Vector2
  • +
+
    +
  • + +
    +
    +

    获取单元格的x,y值作为世界空间的x,y值

    +
    +
    +

    Parameters

    +
      +
    • +
      x: number
      +
    • +
    • +
      y: number
      +
      +
      +
    • +
    +

    Returns Vector2

    +
  • +
+
+
+ +

clear

+
    +
  • clear(): void
  • +
+ +
+
+ +

debugDraw

+
    +
  • debugDraw(secondsToDisplay: number, textScale?: number): void
  • +
+
    +
  • + +
    +
    +

    debug绘制空间散列的内容

    +
    +
    +

    Parameters

    +
      +
    • +
      secondsToDisplay: number
      +
    • +
    • +
      Default value textScale: number = 1
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Private debugDrawCellDetails

+
    +
  • debugDrawCellDetails(x: number, y: number, cellCount: number, secondsToDisplay?: number, textScale?: number): void
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      x: number
      +
    • +
    • +
      y: number
      +
    • +
    • +
      cellCount: number
      +
    • +
    • +
      Default value secondsToDisplay: number = 0.5
      +
    • +
    • +
      Default value textScale: number = 1
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

linecast

+ +
    +
  • + +
    +
    +

    通过空间散列强制执行一行,并用该行命中的任何碰撞器填充hits数组。

    +
    +
    +

    Parameters

    + +

    Returns number

    +
  • +
+
+
+ +

overlapCircle

+
    +
  • overlapCircle(circleCenter: Vector2, radius: number, results: Collider[], layerMask: any): number
  • +
+
    +
  • + +
    +
    +

    获取位于指定圆内的所有碰撞器

    +
    +
    +

    Parameters

    +
      +
    • +
      circleCenter: Vector2
      +
    • +
    • +
      radius: number
      +
    • +
    • +
      results: Collider[]
      +
    • +
    • +
      layerMask: any
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

register

+
    +
  • register(collider: Collider): void
  • +
+ +
+
+ +

remove

+ + +
+
+ +

removeWithBruteForce

+
    +
  • removeWithBruteForce(obj: Collider): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_verlet_composites_composite_.es.composite.html b/source/docs/classes/_physics_verlet_composites_composite_.es.composite.html new file mode 100644 index 00000000..485bb567 --- /dev/null +++ b/source/docs/classes/_physics_verlet_composites_composite_.es.composite.html @@ -0,0 +1,349 @@ + + + + + + Composite | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Composite

+
+
+
+
+
+
+
+
+
+

代表了Verlet世界中的一个对象。由粒子和约束组成,并处理更新它们

+
+
+
+
+

Hierarchy

+
    +
  • + Composite +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

_constraints

+
_constraints: Constraint[] = []
+ +
+
+ +

collidesWithLayers

+
collidesWithLayers: number = Physics.allLayers
+ +
+
+

当实体的时候,碰撞器应该碰撞的所有层的图层蒙版。使用了移动方法。默认为所有层。

+
+
+
+
+ +

friction

+
friction: Vector2 = new Vector2(0.98, 1)
+ +
+
+

摩擦作用于所有粒子运动以使其阻尼。值应该非常接近1。

+
+
+
+
+ +

particles

+
particles: Particle[] = []
+ +
+
+
+

Methods

+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

handleConstraintCollisions

+
    +
  • handleConstraintCollisions(): void
  • +
+ +
+
+ +

solveConstraints

+
    +
  • solveConstraints(): void
  • +
+ +
+
+ +

updateParticles

+
    +
  • updateParticles(deltaTimeSquared: number, gravity: Vector2): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_verlet_constraints_constraint_.es.constraint.html b/source/docs/classes/_physics_verlet_constraints_constraint_.es.constraint.html new file mode 100644 index 00000000..61ab19dc --- /dev/null +++ b/source/docs/classes/_physics_verlet_constraints_constraint_.es.constraint.html @@ -0,0 +1,244 @@ + + + + + + Constraint | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Constraint

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Constraint +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

collidesWithColliders

+
collidesWithColliders: boolean = true
+ +
+
+

如果为true,约束将用标准碰撞器检查碰撞。内部约束不需要将此设置为true。

+
+
+
+
+
+

Methods

+
+ +

handleCollisions

+
    +
  • handleCollisions(collidesWithLayers: number): void
  • +
+ +
+
+ +

Abstract solve

+
    +
  • solve(): any
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_verlet_particle_.es.particle.html b/source/docs/classes/_physics_verlet_particle_.es.particle.html new file mode 100644 index 00000000..5ec5eab2 --- /dev/null +++ b/source/docs/classes/_physics_verlet_particle_.es.particle.html @@ -0,0 +1,336 @@ + + + + + + Particle | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Particle

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Particle +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

acceleration

+
acceleration: Vector2
+ +
+
+ +

collidesWithColliders

+
collidesWithColliders: boolean = true
+ +
+
+

如果为true,粒子将与标准对撞机相撞

+
+
+
+
+ +

isPinned

+
isPinned: boolean
+ +
+
+ +

lastPosition

+
lastPosition: Vector2
+ +
+
+

粒子最近移动之前的位置

+
+
+
+
+ +

mass

+
mass: number = 1
+ +
+
+

粒子的质量。考虑到所有的力量和限制

+
+
+
+
+ +

pinnedPosition

+
pinnedPosition: Vector2
+ +
+
+ +

position

+
position: Vector2
+ +
+
+

粒子的当前位置

+
+
+
+
+ +

radius

+
radius: number = 0
+ +
+
+

粒子的半径

+
+
+
+
+
+

Methods

+
+ +

applyForce

+
    +
  • applyForce(force: Vector2): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_physics_verlet_verletworld_.es.verletworld.html b/source/docs/classes/_physics_verlet_verletworld_.es.verletworld.html new file mode 100644 index 00000000..8759f613 --- /dev/null +++ b/source/docs/classes/_physics_verlet_verletworld_.es.verletworld.html @@ -0,0 +1,625 @@ + + + + + + VerletWorld | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class VerletWorld

+
+
+
+
+
+
+
+
+
+

Verlet模拟的根。创建一个世界,并调用它的更新方法。

+
+
+
+
+

Hierarchy

+
    +
  • + VerletWorld +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

_composites

+
_composites: Composite[] = []
+ +
+
+ +

_fixedDeltaTime

+
_fixedDeltaTime: number = 1 / 60
+ +
+
+ +

_fixedDeltaTimeSq

+
_fixedDeltaTimeSq: number = 0
+ +
+
+ +

_iterationSteps

+
_iterationSteps: number = 0
+ +
+
+ +

_leftOverTime

+
_leftOverTime: number = 0
+ +
+
+ +

_tempCircle

+
_tempCircle: Circle = new Circle(1)
+ +
+
+ +

allowDragging

+
allowDragging: boolean = true
+ +
+
+

粒子是否允许被拖拽

+
+
+
+
+ +

constraintIterations

+
constraintIterations: number = 3
+ +
+
+

整个模拟的最大迭代次数

+
+
+
+
+ +

gravity

+
gravity: Vector2 = new Vector2(0, 980)
+ +
+
+

用于模拟的重力

+
+
+
+
+ +

maximumStepIterations

+
maximumStepIterations: number = 5
+ +
+
+

整个模拟的最大迭代次数

+
+
+
+
+ +

Optional simulationBounds

+
simulationBounds: Rectangle
+ +
+
+

世界的边界。粒子将被限制在这个空间中。

+
+
+
+
+ +

Static _colliders

+
_colliders: Collider[] = new Array(4)
+ +
+
+
+

Methods

+
+ +

addComposite

+
    +
  • addComposite<T>(composite: T): T
  • +
+ +
+
+ +

constrainParticleToBounds

+
    +
  • constrainParticleToBounds(p: Particle): void
  • +
+ +
+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): void
  • +
+ +
+
+ +

handleCollisions

+
    +
  • handleCollisions(p: Particle, collidesWithLayers: number): void
  • +
+ +
+
+ +

handleDragging

+
    +
  • handleDragging(): void
  • +
+ +
+
+ +

removeComposite

+
    +
  • removeComposite(composite: Composite): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+ +

updateTiming

+
    +
  • updateTiming(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_group_.es.tmxgroup.html b/source/docs/classes/_tiled_group_.es.tmxgroup.html new file mode 100644 index 00000000..21771e60 --- /dev/null +++ b/source/docs/classes/_tiled_group_.es.tmxgroup.html @@ -0,0 +1,335 @@ + + + + + + TmxGroup | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxGroup

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxGroup +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

groups

+
groups: TmxGroup[]
+ +
+
+ +

imageLayers

+
imageLayers: TmxImageLayer[]
+ +
+
+ +

layers

+
layers: ITmxLayer[]
+ +
+
+ +

map

+
map: TmxMap
+ +
+
+ +

name

+
name: string
+ +
+
+ +

objectGroups

+
objectGroups: TmxObjectGroup[]
+ +
+
+ +

offsetX

+
offsetX: number
+ +
+
+ +

offsetY

+
offsetY: number
+ +
+
+ +

opacity

+
opacity: number
+ +
+
+ +

properties

+
properties: Map<string, string>
+ +
+
+ +

tileLayers

+
tileLayers: TmxLayer[]
+ +
+
+ +

visible

+
visible: boolean
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_imagelayer_.es.tmximagelayer.html b/source/docs/classes/_tiled_imagelayer_.es.tmximagelayer.html new file mode 100644 index 00000000..67aaafca --- /dev/null +++ b/source/docs/classes/_tiled_imagelayer_.es.tmximagelayer.html @@ -0,0 +1,307 @@ + + + + + + TmxImageLayer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxImageLayer

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxImageLayer +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

Optional height

+
height: number
+ +
+
+ +

image

+
image: TmxImage
+ +
+
+ +

map

+
map: TmxMap
+ +
+
+ +

name

+
name: string
+ +
+
+ +

offsetX

+
offsetX: number
+ +
+
+ +

offsetY

+
offsetY: number
+ +
+
+ +

opacity

+
opacity: number
+ +
+
+ +

properties

+
properties: Map<string, string>
+ +
+
+ +

visible

+
visible: boolean
+ +
+
+ +

Optional width

+
width: number
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_layer_.es.tmxlayer.html b/source/docs/classes/_tiled_layer_.es.tmxlayer.html new file mode 100644 index 00000000..72f69a29 --- /dev/null +++ b/source/docs/classes/_tiled_layer_.es.tmxlayer.html @@ -0,0 +1,498 @@ + + + + + + TmxLayer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxLayer

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxLayer +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

height

+
height: number
+ +
+
+

这一层的tile高度。对于固定大小的地图,始终与地图高度相同。

+
+
+
+
+ +

map

+
map: TmxMap
+ +
+
+ +

name

+
name: string
+ +
+
+ +

offsetX

+
offsetX: number
+ +
+
+ +

offsetY

+
offsetY: number
+ +
+
+ +

opacity

+
opacity: number
+ +
+
+ +

properties

+
properties: Map<string, string>
+ +
+
+ +

tiles

+
tiles: TmxLayerTile[]
+ +
+
+ +

visible

+
visible: boolean
+ +
+
+ +

width

+
width: number
+ +
+
+

这一层tile的宽度。对于固定大小的地图,始终与地图宽度相同。

+
+
+
+
+
+

Accessors

+
+ +

offset

+ + +
+
+
+

Methods

+
+ +

findBoundsRect

+
    +
  • findBoundsRect(startX: number, endX: number, startY: number, checkedIndexes?: boolean[]): Rectangle
  • +
+
    +
  • + +
    +
    +

    在startX和endX之间的tile周围找到最大的边界矩形,从startY开始,尽可能向下

    +
    +
    +

    Parameters

    +
      +
    • +
      startX: number
      +
    • +
    • +
      endX: number
      +
    • +
    • +
      startY: number
      +
    • +
    • +
      Optional checkedIndexes: boolean[]
      +
      +
      +
    • +
    +

    Returns Rectangle

    +
  • +
+
+
+ +

getCollisionRectangles

+ +
    +
  • + +
    +
    +

    返回平铺空间中的矩形列表,其中任何非空平铺组合为边界区域

    +
    +
    +

    Returns Rectangle[]

    +
  • +
+
+
+ +

getTile

+ +
    +
  • + +
    +
    +

    获取x/y坐标处的TmxLayerTile。注意,这些是平铺坐标而不是世界坐标!

    +
    +
    +

    Parameters

    +
      +
    • +
      x: number
      +
    • +
    • +
      y: number
      +
      +
      +
    • +
    +

    Returns TmxLayerTile

    +
  • +
+
+
+ +

getTileWithGid

+ +
    +
  • + +
    +
    +

    回带有gid的TmxLayerTile。这是一个慢查询,所以要缓存它

    +
    +
    +

    Parameters

    +
      +
    • +
      gid: number
      +
      +
      +
    • +
    +

    Returns TmxLayerTile

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_layer_.es.tmxlayertile.html b/source/docs/classes/_tiled_layer_.es.tmxlayertile.html new file mode 100644 index 00000000..87558be4 --- /dev/null +++ b/source/docs/classes/_tiled_layer_.es.tmxlayertile.html @@ -0,0 +1,389 @@ + + + + + + TmxLayerTile | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxLayerTile

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxLayerTile +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Optional _tilesetTileIndex

+
_tilesetTileIndex: number
+ +
+
+ +

gid

+
gid: number
+ +
+
+ +

horizontalFlip

+
horizontalFlip: boolean
+ +
+
+ +

tileset

+
tileset: TmxTileset
+ +
+
+ +

verticalFlip

+
verticalFlip: boolean
+ +
+
+ +

x

+
x: number
+ +
+
+ +

y

+
y: number
+ +
+
+ +

Static Readonly FLIPPED_HORIZONTALLY_FLAG

+
FLIPPED_HORIZONTALLY_FLAG: 2147483648 = 2147483648
+ +
+
+ +

Static Readonly FLIPPED_VERTICALLY_FLAG

+
FLIPPED_VERTICALLY_FLAG: 1073741824 = 1073741824
+ +
+
+
+

Accessors

+
+ +

position

+ + +
+
+ +

tilesetTile

+ +
    +
  • + +
    +
    +

    获取此TmxLayerTile(如果存在)的TmxTilesetTile + TmxTilesetTile只存在于动态的tiles和带有附加属性的tiles中。

    +
    +
    +

    Returns TmxTilesetTile

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_map_.es.tmxmap.html b/source/docs/classes/_tiled_map_.es.tmxmap.html new file mode 100644 index 00000000..1b15c7da --- /dev/null +++ b/source/docs/classes/_tiled_map_.es.tmxmap.html @@ -0,0 +1,840 @@ + + + + + + TmxMap | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxMap

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

_isDisposed

+
_isDisposed: any
+ +
+
+ +

backgroundColor

+
backgroundColor: number
+ +
+
+ +

groups

+
groups: TmxGroup[]
+ +
+
+ +

height

+
height: number
+ +
+
+ +

Optional hexSideLength

+
hexSideLength: number
+ +
+
+ +

imageLayers

+
imageLayers: TmxImageLayer[]
+ +
+
+ +

layers

+
layers: ITmxLayer[]
+ +
+
+

包含所有的ITmxLayers,不管它们的具体类型是什么。 + 注意,TmxGroup中的层将不在此列表中。TmxGroup管理自己的层列表。

+
+
+
+
+ +

maxTileHeight

+
maxTileHeight: number
+ +
+
+

当我们有一个图像tileset,tile可以是任何大小,所以我们记录的最大大小来剔除

+
+
+
+
+ +

maxTileWidth

+
maxTileWidth: number
+ +
+
+

当我们有一个图像tileset,tile可以是任何大小,所以我们记录的最大大小来剔除

+
+
+
+
+ +

Optional nextObjectID

+
nextObjectID: number
+ +
+
+ +

objectGroups

+
objectGroups: TmxObjectGroup[]
+ +
+
+ +

orientation

+
orientation: OrientationType
+ +
+
+ +

properties

+
properties: Map<string, string>
+ +
+
+ +

renderOrder

+
renderOrder: RenderOrderType
+ +
+
+ +

staggerAxis

+
staggerAxis: StaggerAxisType
+ +
+
+ +

staggerIndex

+
staggerIndex: StaggerIndexType
+ +
+
+ +

tileHeight

+
tileHeight: number
+ +
+
+ +

tileLayers

+
tileLayers: TmxLayer[]
+ +
+
+ +

tileWidth

+
tileWidth: number
+ +
+
+ +

tiledVersion

+
tiledVersion: string
+ +
+
+ +

tilesets

+
tilesets: TmxTileset[]
+ +
+
+ +

tmxDirectory

+
tmxDirectory: string
+ +
+
+ +

version

+
version: string
+ +
+
+ +

width

+
width: number
+ +
+
+
+

Accessors

+
+ +

requiresLargeTileCulling

+
    +
  • get requiresLargeTileCulling(): boolean
  • +
+
    +
  • + +
    +
    +

    此地图是否具有需要非默认平铺大小的特殊剔除

    +
    +
    +

    Returns boolean

    +
  • +
+
+
+ +

worldHeight

+
    +
  • get worldHeight(): number
  • +
+ +
+
+ +

worldWidth

+
    +
  • get worldWidth(): number
  • +
+ +
+
+
+

Methods

+
+ +

dispose

+
    +
  • dispose(disposing?: boolean): void
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      Default value disposing: boolean = true
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

getLayer

+ +
    +
  • + +
    +
    +

    按名称获取平铺层

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +
      +
      +
    • +
    +

    Returns ITmxLayer

    +
  • +
+
+
+ +

getTilesetForTileGid

+
    +
  • getTilesetForTileGid(gid: number): TmxTileset
  • +
+
    +
  • + +
    +
    +

    获取给定tileId的tile tileset

    +
    +
    +

    Parameters

    +
      +
    • +
      gid: number
      +
      +
      +
    • +
    +

    Returns TmxTileset

    +
  • +
+
+
+ +

update

+
    +
  • update(): void
  • +
+
    +
  • + +
    +
    +

    更新他们的动画tile

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

worldToTilePositionX

+
    +
  • worldToTilePositionX(x: number, clampToTilemapBounds?: boolean): number
  • +
+
    +
  • + +
    +
    +

    转换从世界平铺位置获取tilemap边界

    +
    +
    +

    Parameters

    +
      +
    • +
      x: number
      +
    • +
    • +
      Default value clampToTilemapBounds: boolean = true
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

worldToTilePositionY

+
    +
  • worldToTilePositionY(y: number, clampToTilemapBounds?: boolean): number
  • +
+
    +
  • + +
    +
    +

    转换从世界平铺位置获取tilemap边界

    +
    +
    +

    Parameters

    +
      +
    • +
      y: number
      +
    • +
    • +
      Default value clampToTilemapBounds: boolean = true
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_objectgroup_.es.tmxalignment.html b/source/docs/classes/_tiled_objectgroup_.es.tmxalignment.html new file mode 100644 index 00000000..162c9588 --- /dev/null +++ b/source/docs/classes/_tiled_objectgroup_.es.tmxalignment.html @@ -0,0 +1,205 @@ + + + + + + TmxAlignment | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxAlignment

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxAlignment +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

horizontal

+ + +
+
+ +

vertical

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_objectgroup_.es.tmxobject.html b/source/docs/classes/_tiled_objectgroup_.es.tmxobject.html new file mode 100644 index 00000000..0d88497e --- /dev/null +++ b/source/docs/classes/_tiled_objectgroup_.es.tmxobject.html @@ -0,0 +1,438 @@ + + + + + + TmxObject | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxObject

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxObject +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

height

+
height: number
+ +
+
+ +

id

+
id: number
+ +
+
+ +

name

+
name: string
+ +
+
+ +

objectType

+
objectType: TmxObjectType
+ +
+
+ +

points

+
points: Vector2[]
+ +
+
+ +

properties

+
properties: Map<string, string>
+ +
+
+ +

rotation

+
rotation: number
+ +
+
+ +

shape

+
shape: Shape
+ +
+
+ +

text

+
text: TmxText
+ +
+
+ +

textField

+
textField: TextField
+ +
+
+ +

tile

+ + +
+
+ +

type

+
type: string
+ +
+
+ +

visible

+
visible: boolean
+ +
+
+ +

width

+
width: number
+ +
+
+ +

x

+
x: number
+ +
+
+ +

y

+
y: number
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_objectgroup_.es.tmxobjectgroup.html b/source/docs/classes/_tiled_objectgroup_.es.tmxobjectgroup.html new file mode 100644 index 00000000..22b284e8 --- /dev/null +++ b/source/docs/classes/_tiled_objectgroup_.es.tmxobjectgroup.html @@ -0,0 +1,328 @@ + + + + + + TmxObjectGroup | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxObjectGroup

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxObjectGroup +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

color

+
color: number
+ +
+
+ +

drawOrder

+
drawOrder: DrawOrderType
+ +
+
+ +

map

+
map: TmxMap
+ +
+
+ +

name

+
name: string
+ +
+
+ +

objects

+
objects: TmxObject[]
+ +
+
+ +

offsetX

+
offsetX: number
+ +
+
+ +

offsetY

+
offsetY: number
+ +
+
+ +

opacity

+
opacity: number
+ +
+
+ +

properties

+
properties: Map<string, string>
+ +
+
+ +

visible

+
visible: boolean
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_objectgroup_.es.tmxtext.html b/source/docs/classes/_tiled_objectgroup_.es.tmxtext.html new file mode 100644 index 00000000..d64a4d44 --- /dev/null +++ b/source/docs/classes/_tiled_objectgroup_.es.tmxtext.html @@ -0,0 +1,331 @@ + + + + + + TmxText | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxText

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxText +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

alignment

+
alignment: TmxAlignment
+ +
+
+ +

bold

+
bold: boolean
+ +
+
+ +

color

+
color: number
+ +
+
+ +

fontFamily

+
fontFamily: string
+ +
+
+ +

italic

+
italic: boolean
+ +
+
+ +

kerning

+
kerning: boolean
+ +
+
+ +

pixelSize

+
pixelSize: number
+ +
+
+ +

strikeout

+
strikeout: boolean
+ +
+
+ +

underline

+
underline: boolean
+ +
+
+ +

value

+
value: string
+ +
+
+ +

wrap

+
wrap: boolean
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_tiledcore_.es.tmxdocument.html b/source/docs/classes/_tiled_tiledcore_.es.tmxdocument.html new file mode 100644 index 00000000..fb234460 --- /dev/null +++ b/source/docs/classes/_tiled_tiledcore_.es.tmxdocument.html @@ -0,0 +1,214 @@ + + + + + + TmxDocument | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxDocument

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

tmxDirectory

+
tmxDirectory: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_tiledcore_.es.tmximage.html b/source/docs/classes/_tiled_tiledcore_.es.tmximage.html new file mode 100644 index 00000000..16fb5ba0 --- /dev/null +++ b/source/docs/classes/_tiled_tiledcore_.es.tmximage.html @@ -0,0 +1,304 @@ + + + + + + TmxImage | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxImage

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxImage +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

bitmap

+
bitmap: SpriteSheet
+ +
+
+ +

data

+
data: any
+ +
+
+ +

format

+
format: string
+ +
+
+ +

height

+
height: number
+ +
+
+ +

source

+
source: string
+ +
+
+ +

texture

+
texture: Bitmap
+ +
+
+ +

trans

+
trans: number
+ +
+
+ +

width

+
width: number
+ +
+
+
+

Methods

+
+ +

dispose

+
    +
  • dispose(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_tiledmaploader_.es.tiledmaploader.html b/source/docs/classes/_tiled_tiledmaploader_.es.tiledmaploader.html new file mode 100644 index 00000000..a8ea89c5 --- /dev/null +++ b/source/docs/classes/_tiled_tiledmaploader_.es.tiledmaploader.html @@ -0,0 +1,959 @@ + + + + + + TiledMapLoader | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TiledMapLoader

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TiledMapLoader +
  • +
+
+
+

Index

+
+ +
+
+
+

Methods

+
+ +

Static loadTmxAlignment

+ + +
+
+ +

Static loadTmxAnimationFrame

+ + +
+
+ +

Static loadTmxGroup

+
    +
  • loadTmxGroup(group: TmxGroup, map: TmxMap, xGroup: any, width: number, height: number, tmxDirectory: string): Promise<TmxGroup>
  • +
+ +
+
+ +

Static loadTmxImage

+
    +
  • loadTmxImage(image: TmxImage, xImage: any, tmxDirectory: string): Promise<TmxImage>
  • +
+ +
+
+ +

Static loadTmxImageLayer

+ + +
+
+ +

Static loadTmxLayer

+ + +
+
+ +

Static loadTmxMap

+
    +
  • loadTmxMap(map: TmxMap, filePath: string): Promise<TmxMap>
  • +
+ +
+
+ +

Static loadTmxMapData

+
    +
  • loadTmxMapData(map: TmxMap, xMap: any, info: any): Promise<TmxMap>
  • +
+ +
+
+ +

Static loadTmxObject

+ + +
+
+ +

Static loadTmxObjectGroup

+ + +
+
+ +

Static loadTmxText

+ + +
+
+ +

Static loadTmxTileset

+ + +
+
+ +

Static loadTmxTilesetTile

+ + +
+
+ +

Static parseLayers

+
    +
  • parseLayers(container: any, xEle: any, map: TmxMap, width: number, height: number, tmxDirectory: string): Promise<void>
  • +
+
    +
  • + +
    +
    +

    解析xEle中的所有层,将它们放入容器中

    +
    +
    +

    Parameters

    +
      +
    • +
      container: any
      +
    • +
    • +
      xEle: any
      +
    • +
    • +
      map: TmxMap
      +
    • +
    • +
      width: number
      +
    • +
    • +
      height: number
      +
    • +
    • +
      tmxDirectory: string
      +
      +
      +
    • +
    +

    Returns Promise<void>

    +
  • +
+
+
+ +

Static parseOrientationType

+ + +
+
+ +

Static parsePoint

+
    +
  • parsePoint(pt: { x: number; y: number }): Vector2
  • +
+ +
+
+ +

Static parsePoints

+
    +
  • parsePoints(xPoints: any): any[]
  • +
+ +
+
+ +

Static parsePropertyDict

+
    +
  • parsePropertyDict(prop: any): Map<string, string>
  • +
+ +
+
+ +

Static parseRenderOrderType

+ + +
+
+ +

Static parseStaggerAxisType

+
    +
  • parseStaggerAxisType(type: string): x | y
  • +
+ +
+
+ +

Static parseStaggerIndexType

+
    +
  • parseStaggerIndexType(type: string): odd | even
  • +
+ +
+
+ +

Static parseTmxTerrain

+ + +
+
+ +

Static parseTmxTileOffset

+ + +
+
+ +

Static parseTmxTileset

+ + +
+
+ +

Static Private updateMaxTileSizes

+
    +
  • updateMaxTileSizes(tileset: TmxTileset): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_tiledrendering_.es.tiledrendering.html b/source/docs/classes/_tiled_tiledrendering_.es.tiledrendering.html new file mode 100644 index 00000000..82b7d658 --- /dev/null +++ b/source/docs/classes/_tiled_tiledrendering_.es.tiledrendering.html @@ -0,0 +1,530 @@ + + + + + + TiledRendering | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TiledRendering

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TiledRendering +
  • +
+
+
+

Index

+
+ +
+
+
+

Methods

+
+ +

Static renderGroup

+
    +
  • renderGroup(group: TmxGroup, container: DisplayObjectContainer, position: Vector2, scale: Vector2, layerDepth: number): void
  • +
+ +
+
+ +

Static renderImageLayer

+
    +
  • renderImageLayer(layer: TmxImageLayer, container: DisplayObjectContainer, position: Vector2, scale: Vector2, layerDepth: number): void
  • +
+ +
+
+ +

Static renderLayer

+
    +
  • renderLayer(layer: TmxLayer, container: DisplayObjectContainer, position: Vector2, scale: Vector2, layerDepth: number): void
  • +
+ +
+
+ +

Static renderLayerCamera

+
    +
  • renderLayerCamera(layer: TmxLayer, container: DisplayObjectContainer, position: Vector2, scale: Vector2, layerDepth: number, camerClipBounds: Rectangle): void
  • +
+ +
+
+ +

Static renderLayerRenderCamera

+
    +
  • renderLayerRenderCamera(layer: ITmxLayer, container: DisplayObjectContainer, position: Vector2, scale: Vector2, layerDepth: number, camerClipBounds: Rectangle): void
  • +
+ +
+
+ +

Static renderMap

+
    +
  • renderMap(map: TmxMap, container: DisplayObjectContainer, position: Vector2, scale: Vector2, layerDepth: number): void
  • +
+ +
+
+ +

Static renderObjectGroup

+
    +
  • renderObjectGroup(objGroup: TmxObjectGroup, container: DisplayObjectContainer, position: Vector2, scale: Vector2, layerDepth: number): void
  • +
+ +
+
+ +

Static renderTile

+
    +
  • renderTile(tile: TmxLayerTile, container: DisplayObjectContainer, position: Vector2, scale: Vector2, tileWidth: number, tileHeight: number, color: ColorMatrixFilter, layerDepth: number): void
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      tile: TmxLayerTile
      +
    • +
    • +
      container: DisplayObjectContainer
      +
    • +
    • +
      position: Vector2
      +
    • +
    • +
      scale: Vector2
      +
    • +
    • +
      tileWidth: number
      +
    • +
    • +
      tileHeight: number
      +
    • +
    • +
      color: ColorMatrixFilter
      +
    • +
    • +
      layerDepth: number
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static Private renderTilesetTile

+
    +
  • renderTilesetTile(objGroup: TmxObjectGroup, obj: any, container: DisplayObjectContainer, pos: any, scale: Vector2, debugRender: any): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_tileset_.es.tmxterrain.html b/source/docs/classes/_tiled_tileset_.es.tmxterrain.html new file mode 100644 index 00000000..45435918 --- /dev/null +++ b/source/docs/classes/_tiled_tileset_.es.tmxterrain.html @@ -0,0 +1,211 @@ + + + + + + TmxTerrain | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxTerrain

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxTerrain +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

name

+
name: any
+ +
+
+ +

properties

+
properties: Map<string, string>
+ +
+
+ +

tile

+
tile: number
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_tileset_.es.tmxtileoffset.html b/source/docs/classes/_tiled_tileset_.es.tmxtileoffset.html new file mode 100644 index 00000000..d5eaa16e --- /dev/null +++ b/source/docs/classes/_tiled_tileset_.es.tmxtileoffset.html @@ -0,0 +1,190 @@ + + + + + + TmxTileOffset | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxTileOffset

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxTileOffset +
  • +
+
+
+

Index

+
+
+
+

Properties

+
    +
  • x
  • +
  • y
  • +
+
+
+
+
+
+

Properties

+
+ +

x

+
x: number
+ +
+
+ +

y

+
y: number
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_tileset_.es.tmxtileset.html b/source/docs/classes/_tiled_tileset_.es.tmxtileset.html new file mode 100644 index 00000000..9374b52d --- /dev/null +++ b/source/docs/classes/_tiled_tileset_.es.tmxtileset.html @@ -0,0 +1,468 @@ + + + + + + TmxTileset | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxTileset

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Implements

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Optional columns

+
columns: number
+ +
+
+ +

firstGid

+
firstGid: number
+ +
+
+ +

image

+
image: TmxImage
+ +
+
+ +

map

+
map: TmxMap
+ +
+
+ +

margin

+
margin: number
+ +
+
+ +

name

+
name: any
+ +
+
+ +

properties

+
properties: Map<string, string>
+ +
+
+ +

spacing

+
spacing: number
+ +
+
+ +

terrains

+
terrains: TmxTerrain[]
+ +
+
+ +

Optional tileCount

+
tileCount: number
+ +
+
+ +

tileHeight

+
tileHeight: number
+ +
+
+ +

tileOffset

+
tileOffset: TmxTileOffset
+ +
+
+ +

tileRegions

+
tileRegions: Map<number, Rectangle>
+ +
+
+

为每个块缓存源矩形

+
+
+
+
+ +

tileWidth

+
tileWidth: number
+ +
+
+ +

tiles

+
tiles: Map<number, TmxTilesetTile>
+ +
+
+ +

tmxDirectory

+
tmxDirectory: string
+ +
+
+
+

Methods

+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_tilesettile_.es.tmxanimationframe.html b/source/docs/classes/_tiled_tilesettile_.es.tmxanimationframe.html new file mode 100644 index 00000000..e192540b --- /dev/null +++ b/source/docs/classes/_tiled_tilesettile_.es.tmxanimationframe.html @@ -0,0 +1,187 @@ + + + + + + TmxAnimationFrame | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxAnimationFrame

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxAnimationFrame +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

duration

+
duration: number
+ +
+
+ +

gid

+
gid: number
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_tilesettile_.es.tmxtilesettile.html b/source/docs/classes/_tiled_tilesettile_.es.tmxtilesettile.html new file mode 100644 index 00000000..f4a04c47 --- /dev/null +++ b/source/docs/classes/_tiled_tilesettile_.es.tmxtilesettile.html @@ -0,0 +1,488 @@ + + + + + + TmxTilesetTile | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxTilesetTile

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxTilesetTile +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

_animationCurrentFrame

+
_animationCurrentFrame: number
+ +
+
+ +

_animationElapsedTime

+
_animationElapsedTime: number
+ +
+
+ +

animationFrames

+
animationFrames: TmxAnimationFrame[]
+ +
+
+ +

id

+
id: number
+ +
+
+ +

image

+
image: TmxImage
+ +
+
+ +

isDestructable

+
isDestructable: boolean
+ +
+
+

返回“engine:isDestructable”属性的值(如果属性字典中存在)

+
+
+
+
+ +

isOneWayPlatform

+
isOneWayPlatform: boolean
+ +
+
+

返回“engine:isOneWayPlatform”属性的值(如果存在于属性字典中)

+
+
+
+
+ +

isSlope

+
isSlope: boolean
+ +
+
+

返回“engine:isSlope”属性的值(如果存在于属性字典中)

+
+
+
+
+ +

objectGroups

+
objectGroups: TmxObjectGroup[]
+ +
+
+ +

probability

+
probability: number
+ +
+
+ +

properties

+
properties: Map<string, string>
+ +
+
+ +

slopeTopLeft

+
slopeTopLeft: number
+ +
+
+

返回“engine:slopeTopLeft”属性的值(如果存在于属性字典中)

+
+
+
+
+ +

slopeTopRight

+
slopeTopRight: number
+ +
+
+

如果属性字典中存在“engine:slopeTopRight”属性,则返回该属性的值

+
+
+
+
+ +

terrainEdges

+
terrainEdges: TmxTerrain[]
+ +
+
+ +

tileset

+
tileset: TmxTileset
+ +
+
+ +

type

+
type: string
+ +
+
+
+

Accessors

+
+ +

currentAnimationFrameGid

+
    +
  • get currentAnimationFrameGid(): number
  • +
+ +
+
+
+

Methods

+
+ +

processProperties

+
    +
  • processProperties(): void
  • +
+ +
+
+ +

updateAnimatedTiles

+
    +
  • updateAnimatedTiles(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_tiled_tmxutils_.es.tmxutils.html b/source/docs/classes/_tiled_tmxutils_.es.tmxutils.html new file mode 100644 index 00000000..2a3ac25e --- /dev/null +++ b/source/docs/classes/_tiled_tmxutils_.es.tmxutils.html @@ -0,0 +1,252 @@ + + + + + + TmxUtils | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TmxUtils

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TmxUtils +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static color16ToUnit

+
    +
  • color16ToUnit($color: string): number
  • +
+
    +
  • + +
    +
    +

    将带"#"号的颜色字符串转换为16进制的颜色,例如:可将"#ff0000"转换为"0xff0000"

    +
    +
    +
    version
    +

    Egret 3.0.3

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      $color: string
      +
      +

      要转换的颜色字符串

      +
      +
    • +
    +

    Returns number

    +

    返回16进制的颜色值

    +
  • +
+
+
+ +

Static decode

+
    +
  • decode(data: any, encoding: any, compression: string): Array<number>
  • +
+
    +
  • + +
    +
    +

    解码

    +
    +
    +
    version
    +

    Egret 3.0.3

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      data: any
      +
      +

      数据

      +
      +
    • +
    • +
      encoding: any
      +
      +

      编码方式 目前暂时只支持XML、base64(无压缩)、csv解析

      +
      +
    • +
    • +
      compression: string
      +
      +

      压缩方式

      +
      +
    • +
    +

    Returns Array<number>

    +

    返回解析后的数据列表

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_analysis_layout_.es.layout.html b/source/docs/classes/_utils_analysis_layout_.es.layout.html new file mode 100644 index 00000000..40bc150c --- /dev/null +++ b/source/docs/classes/_utils_analysis_layout_.es.layout.html @@ -0,0 +1,269 @@ + + + + + + Layout | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Layout

+
+
+
+
+
+
+
+
+
+

支持标题安全区的布局类。

+
+
+
+
+

Hierarchy

+
    +
  • + Layout +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

clientArea

+
clientArea: Rectangle
+ +
+
+ +

safeArea

+
safeArea: Rectangle
+ +
+
+
+

Methods

+
+ +

place

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_analysis_stopwatch_.stopwatch.stopwatch.html b/source/docs/classes/_utils_analysis_stopwatch_.stopwatch.stopwatch.html new file mode 100644 index 00000000..609ad8bb --- /dev/null +++ b/source/docs/classes/_utils_analysis_stopwatch_.stopwatch.stopwatch.html @@ -0,0 +1,794 @@ + + + + + + Stopwatch | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Stopwatch

+
+
+
+
+
+
+
+
+
+

记录时间的持续时间,一些设计灵感来自物理秒表。

+
+
+
+
+

Hierarchy

+
    +
  • + Stopwatch +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Stopwatch(getSystemTime?: () => number): Stopwatch
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      Default value getSystemTime: () => number = _defaultSystemTimeGetter
      +
        +
      • +
          +
        • (): number
        • +
        +
          +
        • +

          Returns number

          +
        • +
        +
      • +
      +
    • +
    +

    Returns Stopwatch

    +
  • +
+
+
+
+

Properties

+
+ +

Private _completeSlices

+
_completeSlices: Slice[] = []
+ +
+
+

记录自上次复位以来所有已完成切片的结果。

+
+
+
+
+ +

Private _pendingSliceStartStopwatchTime

+
_pendingSliceStartStopwatchTime: number | undefined
+ +
+
+

用秒表计时,当前等待的切片开始的时间。 + undefined,如果秒表尚未启动,或已复位。

+
+
+
+
+ +

Private _startSystemTime

+
_startSystemTime: number | undefined
+ +
+
+

秒表启动的系统时间。 + undefined,如果秒表尚未启动,或已复位。

+
+
+
+
+ +

Private _stopDuration

+
_stopDuration: number = 0
+ +
+
+

自上次复位以来,秒表已停止的系统时间总数。

+
+
+
+
+ +

Private _stopSystemTime

+
_stopSystemTime: number | undefined
+ +
+
+

秒表停止的系统时间。 + undefined,如果秒表目前没有停止,尚未开始,或已复位。

+
+
+
+
+ +

Private Readonly getSystemTime

+
getSystemTime: () => number
+ +
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    +
      +
    • +

      Returns number

      +
    • +
    +
  • +
+
+
+
+
+

Methods

+
+ +

Private caculateStopwatchTime

+
    +
  • caculateStopwatchTime(endSystemTime?: number): number
  • +
+
    +
  • + +
    +
    +

    计算指定系统时间的当前秒表时间。

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional endSystemTime: number
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Private calculatePendingSlice

+
    +
  • calculatePendingSlice(endStopwatchTime?: number): Slice
  • +
+ +
+
+ +

getCompletedAndPendingSlices

+
    +
  • getCompletedAndPendingSlices(): Slice[]
  • +
+
    +
  • + +
    +
    +

    获取自上次重置以来该秒表已完成/记录的所有片的列表,以及当前挂起的片。

    +
    +
    +

    Returns Slice[]

    +
  • +
+
+
+ +

getCompletedSlices

+
    +
  • getCompletedSlices(): Slice[]
  • +
+ +
+
+ +

getPendingSlice

+
    +
  • getPendingSlice(): Slice
  • +
+ +
+
+ +

getState

+ + +
+
+ +

Private getSystemTimeOfCurrentStopwatchTime

+
    +
  • getSystemTimeOfCurrentStopwatchTime(): number
  • +
+
    +
  • + +
    +
    +

    获取与当前秒表时间等效的系统时间。 + 如果该秒表当前停止,则返回该秒表停止时的系统时间。

    +
    +
    +

    Returns number

    +
  • +
+
+
+ +

getTime

+
    +
  • getTime(): number
  • +
+
    +
  • + +
    +
    +

    获取当前秒表时间。这是这个秒表自上次复位以来运行的系统时间总数。

    +
    +
    +

    Returns number

    +
  • +
+
+
+ +

isIdle

+
    +
  • isIdle(): boolean
  • +
+ +
+
+ +

isRunning

+
    +
  • isRunning(): boolean
  • +
+ +
+
+ +

isStopped

+
    +
  • isStopped(): boolean
  • +
+ +
+
+ +

Private recordPendingSlice

+
    +
  • recordPendingSlice(endStopwatchTime?: number): Slice
  • +
+
    +
  • + +
    +
    +

    结束/记录当前挂起的片的私有实现。

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional endStopwatchTime: number
      +
      +
      +
    • +
    +

    Returns Slice

    +
  • +
+
+
+ +

reset

+
    +
  • reset(): void
  • +
+
    +
  • + +
    +
    +

    完全重置这个秒表到它的初始状态。清除所有记录的运行持续时间、切片等。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

slice

+ + +
+
+ +

start

+
    +
  • start(forceReset?: boolean): void
  • +
+
    +
  • + +
    +
    +

    开始(或继续)运行秒表。

    +
    +
    +

    Parameters

    +
      +
    • +
      Default value forceReset: boolean = false
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

stop

+
    +
  • stop(recordPendingSlice?: boolean): number
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Private property
  • +
  • Private method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_analysis_timeruler_.es.framelog.html b/source/docs/classes/_utils_analysis_timeruler_.es.framelog.html new file mode 100644 index 00000000..af11c5af --- /dev/null +++ b/source/docs/classes/_utils_analysis_timeruler_.es.framelog.html @@ -0,0 +1,222 @@ + + + + + + FrameLog | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class FrameLog

+
+
+
+
+
+
+
+
+
+

日志信息

+
+
+
+
+

Hierarchy

+
    +
  • + FrameLog +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

bars

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_analysis_timeruler_.es.marker.html b/source/docs/classes/_utils_analysis_timeruler_.es.marker.html new file mode 100644 index 00000000..a58ea22b --- /dev/null +++ b/source/docs/classes/_utils_analysis_timeruler_.es.marker.html @@ -0,0 +1,227 @@ + + + + + + Marker | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Marker

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Marker +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

beginTime

+
beginTime: number = 0
+ +
+
+ +

color

+
color: number = 0
+ +
+
+ +

endTime

+
endTime: number = 0
+ +
+
+ +

markerId

+
markerId: number = 0
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_analysis_timeruler_.es.markercollection.html b/source/docs/classes/_utils_analysis_timeruler_.es.markercollection.html new file mode 100644 index 00000000..49036c1b --- /dev/null +++ b/source/docs/classes/_utils_analysis_timeruler_.es.markercollection.html @@ -0,0 +1,264 @@ + + + + + + MarkerCollection | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class MarkerCollection

+
+
+
+
+
+
+
+
+
+

标记的集合

+
+
+
+
+

Hierarchy

+
    +
  • + MarkerCollection +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

markCount

+
markCount: number = 0
+ +
+
+ +

markerNests

+
markerNests: number[] = new Array<number>(TimeRuler.maxNestCall)
+ +
+
+ +

markers

+
markers: Marker[] = new Array<Marker>(TimeRuler.maxSamples)
+ +
+
+ +

nestCount

+
nestCount: number = 0
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_analysis_timeruler_.es.markerinfo.html b/source/docs/classes/_utils_analysis_timeruler_.es.markerinfo.html new file mode 100644 index 00000000..0adb3966 --- /dev/null +++ b/source/docs/classes/_utils_analysis_timeruler_.es.markerinfo.html @@ -0,0 +1,235 @@ + + + + + + MarkerInfo | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class MarkerInfo

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + MarkerInfo +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

logs

+
logs: MarkerLog[] = new Array<MarkerLog>(TimeRuler.maxBars)
+ +
+
+ +

name

+
name: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_analysis_timeruler_.es.markerlog.html b/source/docs/classes/_utils_analysis_timeruler_.es.markerlog.html new file mode 100644 index 00000000..3f4442eb --- /dev/null +++ b/source/docs/classes/_utils_analysis_timeruler_.es.markerlog.html @@ -0,0 +1,297 @@ + + + + + + MarkerLog | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class MarkerLog

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + MarkerLog +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

avg

+
avg: number = 0
+ +
+
+ +

color

+
color: number = 0
+ +
+
+ +

initialized

+
initialized: boolean = false
+ +
+
+ +

max

+
max: number = 0
+ +
+
+ +

min

+
min: number = 0
+ +
+
+ +

samples

+
samples: number = 0
+ +
+
+ +

snapAvg

+
snapAvg: number = 0
+ +
+
+ +

snapMax

+
snapMax: number = 0
+ +
+
+ +

snapMin

+
snapMin: number = 0
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_analysis_timeruler_.es.timeruler.html b/source/docs/classes/_utils_analysis_timeruler_.es.timeruler.html new file mode 100644 index 00000000..3ac96019 --- /dev/null +++ b/source/docs/classes/_utils_analysis_timeruler_.es.timeruler.html @@ -0,0 +1,975 @@ + + + + + + TimeRuler | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TimeRuler

+
+
+
+
+
+
+
+
+
+

通过使用这个类,您可以直观地找到瓶颈和基本的CPU使用情况。

+
+
+
+
+

Hierarchy

+
    +
  • + TimeRuler +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private _frameAdjust

+
_frameAdjust: number
+ +
+
+ +

Private _markerNameToIdMap

+
_markerNameToIdMap: Map<string, number> = new Map<string, number>()
+ +
+
+

从标记名映射到标记id的字典。

+
+
+
+
+ +

Private _position

+
_position: Vector2
+ +
+
+

TimerRuler画的位置。

+
+
+
+
+ +

Private _rectShape1

+
_rectShape1: Shape = new egret.Shape()
+ +
+
+

画透明背景

+
+
+
+
+ +

Private _rectShape2

+
_rectShape2: Shape = new egret.Shape()
+ +
+
+ +

Private _rectShape3

+
_rectShape3: Shape = new egret.Shape()
+ +
+
+ +

Private _rectShape4

+
_rectShape4: Shape = new egret.Shape()
+ +
+
+ +

Private _rectShape5

+
_rectShape5: Shape = new egret.Shape()
+ +
+
+ +

Private _rectShape6

+
_rectShape6: Shape = new egret.Shape()
+ +
+
+ +

Private _updateCount

+
_updateCount: number
+ +
+
+

你想在游戏开始时调用StartFrame更新方法。 + 当游戏在固定时间步进模式下运行缓慢时,更新会多次调用。 + 在这种情况下,我们应该忽略StartFrame调用。 + 为此,我们只需一直跟踪StartFrame调用的次数,直到Draw被调用。

+
+
+
+
+ +

Private curLog

+
curLog: FrameLog
+ +
+
+

当前帧日志

+
+
+
+
+ +

enabled

+
enabled: true
+ +
+
+ +

Private frameCount

+
frameCount: number
+ +
+
+

当前帧数量

+
+
+
+
+ +

logs

+
logs: FrameLog[]
+ +
+
+

每帧的日志

+
+
+
+
+ +

Private markers

+
markers: MarkerInfo[] = []
+ +
+
+ +

Private prevLog

+
prevLog: FrameLog
+ +
+
+

上一帧日志

+
+
+
+
+ +

Private sampleFrames

+
sampleFrames: number
+ +
+
+

当前显示帧计数

+
+
+
+
+ +

showLog

+
showLog: boolean = false
+ +
+
+

获取/设置日志显示或否

+
+
+
+
+ +

Private stopwacth

+
stopwacth: Stopwatch = new stopwatch.Stopwatch()
+ +
+
+

秒表用来测量时间。

+
+
+
+
+ +

targetSampleFrames

+
targetSampleFrames: number
+ +
+
+

获取/设置目标样本帧。

+
+
+
+
+ +

width

+
width: number
+ +
+
+

获取/设置计时器标尺宽度。

+
+
+
+
+ +

Static Private _instance

+
_instance: any
+ +
+
+ +

Static Readonly autoAdjustDelay

+
autoAdjustDelay: 30 = 30
+ +
+
+ +

Static Readonly barHeight

+
barHeight: 8 = 8
+ +
+
+

条的高度(以像素为单位)

+
+
+
+
+ +

Static Readonly barPadding

+
barPadding: 2 = 2
+ +
+
+ +

Static Readonly logSnapDuration

+
logSnapDuration: 120 = 120
+ +
+
+

持续时间(帧数)为采取抓拍日志。

+
+
+
+
+ +

Static Readonly maxBars

+
maxBars: 8 = 8
+ +
+
+

最大条数 8

+
+
+
+
+ +

Static Readonly maxNestCall

+
maxNestCall: 32 = 32
+ +
+
+

每条的最大嵌套调用

+
+
+
+
+ +

Static Readonly maxSampleFrames

+
maxSampleFrames: 4 = 4
+ +
+
+

最大显示帧

+
+
+
+
+ +

Static Readonly maxSamples

+
maxSamples: 256 = 256
+ +
+
+
+

Accessors

+
+ +

Static Instance

+ + +
+
+
+

Methods

+
+ +

beginMark

+
    +
  • beginMark(markerName: string, color: number, barIndex?: number): void
  • +
+
    +
  • + +
    +
    +

    开始测量时间。

    +
    +
    +

    Parameters

    +
      +
    • +
      markerName: string
      +
    • +
    • +
      color: number
      +
    • +
    • +
      Default value barIndex: number = 0
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

endMark

+
    +
  • endMark(markerName: string, barIndex?: number): void
  • +
+ +
+
+ +

getAverageTime

+
    +
  • getAverageTime(barIndex: number, markerName: string): number
  • +
+
    +
  • + +
    +
    +

    获取给定bar索引和标记名称的平均时间。

    +
    +
    +

    Parameters

    +
      +
    • +
      barIndex: number
      +
    • +
    • +
      markerName: string
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

Private onGraphicsDeviceReset

+
    +
  • onGraphicsDeviceReset(): void
  • +
+ +
+
+ +

render

+
    +
  • render(position?: Vector2, width?: number): void
  • +
+ +
+
+ +

resetLog

+
    +
  • resetLog(): void
  • +
+ +
+
+ +

startFrame

+
    +
  • startFrame(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Private property
  • +
  • Private method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_arrayutils_.arrayutils.html b/source/docs/classes/_utils_arrayutils_.arrayutils.html new file mode 100644 index 00000000..7fc4fbb9 --- /dev/null +++ b/source/docs/classes/_utils_arrayutils_.arrayutils.html @@ -0,0 +1,644 @@ + + + + + + ArrayUtils | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ArrayUtils

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + ArrayUtils +
  • +
+
+
+

Index

+
+ +
+
+
+

Methods

+
+ +

Static binarySearch

+
    +
  • binarySearch(ary: number[], value: number): number
  • +
+
    +
  • + +
    +
    +

    执行二分搜索

    +
    +
    +

    Parameters

    +
      +
    • +
      ary: number[]
      +
      +

      搜索的数组(必须排序过)

      +
      +
    • +
    • +
      value: number
      +
      +

      需要搜索的值

      +
      +
    • +
    +

    Returns number

    +

    返回匹配结果的数组索引

    +
  • +
+
+
+ +

Static bubbleSort

+
    +
  • bubbleSort(ary: number[]): void
  • +
+ +
+
+ +

Static clearList

+
    +
  • clearList(ary: any[]): void
  • +
+
    +
  • + +
    +
    +

    清除列表

    +
    +
    +

    Parameters

    +
      +
    • +
      ary: any[]
      +
      +

      列表

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static cloneList

+
    +
  • cloneList(ary: any[]): any[]
  • +
+
    +
  • + +
    +
    +

    克隆一个数组

    +
    +
    +

    Parameters

    +
      +
    • +
      ary: any[]
      +
      +

      需要克隆的数组

      +
      +
    • +
    +

    Returns any[]

    +

    克隆的数组

    +
  • +
+
+
+ +

Static equals

+
    +
  • equals(ary1: number[], ary2: number[]): Boolean
  • +
+
    +
  • + +
    +
    +

    判断2个数组是否相同

    +
    +
    +

    Parameters

    +
      +
    • +
      ary1: number[]
      +
      +

      数组1

      +
      +
    • +
    • +
      ary2: number[]
      +
      +

      数组2

      +
      +
    • +
    +

    Returns Boolean

    +

    是否相同

    +
  • +
+
+
+ +

Static findElementIndex

+
    +
  • findElementIndex(ary: any[], num: any): any
  • +
+
    +
  • + +
    +
    +

    返回匹配项的索引

    +
    +
    +

    Parameters

    +
      +
    • +
      ary: any[]
      +
    • +
    • +
      num: any
      +
    • +
    +

    Returns any

    +

    返回匹配项的索引

    +
  • +
+
+
+ +

Static getDifferAry

+
    +
  • getDifferAry(aryA: number[], aryB: number[]): number[]
  • +
+
    +
  • + +
    +
    +

    返回2个数组中不同的部分 + 比如数组A = [1, 2, 3, 4, 6] + 数组B = [0, 2, 1, 3, 4] + 返回[6, 0]

    +
    +
    +

    Parameters

    +
      +
    • +
      aryA: number[]
      +
    • +
    • +
      aryB: number[]
      +
    • +
    +

    Returns number[]

    +
  • +
+
+
+ +

Static getMaxElementIndex

+
    +
  • getMaxElementIndex(ary: number[]): number
  • +
+
    +
  • + +
    +
    +

    返回数组中最大值的索引

    +
    +
    +

    Parameters

    +
      +
    • +
      ary: number[]
      +
    • +
    +

    Returns number

    +

    返回数组中最大值的索引

    +
  • +
+
+
+ +

Static getMinElementIndex

+
    +
  • getMinElementIndex(ary: number[]): number
  • +
+
    +
  • + +
    +
    +

    返回数组中最小值的索引

    +
    +
    +

    Parameters

    +
      +
    • +
      ary: number[]
      +
    • +
    +

    Returns number

    +

    返回数组中最小值的索引

    +
  • +
+
+
+ +

Static getUniqueAry

+
    +
  • getUniqueAry(ary: number[]): number[]
  • +
+
    +
  • + +
    +
    +

    返回一个"唯一性"数组

    +
    +
    +

    Parameters

    +
      +
    • +
      ary: number[]
      +
      +

      需要唯一性的数组

      +
      +
    • +
    +

    Returns number[]

    +

    唯一性的数组 + 比如: [1, 2, 2, 3, 4] + 返回: [1, 2, 3, 4]

    +
  • +
+
+
+ +

Static insert

+
    +
  • insert(ary: any[], index: number, value: any): any
  • +
+
    +
  • + +
    +
    +

    根据索引插入元素,索引和索引后的元素都向后移动一位

    +
    +
    +

    Parameters

    +
      +
    • +
      ary: any[]
      +
    • +
    • +
      index: number
      +
      +

      插入索引

      +
      +
    • +
    • +
      value: any
      +
      +

      插入的元素

      +
      +
    • +
    +

    Returns any

    +

    插入的元素 未插入则返回空

    +
  • +
+
+
+ +

Static insertionSort

+
    +
  • insertionSort(ary: number[]): void
  • +
+
    +
  • + +
    +
    +

    执行插入排序

    +
    +
    +

    Parameters

    +
      +
    • +
      ary: number[]
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static swap

+
    +
  • swap(array: any[], index1: number, index2: number): void
  • +
+
    +
  • + +
    +
    +

    交换数组元素

    +
    +
    +

    Parameters

    +
      +
    • +
      array: any[]
      +
      +

      目标数组

      +
      +
    • +
    • +
      index1: number
      +
      +

      交换后的索引

      +
      +
    • +
    • +
      index2: number
      +
      +

      交换前的索引

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_base64utils_.es.base64utils.html b/source/docs/classes/_utils_base64utils_.es.base64utils.html new file mode 100644 index 00000000..eccbace1 --- /dev/null +++ b/source/docs/classes/_utils_base64utils_.es.base64utils.html @@ -0,0 +1,391 @@ + + + + + + Base64Utils | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Base64Utils

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Base64Utils +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Static Private _keyStr

+
_keyStr: string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
+ +
+
+
+

Accessors

+
+ +

Static nativeBase64

+
    +
  • get nativeBase64(): boolean
  • +
+ +
+
+
+

Methods

+
+ +

Static decode

+
    +
  • decode(input: string): string
  • +
+ +
+
+ +

Static decodeBase64AsArray

+
    +
  • decodeBase64AsArray(input: string, bytes: number): Uint32Array
  • +
+
    +
  • + +
    +
    +

    解析Base64格式数据

    +
    +
    +

    Parameters

    +
      +
    • +
      input: string
      +
    • +
    • +
      bytes: number
      +
      +
      +
    • +
    +

    Returns Uint32Array

    +
  • +
+
+
+ +

Static decodeCSV

+
    +
  • decodeCSV(input: string): Array<number>
  • +
+ +
+
+ +

Static Private decompress

+
    +
  • decompress(data: string, decoded: any, compression: string): any
  • +
+
    +
  • + +
    +
    +

    暂时不支持

    +
    +
    +

    Parameters

    +
      +
    • +
      data: string
      +
    • +
    • +
      decoded: any
      +
    • +
    • +
      compression: string
      +
    • +
    +

    Returns any

    +
  • +
+
+
+ +

Static encode

+
    +
  • encode(input: string): string
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_color_.es.color.html b/source/docs/classes/_utils_color_.es.color.html new file mode 100644 index 00000000..a736cc15 --- /dev/null +++ b/source/docs/classes/_utils_color_.es.color.html @@ -0,0 +1,452 @@ + + + + + + Color | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Color

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Color +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Color(r: number, g: number, b: number, alpha: number): Color
  • +
+
    +
  • + +
    +
    +

    从代表红、绿、蓝和alpha值的标量构造RGBA颜色。

    +
    +
    +

    Parameters

    +
      +
    • +
      r: number
      +
    • +
    • +
      g: number
      +
    • +
    • +
      b: number
      +
    • +
    • +
      alpha: number
      +
    • +
    +

    Returns Color

    +
  • +
+
+
+
+

Properties

+
+ +

Private _packedValue

+
_packedValue: number
+ +
+
+

存储为RGBA

+
+
+
+
+
+

Accessors

+
+ +

a

+
    +
  • get a(): number
  • +
  • set a(value: number): void
  • +
+ +
+
+ +

b

+
    +
  • get b(): number
  • +
  • set b(value: number): void
  • +
+ +
+
+ +

g

+
    +
  • get g(): number
  • +
  • set g(value: number): void
  • +
+ +
+
+ +

packedValue

+
    +
  • get packedValue(): number
  • +
  • set packedValue(value: number): void
  • +
+ +
+
+ +

r

+
    +
  • get r(): number
  • +
  • set r(value: number): void
  • +
+ +
+
+
+

Methods

+
+ +

equals

+
    +
  • equals(other: Color): boolean
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_contentmanager_.es.contentmanager.html b/source/docs/classes/_utils_contentmanager_.es.contentmanager.html new file mode 100644 index 00000000..6b48b702 --- /dev/null +++ b/source/docs/classes/_utils_contentmanager_.es.contentmanager.html @@ -0,0 +1,237 @@ + + + + + + ContentManager | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ContentManager

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + ContentManager +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Protected loadedAssets

+
loadedAssets: Map<string, any> = new Map<string, any>()
+ +
+
+
+

Methods

+
+ +

dispose

+
    +
  • dispose(): void
  • +
+ +
+
+ +

loadRes

+
    +
  • loadRes(name: string, local?: boolean): Promise<any>
  • +
+
    +
  • + +
    +
    +

    异步加载资源

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +
    • +
    • +
      Default value local: boolean = true
      +
    • +
    +

    Returns Promise<any>

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Protected property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_coroutines_coroutine_.es.coroutine.html b/source/docs/classes/_utils_coroutines_coroutine_.es.coroutine.html new file mode 100644 index 00000000..a378a679 --- /dev/null +++ b/source/docs/classes/_utils_coroutines_coroutine_.es.coroutine.html @@ -0,0 +1,191 @@ + + + + + + Coroutine | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Coroutine

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Coroutine +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static waitForSeconds

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_coroutines_coroutine_.es.waitforseconds.html b/source/docs/classes/_utils_coroutines_coroutine_.es.waitforseconds.html new file mode 100644 index 00000000..3bbe5f41 --- /dev/null +++ b/source/docs/classes/_utils_coroutines_coroutine_.es.waitforseconds.html @@ -0,0 +1,238 @@ + + + + + + WaitForSeconds | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class WaitForSeconds

+
+
+
+
+
+
+
+
+
+

协作程序需要暂停一段时间时的助手类。 + 返回协同程序。 + waitForSeconds返回number。

+
+
+
+
+

Hierarchy

+
    +
  • + WaitForSeconds +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

waitTime

+
waitTime: number
+ +
+
+ +

Static waiter

+
waiter: WaitForSeconds = new WaitForSeconds()
+ +
+
+
+

Methods

+
+ +

wait

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_coroutines_coroutinemanager_.es.coroutineimpl.html b/source/docs/classes/_utils_coroutines_coroutinemanager_.es.coroutineimpl.html new file mode 100644 index 00000000..632aee03 --- /dev/null +++ b/source/docs/classes/_utils_coroutines_coroutinemanager_.es.coroutineimpl.html @@ -0,0 +1,350 @@ + + + + + + CoroutineImpl | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class CoroutineImpl

+
+
+
+
+
+
+
+
+
+

CoroutineManager使用的内部类,用于隐藏协同程序所需的数据

+
+
+
+
+

Hierarchy

+
    +
  • + CoroutineImpl +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

enumerator

+
enumerator: Iterator<any>
+ +
+
+ +

isDone

+
isDone: boolean
+ +
+
+ +

useUnscaledDeltaTime

+
useUnscaledDeltaTime: boolean = false
+ +
+
+ +

waitForCoroutine

+
waitForCoroutine: CoroutineImpl
+ +
+
+ +

waitTimer

+
waitTimer: number
+ +
+
+

每当产生延迟时,它就被添加到跟踪延迟的waitTimer中

+
+
+
+
+
+

Methods

+
+ +

prepareForuse

+
    +
  • prepareForuse(): void
  • +
+ +
+
+ +

reset

+
    +
  • reset(): void
  • +
+ +
+
+ +

setUseUnscaledDeltaTime

+
    +
  • setUseUnscaledDeltaTime(useUnscaledDeltaTime: any): ICoroutine
  • +
+ +
+
+ +

stop

+
    +
  • stop(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_coroutines_coroutinemanager_.es.coroutinemanager.html b/source/docs/classes/_utils_coroutines_coroutinemanager_.es.coroutinemanager.html new file mode 100644 index 00000000..fd1ce414 --- /dev/null +++ b/source/docs/classes/_utils_coroutines_coroutinemanager_.es.coroutinemanager.html @@ -0,0 +1,492 @@ + + + + + + CoroutineManager | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class CoroutineManager

+
+
+
+
+
+
+
+
+
+

基本CoroutineManager。协同程序可以做以下事情:

+
    +
  • return null(在下一帧继续执行)
  • +
  • return Coroutine.waitForSeconds(3)。等待3秒(延时3秒后再次执行)
  • +
  • return startCoroutine(another())(在再次执行之前等待另一个协程)
  • +
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

_enabled

+
_enabled: boolean
+ +
+
+ +

_isInUpdate

+
_isInUpdate: boolean
+ +
+
+

标记来跟踪何时处于更新循环中。 + 如果一个新的协程在更新循环期间启动,我们必须将其插入到shouldRunNextFrame列表中,以避免在迭代时修改列表。

+
+
+
+
+ +

_shouldRunNextFrame

+
_shouldRunNextFrame: CoroutineImpl[] = []
+ +
+
+ +

_unblockedCoroutines

+
_unblockedCoroutines: CoroutineImpl[] = []
+ +
+
+
+

Accessors

+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+ +
+
+
+

Methods

+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): void
  • +
+ +
+
+ +

startCoroutine

+ + +
+
+ +

tickCoroutine

+ + +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_drawutils_.es.drawutils.html b/source/docs/classes/_utils_drawutils_.es.drawutils.html new file mode 100644 index 00000000..9e1eda56 --- /dev/null +++ b/source/docs/classes/_utils_drawutils_.es.drawutils.html @@ -0,0 +1,192 @@ + + + + + + DrawUtils | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class DrawUtils

+
+
+
+
+
+
+
+
+
+

各种辅助方法来辅助绘图

+
+
+
+
+

Hierarchy

+
    +
  • + DrawUtils +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static getColorMatrix

+
    +
  • getColorMatrix(color: number): ColorMatrixFilter
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_edgeext_.es.edgeext.html b/source/docs/classes/_utils_edgeext_.es.edgeext.html new file mode 100644 index 00000000..6d2dce33 --- /dev/null +++ b/source/docs/classes/_utils_edgeext_.es.edgeext.html @@ -0,0 +1,253 @@ + + + + + + EdgeExt | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class EdgeExt

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + EdgeExt +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static isHorizontal

+
    +
  • isHorizontal(self: Edge): boolean
  • +
+
    +
  • + +
    +
    +

    如果边是右或左,则返回true

    +
    +
    +

    Parameters

    +
      +
    • +
      self: Edge
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Static isVertical

+
    +
  • isVertical(self: Edge): boolean
  • +
+
    +
  • + +
    +
    +

    如果边是顶部或底部,则返回true

    +
    +
    +

    Parameters

    +
      +
    • +
      self: Edge
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Static oppositeEdge

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_emitter_.es.emitter.html b/source/docs/classes/_utils_emitter_.es.emitter.html new file mode 100644 index 00000000..b3317bb8 --- /dev/null +++ b/source/docs/classes/_utils_emitter_.es.emitter.html @@ -0,0 +1,358 @@ + + + + + + Emitter | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Emitter<T>

+
+
+
+
+
+
+
+
+
+

用于事件管理

+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+
    +
  • + Emitter +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

Private _messageTable

+
_messageTable: Map<T, FuncPack[]>
+ +
+
+
+

Methods

+
+ +

addObserver

+
    +
  • addObserver(eventType: T, handler: Function, context: any): void
  • +
+
    +
  • + +
    +
    +

    开始监听项

    +
    +
    +

    Parameters

    +
      +
    • +
      eventType: T
      +
      +

      监听类型

      +
      +
    • +
    • +
      handler: Function
      +
      +

      监听函数

      +
      +
    • +
    • +
      context: any
      +
      +

      监听上下文

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

emit

+
    +
  • emit(eventType: T, data?: any): void
  • +
+
    +
  • + +
    +
    +

    触发该事件

    +
    +
    +

    Parameters

    +
      +
    • +
      eventType: T
      +
      +

      事件类型

      +
      +
    • +
    • +
      Optional data: any
      +
      +

      事件数据

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

removeObserver

+
    +
  • removeObserver(eventType: T, handler: Function): void
  • +
+
    +
  • + +
    +
    +

    移除监听项

    +
    +
    +

    Parameters

    +
      +
    • +
      eventType: T
      +
      +

      事件类型

      +
      +
    • +
    • +
      handler: Function
      +
      +

      事件函数

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Private property
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_emitter_.es.funcpack.html b/source/docs/classes/_utils_emitter_.es.funcpack.html new file mode 100644 index 00000000..779568c3 --- /dev/null +++ b/source/docs/classes/_utils_emitter_.es.funcpack.html @@ -0,0 +1,243 @@ + + + + + + FuncPack | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class FuncPack

+
+
+
+
+
+
+
+
+
+

用于包装事件的一个小类

+
+
+
+
+

Hierarchy

+
    +
  • + FuncPack +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new FuncPack(func: Function, context: any): FuncPack
  • +
+ +
+
+
+

Properties

+
+ +

context

+
context: any
+ +
+
+

上下文

+
+
+
+
+ +

func

+
func: Function
+ +
+
+

函数

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_enumerable_.es.enumerable.html b/source/docs/classes/_utils_enumerable_.es.enumerable.html new file mode 100644 index 00000000..1ae48810 --- /dev/null +++ b/source/docs/classes/_utils_enumerable_.es.enumerable.html @@ -0,0 +1,202 @@ + + + + + + Enumerable | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Enumerable

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Enumerable +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static repeat

+
    +
  • repeat<T>(element: T, count: number): any[]
  • +
+
    +
  • + +
    +
    +

    生成包含一个重复值的序列

    +
    +
    +

    Type parameters

    +
      +
    • +

      T

      +
    • +
    +

    Parameters

    +
      +
    • +
      element: T
      +
      +

      要重复的值

      +
      +
    • +
    • +
      count: number
      +
      +

      在生成的序列中重复该值的次数

      +
      +
    • +
    +

    Returns any[]

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_equalitycomparer_.es.equalitycomparer.html b/source/docs/classes/_utils_equalitycomparer_.es.equalitycomparer.html new file mode 100644 index 00000000..11facc03 --- /dev/null +++ b/source/docs/classes/_utils_equalitycomparer_.es.equalitycomparer.html @@ -0,0 +1,256 @@ + + + + + + EqualityComparer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class EqualityComparer<T>

+
+
+
+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+
    +
  • + EqualityComparer +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

Protected constructor

+ + +
+
+
+

Methods

+
+ +

equals

+
    +
  • equals(x: T, y: T): boolean
  • +
+ +
+
+ +

Static default

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_globalmanager_.es.globalmanager.html b/source/docs/classes/_utils_globalmanager_.es.globalmanager.html new file mode 100644 index 00000000..d4a9bc4d --- /dev/null +++ b/source/docs/classes/_utils_globalmanager_.es.globalmanager.html @@ -0,0 +1,358 @@ + + + + + + GlobalManager | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class GlobalManager

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

_enabled

+
_enabled: boolean
+ +
+
+
+

Accessors

+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+
    +
  • + +
    +
    +

    如果true则启用了GlobalManager。 + 状态的改变会导致调用OnEnabled/OnDisable

    +
    +
    +

    Returns boolean

    +
  • +
  • + +
    +
    +

    如果true则启用了GlobalManager。 + 状态的改变会导致调用OnEnabled/OnDisable

    +
    +
    +

    Parameters

    +
      +
    • +
      value: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+

Methods

+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): void
  • +
+
    +
  • + +
    +
    +

    启用/禁用这个GlobalManager

    +
    +
    +

    Parameters

    +
      +
    • +
      isEnabled: boolean
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
  • Accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_input_input_.es.input.html b/source/docs/classes/_utils_input_input_.es.input.html new file mode 100644 index 00000000..73a7a6c2 --- /dev/null +++ b/source/docs/classes/_utils_input_input_.es.input.html @@ -0,0 +1,844 @@ + + + + + + Input | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Input

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Input +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

Static Private _gameTouchs

+
_gameTouchs: TouchState[] = []
+ +
+
+ +

Static Private _init

+
_init: boolean = false
+ +
+
+ +

Static Private _previousTouchState

+
_previousTouchState: TouchState = new TouchState()
+ +
+
+ +

Static Private _resolutionOffset

+
_resolutionOffset: Vector2 = new Vector2()
+ +
+
+ +

Static Private _resolutionScale

+
_resolutionScale: Vector2 = Vector2.one
+ +
+
+ +

Static Private _totalTouchCount

+
_totalTouchCount: number = 0
+ +
+
+ +

Static Private _touchIndex

+
_touchIndex: number = 0
+ +
+
+ +

Static _virtualInputs

+
_virtualInputs: VirtualInput[] = []
+ +
+
+
+

Accessors

+
+ +

Static gameTouchs

+ +
    +
  • + +
    +
    +

    触摸列表 存放最大个数量触摸点信息 + 可通过判断touchPoint是否为-1 来确定是否为有触摸 + 通过判断touchDown 判断触摸点是否有按下

    +
    +
    +

    Returns TouchState[]

    +
  • +
+
+
+ +

Static maxSupportedTouch

+
    +
  • get maxSupportedTouch(): number
  • +
  • set maxSupportedTouch(value: number): void
  • +
+ +
+
+ +

Static resolutionScale

+
    +
  • get resolutionScale(): Vector2
  • +
+ +
+
+ +

Static totalTouchCount

+
    +
  • get totalTouchCount(): number
  • +
+ +
+
+ +

Static touchPosition

+ + +
+
+ +

Static touchPositionDelta

+
    +
  • get touchPositionDelta(): Vector2
  • +
+ +
+
+
+

Methods

+
+ +

Static Private initTouchCache

+
    +
  • initTouchCache(): void
  • +
+ +
+
+ +

Static initialize

+
    +
  • initialize(): void
  • +
+ +
+
+ +

Static isKeyDown

+
    +
  • isKeyDown(key: Keys): boolean
  • +
+ +
+
+ +

Static isKeyDownBoth

+
    +
  • isKeyDownBoth(keyA: Keys, keyB: Keys): boolean
  • +
+ +
+
+ +

Static isKeyPressed

+
    +
  • isKeyPressed(key: Keys): boolean
  • +
+
    +
  • + +
    +
    +

    只有在当前帧按下并且在上一帧没有按下时才算press

    +
    +
    +

    Parameters

    +
      +
    • +
      key: Keys
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Static isKeyPressedBoth

+
    +
  • isKeyPressedBoth(keyA: Keys, keyB: Keys): boolean
  • +
+ +
+
+ +

Static isKeyReleased

+
    +
  • isKeyReleased(key: Keys): boolean
  • +
+ +
+
+ +

Static isKeyReleasedBoth

+
    +
  • isKeyReleasedBoth(keyA: Keys, keyB: Keys): boolean
  • +
+ +
+
+ +

Static scaledPosition

+ + +
+
+ +

Static Private setpreviousTouchState

+
    +
  • setpreviousTouchState(touchState: TouchState): void
  • +
+ +
+
+ +

Static Private touchBegin

+
    +
  • touchBegin(evt: TouchEvent): void
  • +
+ +
+
+ +

Static Private touchEnd

+
    +
  • touchEnd(evt: TouchEvent): void
  • +
+ +
+
+ +

Static Private touchMove

+
    +
  • touchMove(evt: TouchEvent): void
  • +
+ +
+
+ +

Static update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Static property
  • +
  • Static method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_input_input_.es.touchstate.html b/source/docs/classes/_utils_input_input_.es.touchstate.html new file mode 100644 index 00000000..2a420387 --- /dev/null +++ b/source/docs/classes/_utils_input_input_.es.touchstate.html @@ -0,0 +1,274 @@ + + + + + + TouchState | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TouchState

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TouchState +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

touchDown

+
touchDown: boolean = false
+ +
+
+ +

touchPoint

+
touchPoint: number = -1
+ +
+
+ +

x

+
x: number = 0
+ +
+
+ +

y

+
y: number = 0
+ +
+
+
+

Accessors

+
+ +

position

+ + +
+
+
+

Methods

+
+ +

reset

+
    +
  • reset(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_input_keyboardutils_.keyboardutils.html b/source/docs/classes/_utils_input_keyboardutils_.keyboardutils.html new file mode 100644 index 00000000..38281acd --- /dev/null +++ b/source/docs/classes/_utils_input_keyboardutils_.keyboardutils.html @@ -0,0 +1,331 @@ + + + + + + KeyboardUtils | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class KeyboardUtils

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + KeyboardUtils +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Static currentKeys

+
currentKeys: Keys[] = []
+ +
+
+

当前帧按键状态

+
+
+
+
+ +

Static Private keyStatusKeys

+
keyStatusKeys: Keys[] = []
+ +
+
+ +

Static previousKeys

+
previousKeys: Keys[] = []
+ +
+
+

上一帧按键状态

+
+
+
+
+
+

Methods

+
+ +

Static destroy

+
    +
  • destroy(): void
  • +
+ +
+
+ +

Static init

+
    +
  • init(): void
  • +
+ +
+
+ +

Static Private onKeyDownHandler

+
    +
  • onKeyDownHandler(event: KeyboardEvent): void
  • +
+ +
+
+ +

Static Private onKeyUpHandler

+
    +
  • onKeyUpHandler(event: KeyboardEvent): void
  • +
+ +
+
+ +

Static update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Static property
  • +
  • Static method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_input_virtual_virtualaxis_.es.keyboardkeys.html b/source/docs/classes/_utils_input_virtual_virtualaxis_.es.keyboardkeys.html new file mode 100644 index 00000000..22478323 --- /dev/null +++ b/source/docs/classes/_utils_input_virtual_virtualaxis_.es.keyboardkeys.html @@ -0,0 +1,337 @@ + + + + + + KeyboardKeys | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class KeyboardKeys

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

_turned

+
_turned: boolean
+ +
+
+ +

_value

+
_value: number = 0
+ +
+
+ +

negative

+
negative: Keys
+ +
+
+ +

overlapBehavior

+
overlapBehavior: OverlapBehavior
+ +
+
+ +

positive

+
positive: Keys
+ +
+
+
+

Accessors

+
+ +

value

+
    +
  • get value(): number
  • +
+ +
+
+
+

Methods

+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_input_virtual_virtualaxis_.es.virtualaxis.html b/source/docs/classes/_utils_input_virtual_virtualaxis_.es.virtualaxis.html new file mode 100644 index 00000000..ff35d206 --- /dev/null +++ b/source/docs/classes/_utils_input_virtual_virtualaxis_.es.virtualaxis.html @@ -0,0 +1,312 @@ + + + + + + VirtualAxis | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class VirtualAxis

+
+
+
+
+
+
+
+
+
+

用-1和1之间的浮点数表示的虚拟输入

+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

nodes

+
nodes: VirtualAxisNode[] = []
+ +
+
+
+

Accessors

+
+ +

value

+
    +
  • get value(): number
  • +
+ +
+
+
+

Methods

+
+ +

deregister

+
    +
  • deregister(): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Inherited method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_input_virtual_virtualbutton_.es.keyboardkey.html b/source/docs/classes/_utils_input_virtual_virtualbutton_.es.keyboardkey.html new file mode 100644 index 00000000..664a3c41 --- /dev/null +++ b/source/docs/classes/_utils_input_virtual_virtualbutton_.es.keyboardkey.html @@ -0,0 +1,324 @@ + + + + + + KeyboardKey | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class KeyboardKey

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Node +
      +
    • + KeyboardKey +
    • +
    +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

key

+
key: Keys
+ +
+
+
+

Accessors

+
+ +

isDown

+
    +
  • get isDown(): boolean
  • +
+ +
+
+ +

isPressed

+
    +
  • get isPressed(): boolean
  • +
+ +
+
+ +

isReleased

+
    +
  • get isReleased(): boolean
  • +
+ +
+
+
+

Methods

+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Inherited method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_input_virtual_virtualbutton_.es.node.html b/source/docs/classes/_utils_input_virtual_virtualbutton_.es.node.html new file mode 100644 index 00000000..d89a1a23 --- /dev/null +++ b/source/docs/classes/_utils_input_virtual_virtualbutton_.es.node.html @@ -0,0 +1,247 @@ + + + + + + Node | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Node

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Abstract isDown

+
isDown: boolean
+ +
+
+ +

Abstract isPressed

+
isPressed: boolean
+ +
+
+ +

Abstract isReleased

+
isReleased: boolean
+ +
+
+
+

Methods

+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Inherited method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_input_virtual_virtualbutton_.es.virtualbutton.html b/source/docs/classes/_utils_input_virtual_virtualbutton_.es.virtualbutton.html new file mode 100644 index 00000000..78132d9d --- /dev/null +++ b/source/docs/classes/_utils_input_virtual_virtualbutton_.es.virtualbutton.html @@ -0,0 +1,545 @@ + + + + + + VirtualButton | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class VirtualButton

+
+
+
+
+
+
+
+
+
+

用布尔值表示的虚拟输入。除了简单地检查当前按钮状态, + 您还可以询问它是否刚刚被按下或释放了这个框架。 + 您还可以将按下的按钮存储在缓冲区中一段有限的时间,或者直到调用consumeBuffer()将其使用为止。

+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

_bufferCounter

+
_bufferCounter: number = 0
+ +
+
+ +

_repeatCounter

+
_repeatCounter: number = 0
+ +
+
+ +

_willRepeat

+
_willRepeat: boolean
+ +
+
+ +

bufferTime

+
bufferTime: number = 0
+ +
+
+ +

firstRepeatTime

+
firstRepeatTime: number = 0
+ +
+
+ +

isRepeating

+
isRepeating: boolean
+ +
+
+ +

mutiRepeatTime

+
mutiRepeatTime: number = 0
+ +
+
+ +

nodes

+
nodes: Node[] = []
+ +
+
+
+

Accessors

+
+ +

isDown

+
    +
  • get isDown(): boolean
  • +
+ +
+
+ +

isPressed

+
    +
  • get isPressed(): boolean
  • +
+ +
+
+ +

isReleased

+
    +
  • get isReleased(): boolean
  • +
+ +
+
+
+

Methods

+
+ +

addKeyboardKey

+ + +
+
+ +

consumeBuffer

+
    +
  • consumeBuffer(): void
  • +
+ +
+
+ +

deregister

+
    +
  • deregister(): void
  • +
+ +
+
+ +

setRepeat

+
    +
  • setRepeat(firstRepeatTime: number, mutiRepeatTime?: number): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Inherited method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_input_virtual_virtualinput_.es.virtualinput.html b/source/docs/classes/_utils_input_virtual_virtualinput_.es.virtualinput.html new file mode 100644 index 00000000..8e780872 --- /dev/null +++ b/source/docs/classes/_utils_input_virtual_virtualinput_.es.virtualinput.html @@ -0,0 +1,256 @@ + + + + + + VirtualInput | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class VirtualInput

+
+
+
+
+
+
+
+
+
+

虚拟按钮,其状态由其VirtualInputNodes的状态决定

+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

Protected constructor

+ + +
+
+
+

Methods

+
+ +

deregister

+
    +
  • deregister(): void
  • +
+ +
+
+ +

Abstract update

+
    +
  • update(): any
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_input_virtual_virtualinput_.es.virtualinputnode.html b/source/docs/classes/_utils_input_virtual_virtualinput_.es.virtualinputnode.html new file mode 100644 index 00000000..a2f6d0b5 --- /dev/null +++ b/source/docs/classes/_utils_input_virtual_virtualinput_.es.virtualinputnode.html @@ -0,0 +1,199 @@ + + + + + + VirtualInputNode | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class VirtualInputNode

+
+
+
+
+
+
+
+
+
+

将它们添加到您的VirtualInput中,以定义它如何确定当前输入状态。 + 例如,如果你想检查一个键盘键是否被按下,创建一个VirtualButton并添加一个VirtualButton.keyboardkey

+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_input_virtual_virtualintegeraxis_.es.virtualaxisnode.html b/source/docs/classes/_utils_input_virtual_virtualintegeraxis_.es.virtualaxisnode.html new file mode 100644 index 00000000..b0bdb31c --- /dev/null +++ b/source/docs/classes/_utils_input_virtual_virtualintegeraxis_.es.virtualaxisnode.html @@ -0,0 +1,216 @@ + + + + + + VirtualAxisNode | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class VirtualAxisNode

+
+
+
+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Abstract value

+
value: number
+ +
+
+
+

Methods

+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Inherited method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_input_virtual_virtualintegeraxis_.es.virtualintegeraxis.html b/source/docs/classes/_utils_input_virtual_virtualintegeraxis_.es.virtualintegeraxis.html new file mode 100644 index 00000000..1a8d2ece --- /dev/null +++ b/source/docs/classes/_utils_input_virtual_virtualintegeraxis_.es.virtualintegeraxis.html @@ -0,0 +1,353 @@ + + + + + + VirtualIntegerAxis | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class VirtualIntegerAxis

+
+
+
+
+
+
+
+
+
+

用int(-1、0或1)表示的虚拟输入。它对应的输入可以从上到下到下, + 如使用两个键盘键作为正/负检查。

+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

nodes

+
nodes: VirtualAxisNode[] = []
+ +
+
+
+

Accessors

+
+ +

value

+
    +
  • get value(): number
  • +
+ +
+
+
+

Methods

+
+ +

addKeyboardKeys

+ + +
+
+ +

deregister

+
    +
  • deregister(): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Inherited method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_listpool_.es.listpool.html b/source/docs/classes/_utils_listpool_.es.listpool.html new file mode 100644 index 00000000..d7885902 --- /dev/null +++ b/source/docs/classes/_utils_listpool_.es.listpool.html @@ -0,0 +1,353 @@ + + + + + + ListPool | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ListPool

+
+
+
+
+
+
+
+
+
+

可以用于列表池的简单类

+
+
+
+
+

Hierarchy

+
    +
  • + ListPool +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Static Private Readonly _objectQueue

+
_objectQueue: any[] = []
+ +
+
+
+

Methods

+
+ +

Static clearCache

+
    +
  • clearCache(): void
  • +
+ +
+
+ +

Static free

+
    +
  • free<T>(obj: Array<T>): void
  • +
+
    +
  • + +
    +
    +

    将项推回堆栈

    +
    +
    +

    Type parameters

    +
      +
    • +

      T

      +
    • +
    +

    Parameters

    +
      +
    • +
      obj: Array<T>
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static obtain

+
    +
  • obtain<T>(): T[]
  • +
+
    +
  • + +
    +
    +

    如果可以的话,从堆栈中弹出一个项

    +
    +
    +

    Type parameters

    +
      +
    • +

      T

      +
    • +
    +

    Returns T[]

    +
  • +
+
+
+ +

Static trimCache

+
    +
  • trimCache(cacheCount: any): void
  • +
+
    +
  • + +
    +
    +

    将缓存修剪为cacheCount项目

    +
    +
    +

    Parameters

    +
      +
    • +
      cacheCount: any
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static warmCache

+
    +
  • warmCache(cacheCount: number): void
  • +
+
    +
  • + +
    +
    +

    预热缓存,使用最大的cacheCount对象填充缓存

    +
    +
    +

    Parameters

    +
      +
    • +
      cacheCount: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_numberextension_.es.numberextension.html b/source/docs/classes/_utils_numberextension_.es.numberextension.html new file mode 100644 index 00000000..6b094889 --- /dev/null +++ b/source/docs/classes/_utils_numberextension_.es.numberextension.html @@ -0,0 +1,185 @@ + + + + + + NumberExtension | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class NumberExtension

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + NumberExtension +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static toNumber

+
    +
  • toNumber(value: any): number
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_pair_.es.pair.html b/source/docs/classes/_utils_pair_.es.pair.html new file mode 100644 index 00000000..3bf28a60 --- /dev/null +++ b/source/docs/classes/_utils_pair_.es.pair.html @@ -0,0 +1,301 @@ + + + + + + Pair | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Pair<T>

+
+
+
+
+
+
+
+
+
+

用于管理一对对象的简单DTO

+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+
    +
  • + Pair +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Pair(first: T, second: T): Pair
  • +
+ +
+
+
+

Properties

+
+ +

first

+
first: T
+ +
+
+ +

second

+
second: T
+ +
+
+
+

Methods

+
+ +

clear

+
    +
  • clear(): void
  • +
+ +
+
+ +

equals

+
    +
  • equals(other: Pair<T>): boolean
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_pool_.es.pool.html b/source/docs/classes/_utils_pool_.es.pool.html new file mode 100644 index 00000000..a229742d --- /dev/null +++ b/source/docs/classes/_utils_pool_.es.pool.html @@ -0,0 +1,373 @@ + + + + + + Pool | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Pool<T>

+
+
+
+
+
+
+
+
+
+

用于池任何对象

+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+
    +
  • + Pool +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Static Private _objectQueue

+
_objectQueue: any[] = []
+ +
+
+
+

Methods

+
+ +

Static clearCache

+
    +
  • clearCache(): void
  • +
+ +
+
+ +

Static free

+
    +
  • free<T>(obj: T): void
  • +
+
    +
  • + +
    +
    +

    将项推回堆栈

    +
    +
    +

    Type parameters

    +
      +
    • +

      T

      +
    • +
    +

    Parameters

    +
      +
    • +
      obj: T
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static obtain

+
    +
  • obtain<T>(type: any): T
  • +
+
    +
  • + +
    +
    +

    如果可以的话,从堆栈中弹出一个项

    +
    +
    +

    Type parameters

    +
      +
    • +

      T

      +
    • +
    +

    Parameters

    +
      +
    • +
      type: any
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

Static trimCache

+
    +
  • trimCache(cacheCount: number): void
  • +
+
    +
  • + +
    +
    +

    将缓存修剪为cacheCount项目

    +
    +
    +

    Parameters

    +
      +
    • +
      cacheCount: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static warmCache

+
    +
  • warmCache(type: any, cacheCount: number): void
  • +
+
    +
  • + +
    +
    +

    预热缓存,使用最大的cacheCount对象填充缓存

    +
    +
    +

    Parameters

    +
      +
    • +
      type: any
      +
    • +
    • +
      cacheCount: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_randomutils_.randomutils.html b/source/docs/classes/_utils_randomutils_.randomutils.html new file mode 100644 index 00000000..52d368e0 --- /dev/null +++ b/source/docs/classes/_utils_randomutils_.randomutils.html @@ -0,0 +1,464 @@ + + + + + + RandomUtils | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class RandomUtils

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + RandomUtils +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static Private _randomCompare

+
    +
  • _randomCompare(a: Object, b: Object): number
  • +
+ +
+
+ +

Static boolean

+
    +
  • boolean(chance?: number): boolean
  • +
+
    +
  • + +
    +
    +

    计算概率

    +
    +
    +

    Parameters

    +
      +
    • +
      Default value chance: number = 0.5
      +
      +

      概率

      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

Static choice

+
    +
  • choice(sequence: any): any
  • +
+
    +
  • + +
    +
    +

    从序列中随机取一个元素

    +
    +
    +

    Parameters

    +
      +
    • +
      sequence: any
      +
      +

      可以是 数组、 vector,等只要是有length属性,并且可以用数字索引获取元素的对象, + 另外,字符串也是允许的。

      +
      +
    • +
    +

    Returns any

    +

    序列中的某一个元素

    +
  • +
+
+
+ +

Static randint

+
    +
  • randint(a: number, b: number): number
  • +
+
    +
  • + +
    +
    +

    返回a 到 b直间的随机整数,包括 a 和 b

    +
    +
    +

    Parameters

    +
      +
    • +
      a: number
      +
    • +
    • +
      b: number
      +
    • +
    +

    Returns number

    +

    直接的随机整数

    +
  • +
+
+
+ +

Static randnum

+
    +
  • randnum(a: number, b: number): number
  • +
+
    +
  • + +
    +
    +

    返回 a - b之间的随机数,不包括 Math.max(a, b)

    +
    +
    +

    Parameters

    +
      +
    • +
      a: number
      +
    • +
    • +
      b: number
      +
    • +
    +

    Returns number

    +

    假设 a < b, [a, b)

    +
  • +
+
+
+ +

Static random

+
    +
  • random(): number
  • +
+
    +
  • + +
    +
    +

    返回 0.0 - 1.0 之间的随机数,等同于 Math.random()

    +
    +
    +

    Returns number

    +

    Math.random()

    +
  • +
+
+
+ +

Static randrange

+
    +
  • randrange(start: number, stop: number, step?: number): number
  • +
+
    +
  • + +
    +
    +

    在 start 与 stop之间取一个随机整数,可以用step指定间隔, 但不包括较大的端点(start与stop较大的一个) + 如 + this.randrange(1, 10, 3) + 则返回的可能是 1 或 4 或 7 , 注意 这里面不会返回10,因为是10是大端点

    +
    +
    +

    Parameters

    +
      +
    • +
      start: number
      +
    • +
    • +
      stop: number
      +
    • +
    • +
      Default value step: number = 1
      +
    • +
    +

    Returns number

    +

    假设 start < stop, [start, stop) 区间内的随机整数

    +
  • +
+
+
+ +

Static sample

+
    +
  • sample(sequence: any[], num: number): any[]
  • +
+
    +
  • + +
    +
    +

    对列表中的元素进行随机采æ ?

    +
    +this.sample([1, 2, 3, 4, 5],  3)  // Choose 3 elements
    +[4, 1, 5]
    +
    +
    +
    +

    Parameters

    +
      +
    • +
      sequence: any[]
      +
    • +
    • +
      num: number
      +
    • +
    +

    Returns any[]

    +
  • +
+
+
+ +

Static shuffle

+
    +
  • shuffle(array: any[]): any[]
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_rectangleext_.es.rectangleext.html b/source/docs/classes/_utils_rectangleext_.es.rectangleext.html new file mode 100644 index 00000000..22c5f313 --- /dev/null +++ b/source/docs/classes/_utils_rectangleext_.es.rectangleext.html @@ -0,0 +1,368 @@ + + + + + + RectangleExt | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class RectangleExt

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + RectangleExt +
  • +
+
+
+

Index

+
+ +
+
+
+

Methods

+
+ +

Static contract

+
    +
  • contract(rect: Rectangle, horizontalAmount: any, verticalAmount: any): void
  • +
+ +
+
+ +

Static expandSide

+
    +
  • expandSide(rect: Rectangle, edge: Edge, amount: number): void
  • +
+ +
+
+ +

Static getHalfRect

+ + +
+
+ +

Static getRectEdgePortion

+ +
    +
  • + +
    +
    +

    获取矩形的一部分,其宽度/高度的大小位于矩形的边缘,但仍然包含在其中。

    +
    +
    +

    Parameters

    +
      +
    • +
      rect: Rectangle
      +
    • +
    • +
      edge: Edge
      +
    • +
    • +
      Default value size: number = 1
      +
      +
      +
    • +
    +

    Returns Rectangle

    +
  • +
+
+
+ +

Static getSide

+ + +
+
+ +

Static union

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_ref_.es.ref.html b/source/docs/classes/_utils_ref_.es.ref.html new file mode 100644 index 00000000..05bea3ff --- /dev/null +++ b/source/docs/classes/_utils_ref_.es.ref.html @@ -0,0 +1,221 @@ + + + + + + Ref | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Ref<T>

+
+
+
+
+
+
+
+
+
+

使得number/string/boolean类型作为对象引用来进行传递

+
+
+
+
+

Type parameters

+
    +
  • +

    T: number | string | boolean

    +
  • +
+
+
+

Hierarchy

+
    +
  • + Ref +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new Ref(value: T): Ref
  • +
+ +
+
+
+

Properties

+
+ +

value

+
value: T
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_runtimespritesheet_assetpacker_.es.assetpacker.html b/source/docs/classes/_utils_runtimespritesheet_assetpacker_.es.assetpacker.html new file mode 100644 index 00000000..0c387676 --- /dev/null +++ b/source/docs/classes/_utils_runtimespritesheet_assetpacker_.es.assetpacker.html @@ -0,0 +1,403 @@ + + + + + + AssetPacker | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class AssetPacker

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + AssetPacker +
  • +
+
+
+

Index

+
+ +
+
+
+

Properties

+
+ +

Protected _sprites

+
_sprites: Map<string, Texture> = new Map<string, egret.Texture>()
+ +
+
+ +

Protected allow4096Textures

+
allow4096Textures: boolean = false
+ +
+
+ +

cacheName

+
cacheName: string = ""
+ +
+
+ +

Protected itemsToRaster

+
itemsToRaster: TextureToPack[] = []
+ +
+
+ +

onProcessCompleted

+
onProcessCompleted: Function
+ +
+
+ +

useCache

+
useCache: boolean = false
+ +
+
+
+

Methods

+
+ +

addTextureToPack

+
    +
  • addTextureToPack(texture: Texture, customID: string): void
  • +
+ +
+
+ +

Protected createPack

+
    +
  • createPack(): void
  • +
+ +
+
+ +

dispose

+
    +
  • dispose(): void
  • +
+ +
+
+ +

getTexture

+
    +
  • getTexture(id: string): Texture
  • +
+ +
+
+ +

Protected loadPack

+
    +
  • loadPack(): Promise<any>
  • +
+ +
+
+ +

process

+
    +
  • process(allow4096Textures?: boolean): Promise<void>
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Protected property
  • +
  • Protected method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html b/source/docs/classes/_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html new file mode 100644 index 00000000..1045c1f3 --- /dev/null +++ b/source/docs/classes/_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html @@ -0,0 +1,2013 @@ + + + + + + IntegerRectangle | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class IntegerRectangle

+
+
+
+
+
+
+
+
+
+

类中用于存储矩形值的矩形封装器 + ID参数需要连接矩形和原来插入的矩形

+
+
+
+
+

Hierarchy

+
    +
  • + Rectangle +
      +
    • + IntegerRectangle +
    • +
    +
  • +
+
+
+

Implements

+
    +
  • IHashObject
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new IntegerRectangle(x?: number, y?: number, width?: number, height?: number): IntegerRectangle
  • +
+
    +
  • + +
    +
    +

    创建一个新 Rectangle 对象,其左上角由 x 和 y 参数指定,并具有指定的 width 和 height 参数。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      Optional x: number
      +
      +
      +

      矩形左上角的 x 坐标。

      +
      +
      +
    • +
    • +
      Optional y: number
      +
      +
      +

      矩形左上角的 y 坐标。

      +
      +
      +
    • +
    • +
      Optional width: number
      +
      +
      +

      矩形的宽度(以像素为单位)。

      +
      +
      +
    • +
    • +
      Optional height: number
      +
      +
      +

      矩形的高度(以像素为单位)。

      +
      +
      +
    • +
    +

    Returns IntegerRectangle

    +
  • +
+
+
+
+

Properties

+
+ +

Private $hashCode

+
$hashCode: number
+ +
+
+
+
+ +

_tempMat

+
_tempMat: Matrix2D
+ +
+
+ +

_transformMat

+
_transformMat: Matrix2D
+ +
+
+ +

bottom

+
bottom: number
+ +
+
+

y 和 height 属性的和。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

bottomRight

+
bottomRight: Point
+ +
+
+

由 right 和 bottom 属性的值确定的 Rectangle 对象的右下角的位置。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

Readonly hashCode

+
hashCode: number
+ +
+
+

返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

height

+
height: number
+ +
+
+

The height of the rectangle, in pixels.

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

id

+
id: number
+ +
+
+ +

left

+
left: number
+ +
+
+

矩形左上角的 x 坐标。更改 Rectangle 对象的 left 属性对 y 和 height 属性没有影响。但是,它会影响 width 属性,而更改 x 值不会影响 width 属性。 + left 属性的值等于 x 属性的值。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

right

+
right: number
+ +
+
+

x 和 width 属性的和。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

top

+
top: number
+ +
+
+

矩形左上角的 y 坐标。更改 Rectangle 对象的 top 属性对 x 和 width 属性没有影响。但是,它会影响 height 属性,而更改 y 值不会影响 height 属性。
+ top 属性的值等于 y 属性的值。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

topLeft

+
topLeft: Point
+ +
+
+

由该点的 x 和 y 坐标确定的 Rectangle 对象左上角的位置。

+
+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

width

+
width: number
+ +
+
+

矩形的宽度(以像素为单位)。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

x

+
x: number
+ +
+
+

矩形左上角的 x 坐标。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+ +

y

+
y: number
+ +
+
+

矩形左上角的 y 坐标。

+
+
+
default
+

0

+
+
version
+

Egret 2.4

+
+
platform
+

Web,Native

+
+
language
+

zh_CN

+
+
+
+
+
+
+

Accessors

+
+ +

center

+ + +
+
+ +

location

+ + +
+
+ +

max

+ + +
+
+ +

size

+ + +
+
+
+

Methods

+
+ +

Private $getBaseHeight

+
    +
  • $getBaseHeight(angle: number): number
  • +
+ +
+
+ +

Private $getBaseWidth

+
    +
  • $getBaseWidth(angle: number): number
  • +
+ +
+
+ +

Private $intersectInPlace

+
    +
  • $intersectInPlace(clipRect: Rectangle): Rectangle
  • +
+ +
+
+ +

calculateBounds

+
    +
  • calculateBounds(parentPosition: Vector2, position: Vector2, origin: Vector2, scale: Vector2, rotation: number, width: number, height: number): void
  • +
+ +
+
+ +

clone

+
    +
  • clone(): Rectangle
  • +
+
    +
  • + +
    +
    +

    返回一个新的 Rectangle 对象,其 x、y、width 和 height 属性的值与原始 Rectangle 对象的对应值相同。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns Rectangle

    +

    新的 Rectangle 对象,其 x、y、width 和 height 属性的值与原始 Rectangle 对象的对应值相同。

    +
  • +
+
+
+ +

contains

+
    +
  • contains(x: number, y: number): boolean
  • +
+ +
+
+ +

containsPoint

+
    +
  • containsPoint(point: Point): boolean
  • +
+
    +
  • + +
    +
    +

    确定由此 Rectangle 对象定义的矩形区域内是否包含指定的点。 + 此方法与 Rectangle.contains() 方法类似,只不过它采用 Point 对象作为参数。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      point: Point
      +
      +

      包含点对象

      +
      +
    • +
    +

    Returns boolean

    +

    如果包含,返回true,否则返回false

    +
  • +
+
+
+ +

containsRect

+
    +
  • containsRect(value: Rectangle): boolean
  • +
+ +
+
+ +

copyFrom

+
    +
  • copyFrom(sourceRect: Rectangle): Rectangle
  • +
+
    +
  • + +
    +
    +

    将源 Rectangle 对象中的所有矩形数据复制到调用方 Rectangle 对象中。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      sourceRect: Rectangle
      +
      +

      要从中复制数据的 Rectangle 对象。

      +
      +
    • +
    +

    Returns Rectangle

    +
  • +
+
+
+ +

equals

+
    +
  • equals(toCompare: Rectangle): boolean
  • +
+
    +
  • + +
    +
    +

    确定在 toCompare 参数中指定的对象是否等于此 Rectangle 对象。 + 此方法将某个对象的 x、y、width 和 height 属性与此 Rectangle 对象所对应的相同属性进行比较。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      toCompare: Rectangle
      +
      +

      要与此 Rectangle 对象进行比较的矩形。

      +
      +
    • +
    +

    Returns boolean

    +

    如果对象具有与此 Rectangle 对象完全相同的 x、y、width 和 height 属性值,则返回 true 值,否则返回 false。

    +
  • +
+
+
+ +

getClosestPointOnBoundsToOrigin

+
    +
  • getClosestPointOnBoundsToOrigin(): Vector2
  • +
+ +
+
+ +

getClosestPointOnRectangleBorderToPoint

+ + +
+
+ +

getHalfSize

+ + +
+
+ +

inflate

+
    +
  • inflate(dx: number, dy: number): void
  • +
+
    +
  • + +
    +
    +

    按指定量增加 Rectangle 对象的大小(以像素为单位) + 保持 Rectangle 对象的中心点不变,使用 dx 值横向增加它的大小,使用 dy 值纵向增加它的大小。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      dx: number
      +
      +

      Rectangle 对象横向增加的值。

      +
      +
    • +
    • +
      dy: number
      +
      +

      Rectangle 对象纵向增加的值。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

inflatePoint

+
    +
  • inflatePoint(point: Point): void
  • +
+
    +
  • + +
    +
    +

    增加 Rectangle 对象的大小。此方法与 Rectangle.inflate() 方法类似,只不过它采用 Point 对象作为参数。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      point: Point
      +
      +

      The x property of this Point object is used to increase the horizontal dimension of the Rectangle object. The y property is used to increase the vertical dimension of the Rectangle object.

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

intersection

+
    +
  • intersection(toIntersect: Rectangle): Rectangle
  • +
+
    +
  • + +
    +
    +

    如果在 toIntersect 参数中指定的 Rectangle 对象与此 Rectangle 对象相交,则返回交集区域作为 Rectangle 对象。如果矩形不相交, + 则此方法返回一个空的 Rectangle 对象,其属性设置为 0。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      toIntersect: Rectangle
      +
      +

      要对照比较以查看其是否与此 Rectangle 对象相交的 Rectangle 对象。

      +
      +
    • +
    +

    Returns Rectangle

    +

    等于交集区域的 Rectangle 对象。如果该矩形不相交,则此方法返回一个空的 Rectangle 对象;即,其 x、y、width 和 + height 属性均设置为 0 的矩形。

    +
  • +
+
+
+ +

intersects

+
    +
  • intersects(value: Rectangle): boolean
  • +
+
    +
  • + +
    +
    +

    如果其他相交矩形返回true

    +
    +
    +

    Parameters

    +
      +
    • +
      value: Rectangle
      +
      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

isEmpty

+
    +
  • isEmpty(): boolean
  • +
+
    +
  • + +
    +
    +

    确定此 Rectangle 对象是否为空。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns boolean

    +

    如果 Rectangle 对象的宽度或高度小于等于 0,则返回 true 值,否则返回 false。

    +
  • +
+
+
+ +

offset

+
    +
  • offset(dx: number, dy: number): void
  • +
+
    +
  • + +
    +
    +

    按指定量调整 Rectangle 对象的位置(由其左上角确定)。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      dx: number
      +
      +

      将 Rectangle 对象的 x 值移动此数量。

      +
      +
    • +
    • +
      dy: number
      +
      +

      将 Rectangle 对象的 t 值移动此数量。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

offsetPoint

+
    +
  • offsetPoint(point: Point): void
  • +
+
    +
  • + +
    +
    +

    将 Point 对象用作参数来调整 Rectangle 对象的位置。此方法与 Rectangle.offset() 方法类似,只不过它采用 Point 对象作为参数。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      point: Point
      +
      +

      要用于偏移此 Rectangle 对象的 Point 对象。

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

rayIntersects

+
    +
  • rayIntersects(ray: Ray2D, distance: Ref<number>): boolean
  • +
+ +
+
+ +

setEmpty

+
    +
  • setEmpty(): void
  • +
+
    +
  • + +
    +
    +

    将 Rectangle 对象的所有属性设置为 0。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

setTo

+
    +
  • setTo(x: number, y: number, width: number, height: number): Rectangle
  • +
+
    +
  • + +
    +
    +

    将 Rectangle 的成员设置为指定值

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      x: number
      +
      +

      矩形左上角的 x 坐标。

      +
      +
    • +
    • +
      y: number
      +
      +

      矩形左上角的 y 坐标。

      +
      +
    • +
    • +
      width: number
      +
      +

      矩形的宽度(以像素为单位)。

      +
      +
    • +
    • +
      height: number
      +
      +

      矩形的高度(以像素为单位)。

      +
      +
    • +
    +

    Returns Rectangle

    +
  • +
+
+
+ +

toString

+
    +
  • toString(): string
  • +
+
    +
  • + +
    +
    +

    生成并返回一个字符串,该字符串列出 Rectangle 对象的水平位置和垂直位置以及高度和宽度。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns string

    +

    一个字符串,它列出了 Rectangle 对象的下列各个属性的值:x、y、width 和 height。

    +
  • +
+
+
+ +

union

+
    +
  • union(toUnion: Rectangle): Rectangle
  • +
+
    +
  • + +
    +
    +

    通过填充两个矩形之间的水平和垂直空间,将这两个矩形组合在一起以创建一个新的 Rectangle 对象。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      toUnion: Rectangle
      +
      +

      要添加到此 Rectangle 对象的 Rectangle 对象。

      +
      +
    • +
    +

    Returns Rectangle

    +

    充当两个矩形的联合的新 Rectangle 对象。

    +
  • +
+
+
+ +

Static create

+
    +
  • create(): Rectangle
  • +
+
    +
  • + +
    +
    +

    从对象池中取出或创建一个新的Rectangle对象。

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Returns Rectangle

    +
  • +
+
+
+ +

Static fromMinMax

+
    +
  • fromMinMax(minX: number, minY: number, maxX: number, maxY: number): Rectangle
  • +
+
    +
  • + +
    +
    +

    创建一个矩形的最小/最大点(左上角,右下角的点)

    +
    +
    +

    Parameters

    +
      +
    • +
      minX: number
      +
    • +
    • +
      minY: number
      +
    • +
    • +
      maxX: number
      +
    • +
    • +
      maxY: number
      +
      +
      +
    • +
    +

    Returns Rectangle

    +
  • +
+
+
+ +

Static rectEncompassingPoints

+ + +
+
+ +

Static release

+
    +
  • release(rect: Rectangle): void
  • +
+
    +
  • + +
    +
    +

    释放一个Rectangle实例到对象池

    +
    +
    +
    version
    +

    Egret 2.4

    +
    +
    platform
    +

    Web,Native

    +
    +
    language
    +

    zh_CN

    +
    +
    +
    +

    Parameters

    +
      +
    • +
      rect: Rectangle
      +
    • +
    +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Inherited constructor
  • +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html b/source/docs/classes/_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html new file mode 100644 index 00000000..f003eff9 --- /dev/null +++ b/source/docs/classes/_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html @@ -0,0 +1,873 @@ + + + + + + RectanglePacker | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class RectanglePacker

+
+
+
+
+
+
+
+
+
+

类用于在容器矩形内包装矩形,并具有接近最优解。

+
+
+
+
+

Hierarchy

+
    +
  • + RectanglePacker +
  • +
+
+
+

Index

+
+ +
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new RectanglePacker(width: number, height: number, padding?: number): RectanglePacker
  • +
+ +
+
+
+

Properties

+
+ +

Private _freeAreas

+
_freeAreas: IntegerRectangle[] = []
+ +
+
+ +

Private _height

+
_height: number = 0
+ +
+
+ +

Private _insertList

+
_insertList: SortableSize[] = []
+ +
+
+ +

Private _insertedRectangles

+
_insertedRectangles: IntegerRectangle[] = []
+ +
+
+ +

Private _newFreeAreas

+
_newFreeAreas: IntegerRectangle[] = []
+ +
+
+ +

Private _outsideRectangle

+
_outsideRectangle: IntegerRectangle
+ +
+
+ +

Private _packedHeight

+
_packedHeight: number = 0
+ +
+
+ +

Private _packedWidth

+
_packedWidth: number = 0
+ +
+
+ +

Private _padding

+
_padding: number = 8
+ +
+
+ +

Private _rectangleStack

+
_rectangleStack: IntegerRectangle[] = []
+ +
+
+ +

Private _sortableSizeStack

+
_sortableSizeStack: SortableSize[] = []
+ +
+
+ +

Private _width

+
_width: number = 0
+ +
+
+
+

Accessors

+
+ +

packedHeight

+
    +
  • get packedHeight(): number
  • +
+ +
+
+ +

packedWidth

+
    +
  • get packedWidth(): number
  • +
+ +
+
+ +

padding

+
    +
  • get padding(): number
  • +
+ +
+
+ +

rectangleCount

+
    +
  • get rectangleCount(): number
  • +
+ +
+
+
+

Methods

+
+ +

Private allocateRectangle

+
    +
  • allocateRectangle(x: number, y: number, width: number, height: number): IntegerRectangle
  • +
+ +
+
+ +

Private allocateSize

+
    +
  • allocateSize(width: number, height: number, id: number): SortableSize
  • +
+ +
+
+ +

Private filterSelfSubAreas

+ + +
+
+ +

Private freeRectangle

+ + +
+
+ +

Private freeSize

+ + +
+
+ +

Private generateDividedAreas

+ + +
+
+ +

Private generateNewFreeAreas

+ + +
+
+ +

Private getFreeAreaIndex

+
    +
  • getFreeAreaIndex(width: number, height: number): number
  • +
+ +
+
+ +

getRectangle

+ + +
+
+ +

getRectangleId

+
    +
  • getRectangleId(index: number): number
  • +
+ +
+
+ +

insertRectangle

+
    +
  • insertRectangle(width: number, height: number, id: number): void
  • +
+ +
+
+ +

packRectangles

+
    +
  • packRectangles(sort?: boolean): number
  • +
+ +
+
+ +

reset

+
    +
  • reset(width: number, height: number, padding?: number): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Private property
  • +
  • Private method
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_runtimespritesheet_sortablesize_.es.sortablesize.html b/source/docs/classes/_utils_runtimespritesheet_sortablesize_.es.sortablesize.html new file mode 100644 index 00000000..2407b97a --- /dev/null +++ b/source/docs/classes/_utils_runtimespritesheet_sortablesize_.es.sortablesize.html @@ -0,0 +1,247 @@ + + + + + + SortableSize | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class SortableSize

+
+
+
+
+
+
+
+
+
+

用于根据维度对插入的矩形进行排序

+
+
+
+
+

Hierarchy

+
    +
  • + SortableSize +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new SortableSize(width: number, height: number, id: number): SortableSize
  • +
+ +
+
+
+

Properties

+
+ +

height

+
height: number
+ +
+
+ +

id

+
id: number
+ +
+
+ +

width

+
width: number
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_runtimespritesheet_textureassets_.es.textureasset.html b/source/docs/classes/_utils_runtimespritesheet_textureassets_.es.textureasset.html new file mode 100644 index 00000000..d808bbd7 --- /dev/null +++ b/source/docs/classes/_utils_runtimespritesheet_textureassets_.es.textureasset.html @@ -0,0 +1,229 @@ + + + + + + TextureAsset | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TextureAsset

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TextureAsset +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

height

+
height: number
+ +
+
+ +

name

+
name: string
+ +
+
+ +

width

+
width: number
+ +
+
+ +

x

+
x: number
+ +
+
+ +

y

+
y: number
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
  • Property
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_runtimespritesheet_textureassets_.es.textureassets.html b/source/docs/classes/_utils_runtimespritesheet_textureassets_.es.textureassets.html new file mode 100644 index 00000000..01e022e4 --- /dev/null +++ b/source/docs/classes/_utils_runtimespritesheet_textureassets_.es.textureassets.html @@ -0,0 +1,209 @@ + + + + + + TextureAssets | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TextureAssets

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TextureAssets +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+ + +
+
+
+

Properties

+
+ +

assets

+
assets: TextureAsset[]
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_runtimespritesheet_texturetopack_.es.texturetopack.html b/source/docs/classes/_utils_runtimespritesheet_texturetopack_.es.texturetopack.html new file mode 100644 index 00000000..43051371 --- /dev/null +++ b/source/docs/classes/_utils_runtimespritesheet_texturetopack_.es.texturetopack.html @@ -0,0 +1,223 @@ + + + + + + TextureToPack | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TextureToPack

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + TextureToPack +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new TextureToPack(texture: Texture, id: string): TextureToPack
  • +
+ +
+
+
+

Properties

+
+ +

id

+
id: string
+ +
+
+ +

texture

+
texture: Texture
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Constructor
  • +
  • Property
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_subpixelnumber_.es.subpixelnumber.html b/source/docs/classes/_utils_subpixelnumber_.es.subpixelnumber.html new file mode 100644 index 00000000..7189dd2e --- /dev/null +++ b/source/docs/classes/_utils_subpixelnumber_.es.subpixelnumber.html @@ -0,0 +1,247 @@ + + + + + + SubpixelNumber | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class SubpixelNumber

+
+
+
+
+
+
+
+
+
+

管理数值的简单助手类。它存储值,直到累计的总数大于1。一旦超过1,该值将在调用update时添加到amount中。

+
+
+
+
+

Hierarchy

+
    +
  • + SubpixelNumber +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

remainder

+
remainder: number
+ +
+
+
+

Methods

+
+ +

reset

+
    +
  • reset(): void
  • +
+
    +
  • + +
    +
    +

    将余数重置为0。当一个物体与一个不可移动的物体碰撞时有用。 + 在这种情况下,您将希望将亚像素余数归零,因为它是空的和无效的碰撞。

    +
    +
    +

    Returns void

    +
  • +
+
+
+ +

update

+
    +
  • update(amount: number): number
  • +
+
    +
  • + +
    +
    +

    以amount递增余数,将值截断为int,存储新的余数并将amount设置为当前值。

    +
    +
    +

    Parameters

    +
      +
    • +
      amount: number
      +
      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_timers_timer_.es.timer.html b/source/docs/classes/_utils_timers_timer_.es.timer.html new file mode 100644 index 00000000..6d3c9d7c --- /dev/null +++ b/source/docs/classes/_utils_timers_timer_.es.timer.html @@ -0,0 +1,450 @@ + + + + + + Timer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Timer

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Timer +
  • +
+
+
+

Implements

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

_elapsedTime

+
_elapsedTime: number = 0
+ +
+
+ +

_isDone

+
_isDone: boolean = false
+ +
+
+ +

_onTime

+
_onTime: (timer: ITimer) => void
+ +
+

Type declaration

+
    +
  • + +
      +
    • +

      Parameters

      + +

      Returns void

      +
    • +
    +
  • +
+
+
+
+ +

_repeats

+
_repeats: boolean = false
+ +
+
+ +

_timeInSeconds

+
_timeInSeconds: number = 0
+ +
+
+ +

context

+
context: any
+ +
+
+
+

Methods

+
+ +

getContext

+
    +
  • getContext<T>(): T
  • +
+ +
+
+ +

initialize

+
    +
  • initialize(timeInsSeconds: number, repeats: boolean, context: any, onTime: (timer: ITimer) => void): void
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      timeInsSeconds: number
      +
    • +
    • +
      repeats: boolean
      +
    • +
    • +
      context: any
      +
    • +
    • +
      onTime: (timer: ITimer) => void
      +
        +
      • + +
          +
        • +

          Parameters

          + +

          Returns void

          +
        • +
        +
      • +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

reset

+
    +
  • reset(): void
  • +
+ +
+
+ +

stop

+
    +
  • stop(): void
  • +
+ +
+
+ +

tick

+
    +
  • tick(): boolean
  • +
+ +
+
+ +

unload

+
    +
  • unload(): void
  • +
+
    +
  • + +
    +
    +

    空出对象引用,以便在js需要时GC可以清理它们的引用

    +
    +
    +

    Returns void

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_timers_timermanager_.es.timermanager.html b/source/docs/classes/_utils_timers_timermanager_.es.timermanager.html new file mode 100644 index 00000000..27aae7b8 --- /dev/null +++ b/source/docs/classes/_utils_timers_timermanager_.es.timermanager.html @@ -0,0 +1,443 @@ + + + + + + TimerManager | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class TimerManager

+
+
+
+
+
+
+
+
+
+

允许动作的延迟和重复执行

+
+
+
+
+

Hierarchy

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+

Accessors

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

_enabled

+
_enabled: boolean
+ +
+
+ +

_timers

+
_timers: Timer[] = []
+ +
+
+
+

Accessors

+
+ +

enabled

+
    +
  • get enabled(): boolean
  • +
  • set enabled(value: boolean): void
  • +
+ +
+
+
+

Methods

+
+ +

onDisabled

+
    +
  • onDisabled(): void
  • +
+ +
+
+ +

onEnabled

+
    +
  • onEnabled(): void
  • +
+ +
+
+ +

schedule

+
    +
  • schedule(timeInSeconds: number, repeats: boolean, context: any, onTime: (timer: ITimer) => void): Timer
  • +
+
    +
  • + +
    +
    +

    调度一个一次性或重复的计时器,该计时器将调用已传递的动作

    +
    +
    +

    Parameters

    +
      +
    • +
      timeInSeconds: number
      +
    • +
    • +
      repeats: boolean
      +
    • +
    • +
      context: any
      +
    • +
    • +
      onTime: (timer: ITimer) => void
      +
      +
      +
        +
      • + +
          +
        • +

          Parameters

          + +

          Returns void

          +
        • +
        +
      • +
      +
    • +
    +

    Returns Timer

    +
  • +
+
+
+ +

setEnabled

+
    +
  • setEnabled(isEnabled: boolean): void
  • +
+ +
+
+ +

update

+
    +
  • update(): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Inherited property
  • +
  • Inherited method
  • +
  • Inherited accessor
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_triangulator_.es.triangulator.html b/source/docs/classes/_utils_triangulator_.es.triangulator.html new file mode 100644 index 00000000..00455104 --- /dev/null +++ b/source/docs/classes/_utils_triangulator_.es.triangulator.html @@ -0,0 +1,329 @@ + + + + + + Triangulator | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Triangulator

+
+
+
+
+
+
+
+
+
+

三角剖分

+
+
+
+
+

Hierarchy

+
    +
  • + Triangulator +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

Private _triNext

+
_triNext: number[] = new Array<number>(12)
+ +
+
+ +

Private _triPrev

+
_triPrev: number[] = new Array<number>(12)
+ +
+
+ +

triangleIndices

+
triangleIndices: number[] = []
+ +
+
+

最后一次三角调用中使用的点列表的三角形列表项的索引

+
+
+
+
+
+

Methods

+
+ +

Private initialize

+
    +
  • initialize(count: number): void
  • +
+ +
+
+ +

triangulate

+
    +
  • triangulate(points: Vector2[], arePointsCCW?: boolean): void
  • +
+
    +
  • + +
    +
    +

    计算一个三角形列表,该列表完全覆盖给定点集所包含的区域。如果点不是CCW,则将arePointsCCW参数传递为false

    +
    +
    +

    Parameters

    +
      +
    • +
      points: Vector2[]
      +
      +

      定义封闭路径的点列表

      +
      +
    • +
    • +
      Default value arePointsCCW: boolean = true
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static testPointTriangle

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Class
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Private property
  • +
  • Private method
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_vector2ext_.es.vector2ext.html b/source/docs/classes/_utils_vector2ext_.es.vector2ext.html new file mode 100644 index 00000000..693d091a --- /dev/null +++ b/source/docs/classes/_utils_vector2ext_.es.vector2ext.html @@ -0,0 +1,477 @@ + + + + + + Vector2Ext | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class Vector2Ext

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + Vector2Ext +
  • +
+
+
+

Index

+
+ +
+
+
+

Methods

+
+ +

Static cross

+ + +
+
+ +

Static halfVector

+ + +
+
+ +

Static isTriangleCCW

+ + +
+
+ +

Static normalize

+
    +
  • normalize(vec: Vector2): void
  • +
+
    +
  • + +
    +
    +

    Vector2的临时解决方案 + 标准化把向量弄乱了

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

Static perpendicular

+ + +
+
+ +

Static round

+ + +
+
+ +

Static transform

+ +
    +
  • + +
    +
    +

    通过指定的矩阵对Vector2的数组中的所有向量应用变换,并将结果放到另一个数组中。

    +
    +
    +

    Parameters

    + +

    Returns void

    +
  • +
+
+
+ +

Static transformA

+
    +
  • transformA(sourceArray: Vector2[], sourceIndex: number, matrix: Matrix2D, destinationArray: Vector2[], destinationIndex: number, length: number): void
  • +
+
    +
  • + +
    +
    +

    通过指定的矩阵对Vector2的数组中的向量应用变换,并将结果放置在另一个数组中。

    +
    +
    +

    Parameters

    +
      +
    • +
      sourceArray: Vector2[]
      +
    • +
    • +
      sourceIndex: number
      +
    • +
    • +
      matrix: Matrix2D
      +
    • +
    • +
      destinationArray: Vector2[]
      +
    • +
    • +
      destinationIndex: number
      +
    • +
    • +
      length: number
      +
      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

Static transformR

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/classes/_utils_webglutils_.webglutils.html b/source/docs/classes/_utils_webglutils_.webglutils.html new file mode 100644 index 00000000..4906714a --- /dev/null +++ b/source/docs/classes/_utils_webglutils_.webglutils.html @@ -0,0 +1,176 @@ + + + + + + WebGLUtils | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class WebGLUtils

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + WebGLUtils +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

Static getContext

+
    +
  • getContext(): CanvasRenderingContext2D
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
    +
  • Static method
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_debug_debugdrawitem_.es.debugdrawtype.html b/source/docs/enums/_debug_debugdrawitem_.es.debugdrawtype.html new file mode 100644 index 00000000..6a2c5982 --- /dev/null +++ b/source/docs/enums/_debug_debugdrawitem_.es.debugdrawtype.html @@ -0,0 +1,206 @@ + + + + + + DebugDrawType | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration DebugDrawType

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

hollowRectangle

+
hollowRectangle:
+ +
+
+ +

line

+
line:
+ +
+
+ +

pixel

+
pixel:
+ +
+
+ +

text

+
text:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_ecs_components_followcamera_.es.camerastyle.html b/source/docs/enums/_ecs_components_followcamera_.es.camerastyle.html new file mode 100644 index 00000000..e6af4331 --- /dev/null +++ b/source/docs/enums/_ecs_components_followcamera_.es.camerastyle.html @@ -0,0 +1,178 @@ + + + + + + CameraStyle | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration CameraStyle

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

cameraWindow

+
cameraWindow:
+ +
+
+ +

lockOn

+
lockOn:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_ecs_components_renderables_sprites_spriteanimator_.es.loopmode.html b/source/docs/enums/_ecs_components_renderables_sprites_spriteanimator_.es.loopmode.html new file mode 100644 index 00000000..7da307cd --- /dev/null +++ b/source/docs/enums/_ecs_components_renderables_sprites_spriteanimator_.es.loopmode.html @@ -0,0 +1,248 @@ + + + + + + LoopMode | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration LoopMode

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

clampForever

+
clampForever:
+ +
+
+

[A][B][C]。当它到达终点时,它会继续播放最后一帧,并且不会停止播放

+
+
+
+
+ +

loop

+
loop:
+ +
+
+

在一个循环序列[A][B][C][A][B][C][A][B][C]...

+
+
+
+
+ +

once

+
once:
+ +
+
+

[A][B][C]然后暂停,设置时间为0 [A]

+
+
+
+
+ +

pingPong

+
pingPong:
+ +
+
+

以一个乒乓循环的方式永远播放这个序列 [A][B][C][B][A][B][C][B]...

+
+
+
+
+ +

pingPongOnce

+
pingPongOnce:
+ +
+
+

将顺序向前播放一次,然后返回到开始[A][B][C][B][A],然后暂停并设置时间为0

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_ecs_components_renderables_sprites_spriteanimator_.es.state.html b/source/docs/enums/_ecs_components_renderables_sprites_spriteanimator_.es.state.html new file mode 100644 index 00000000..409694fb --- /dev/null +++ b/source/docs/enums/_ecs_components_renderables_sprites_spriteanimator_.es.state.html @@ -0,0 +1,209 @@ + + + + + + State | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration State

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

completed

+
completed:
+ +
+
+ +

none

+
none:
+ +
+
+ +

paused

+
paused:
+ +
+
+ +

running

+
running:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_ecs_coreevents_.es.coreevents.html b/source/docs/enums/_ecs_coreevents_.es.coreevents.html new file mode 100644 index 00000000..337ca552 --- /dev/null +++ b/source/docs/enums/_ecs_coreevents_.es.coreevents.html @@ -0,0 +1,204 @@ + + + + + + CoreEvents | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration CoreEvents

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

GraphicsDeviceReset

+
GraphicsDeviceReset:
+ +
+
+

在图形设备重置时触发。当这种情况发生时,任何渲染目标或其他内容的VRAM将被擦除,需要重新生成

+
+
+
+
+ +

OrientationChanged

+
OrientationChanged:
+ +
+
+

当设备方向改变时触发

+
+
+
+
+ +

SceneChanged

+
SceneChanged:
+ +
+
+

当场景发生变化时触发

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_ecs_transform_.es.dirtytype.html b/source/docs/enums/_ecs_transform_.es.dirtytype.html new file mode 100644 index 00000000..5df95653 --- /dev/null +++ b/source/docs/enums/_ecs_transform_.es.dirtytype.html @@ -0,0 +1,212 @@ + + + + + + DirtyType | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration DirtyType

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

clean

+
clean:
+ +
+
+ +

positionDirty

+
positionDirty:
+ +
+
+ +

rotationDirty

+
rotationDirty:
+ +
+
+ +

scaleDirty

+
scaleDirty:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_ecs_transform_.transform.component.html b/source/docs/enums/_ecs_transform_.transform.component.html new file mode 100644 index 00000000..b7df0de5 --- /dev/null +++ b/source/docs/enums/_ecs_transform_.transform.component.html @@ -0,0 +1,192 @@ + + + + + + Component | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration Component

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

position

+
position:
+ +
+
+ +

rotation

+
rotation:
+ +
+
+ +

scale

+
scale:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_physics_collision_.es.pointsectors.html b/source/docs/enums/_physics_collision_.es.pointsectors.html new file mode 100644 index 00000000..4983028d --- /dev/null +++ b/source/docs/enums/_physics_collision_.es.pointsectors.html @@ -0,0 +1,276 @@ + + + + + + PointSectors | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration PointSectors

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

bottom

+
bottom: = 2
+ +
+
+ +

bottomLeft

+
bottomLeft: = 10
+ +
+
+ +

bottomRight

+
bottomRight: = 6
+ +
+
+ +

center

+
center: = 0
+ +
+
+ +

left

+
left: = 8
+ +
+
+ +

right

+
right: = 4
+ +
+
+ +

top

+
top: = 1
+ +
+
+ +

topLeft

+
topLeft: = 9
+ +
+
+ +

topRight

+
topRight: = 5
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_tiled_map_.es.orientationtype.html b/source/docs/enums/_tiled_map_.es.orientationtype.html new file mode 100644 index 00000000..71d16b82 --- /dev/null +++ b/source/docs/enums/_tiled_map_.es.orientationtype.html @@ -0,0 +1,229 @@ + + + + + + OrientationType | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration OrientationType

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

hexagonal

+
hexagonal:
+ +
+
+ +

isometric

+
isometric:
+ +
+
+ +

orthogonal

+
orthogonal:
+ +
+
+ +

staggered

+
staggered:
+ +
+
+ +

unknown

+
unknown:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_tiled_map_.es.renderordertype.html b/source/docs/enums/_tiled_map_.es.renderordertype.html new file mode 100644 index 00000000..dd75c980 --- /dev/null +++ b/source/docs/enums/_tiled_map_.es.renderordertype.html @@ -0,0 +1,215 @@ + + + + + + RenderOrderType | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration RenderOrderType

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

leftDown

+
leftDown:
+ +
+
+ +

leftUp

+
leftUp:
+ +
+
+ +

rightDown

+
rightDown:
+ +
+
+ +

rightUp

+
rightUp:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_tiled_map_.es.staggeraxistype.html b/source/docs/enums/_tiled_map_.es.staggeraxistype.html new file mode 100644 index 00000000..c8f62f21 --- /dev/null +++ b/source/docs/enums/_tiled_map_.es.staggeraxistype.html @@ -0,0 +1,187 @@ + + + + + + StaggerAxisType | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration StaggerAxisType

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+
    +
  • x
  • +
  • y
  • +
+
+
+
+
+
+

Enumeration members

+
+ +

x

+
x:
+ +
+
+ +

y

+
y:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_tiled_map_.es.staggerindextype.html b/source/docs/enums/_tiled_map_.es.staggerindextype.html new file mode 100644 index 00000000..954fc10a --- /dev/null +++ b/source/docs/enums/_tiled_map_.es.staggerindextype.html @@ -0,0 +1,187 @@ + + + + + + StaggerIndexType | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration StaggerIndexType

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

even

+
even:
+ +
+
+ +

odd

+
odd:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_tiled_objectgroup_.es.drawordertype.html b/source/docs/enums/_tiled_objectgroup_.es.drawordertype.html new file mode 100644 index 00000000..f92e73ef --- /dev/null +++ b/source/docs/enums/_tiled_objectgroup_.es.drawordertype.html @@ -0,0 +1,210 @@ + + + + + + DrawOrderType | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration DrawOrderType

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

IndexOrder

+
IndexOrder:
+ +
+
+ +

TopDown

+
TopDown:
+ +
+
+ +

unkownOrder

+
unkownOrder: = -1
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_tiled_objectgroup_.es.tmxhorizontalalignment.html b/source/docs/enums/_tiled_objectgroup_.es.tmxhorizontalalignment.html new file mode 100644 index 00000000..14952915 --- /dev/null +++ b/source/docs/enums/_tiled_objectgroup_.es.tmxhorizontalalignment.html @@ -0,0 +1,224 @@ + + + + + + TmxHorizontalAlignment | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration TmxHorizontalAlignment

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

center

+
center:
+ +
+
+ +

justify

+
justify:
+ +
+
+ +

left

+
left:
+ +
+
+ +

right

+
right:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_tiled_objectgroup_.es.tmxobjecttype.html b/source/docs/enums/_tiled_objectgroup_.es.tmxobjecttype.html new file mode 100644 index 00000000..00cf01f4 --- /dev/null +++ b/source/docs/enums/_tiled_objectgroup_.es.tmxobjecttype.html @@ -0,0 +1,266 @@ + + + + + + TmxObjectType | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration TmxObjectType

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

basic

+
basic:
+ +
+
+ +

ellipse

+
ellipse:
+ +
+
+ +

point

+
point:
+ +
+
+ +

polygon

+
polygon:
+ +
+
+ +

polyline

+
polyline:
+ +
+
+ +

text

+
text:
+ +
+
+ +

tile

+
tile:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_tiled_objectgroup_.es.tmxverticalalignment.html b/source/docs/enums/_tiled_objectgroup_.es.tmxverticalalignment.html new file mode 100644 index 00000000..8bb348fd --- /dev/null +++ b/source/docs/enums/_tiled_objectgroup_.es.tmxverticalalignment.html @@ -0,0 +1,210 @@ + + + + + + TmxVerticalAlignment | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration TmxVerticalAlignment

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

bottom

+
bottom:
+ +
+
+ +

center

+
center:
+ +
+
+ +

top

+
top:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_utils_analysis_layout_.es.alignment.html b/source/docs/enums/_utils_analysis_layout_.es.alignment.html new file mode 100644 index 00000000..82edb507 --- /dev/null +++ b/source/docs/enums/_utils_analysis_layout_.es.alignment.html @@ -0,0 +1,374 @@ + + + + + + Alignment | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration Alignment

+
+
+
+
+
+
+
+

Index

+
+ +
+
+
+

Enumeration members

+
+ +

bottom

+
bottom: = 16
+ +
+
+ +

bottomCenter

+
bottomCenter: = bottom | horizontalCenter
+ +
+
+ +

bottomLeft

+
bottomLeft: = bottom | left
+ +
+
+ +

bottomRight

+
bottomRight: = bottom | right
+ +
+
+ +

center

+
center: = verticalCenter | horizontalCenter
+ +
+
+ +

centerLeft

+
centerLeft: = verticalCenter | left
+ +
+
+ +

centerRight

+
centerRight: = verticalCenter | right
+ +
+
+ +

horizontalCenter

+
horizontalCenter: = 4
+ +
+
+ +

left

+
left: = 1
+ +
+
+ +

none

+
none: = 0
+ +
+
+ +

right

+
right: = 2
+ +
+
+ +

top

+
top: = 8
+ +
+
+ +

topCenter

+
topCenter: = top | horizontalCenter
+ +
+
+ +

topLeft

+
topLeft: = top | left
+ +
+
+ +

topRight

+
topRight: = top | right
+ +
+
+ +

verticalCenter

+
verticalCenter: = 32
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_utils_analysis_stopwatch_.stopwatch.state.html b/source/docs/enums/_utils_analysis_stopwatch_.stopwatch.state.html new file mode 100644 index 00000000..2104c9e3 --- /dev/null +++ b/source/docs/enums/_utils_analysis_stopwatch_.stopwatch.state.html @@ -0,0 +1,219 @@ + + + + + + State | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration State

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

IDLE

+
IDLE: = "IDLE"
+ +
+
+

秒表尚未启动,或已复位。

+
+
+
+
+ +

RUNNING

+
RUNNING: = "RUNNING"
+ +
+
+

秒表正在运行。

+
+
+
+
+ +

STOPPED

+
STOPPED: = "STOPPED"
+ +
+
+

秒表以前还在跑,但现在已经停了。

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_utils_enum_.es.edge.html b/source/docs/enums/_utils_enum_.es.edge.html new file mode 100644 index 00000000..164f9e81 --- /dev/null +++ b/source/docs/enums/_utils_enum_.es.edge.html @@ -0,0 +1,203 @@ + + + + + + Edge | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration Edge

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

bottom

+
bottom:
+ +
+
+ +

left

+
left:
+ +
+
+ +

right

+
right:
+ +
+
+ +

top

+
top:
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_utils_input_keys_.es.keys.html b/source/docs/enums/_utils_input_keys_.es.keys.html new file mode 100644 index 00000000..6eccd5dd --- /dev/null +++ b/source/docs/enums/_utils_input_keys_.es.keys.html @@ -0,0 +1,1715 @@ + + + + + + Keys | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration Keys

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

a

+
a: = 65
+ +
+
+ +

add

+
add: = 107
+ +
+
+ +

apps

+
apps: = 93
+ +
+
+ +

b

+
b: = 66
+ +
+
+ +

back

+
back: = 8
+ +
+
+ +

browserBack

+
browserBack: = 166
+ +
+
+ +

browserForward

+
browserForward: = 167
+ +
+
+ +

c

+
c: = 67
+ +
+
+ +

capsLock

+
capsLock: = 20
+ +
+
+ +

d

+
d: = 68
+ +
+
+ +

d0

+
d0: = 48
+ +
+
+ +

d1

+
d1: = 49
+ +
+
+ +

d2

+
d2: = 50
+ +
+
+ +

d3

+
d3: = 51
+ +
+
+ +

d4

+
d4: = 52
+ +
+
+ +

d5

+
d5: = 53
+ +
+
+ +

d6

+
d6: = 54
+ +
+
+ +

d7

+
d7: = 55
+ +
+
+ +

d8

+
d8: = 56
+ +
+
+ +

d9

+
d9: = 57
+ +
+
+ +

decimal

+
decimal: = 110
+ +
+
+ +

delete

+
delete: = 46
+ +
+
+ +

divide

+
divide: = 111
+ +
+
+ +

down

+
down: = 40
+ +
+
+ +

e

+
e: = 69
+ +
+
+ +

end

+
end: = 35
+ +
+
+ +

enter

+
enter: = 13
+ +
+
+ +

escape

+
escape: = 27
+ +
+
+ +

execute

+
execute: = 43
+ +
+
+ +

f

+
f: = 70
+ +
+
+ +

f1

+
f1: = 112
+ +
+
+ +

f10

+
f10: = 121
+ +
+
+ +

f11

+
f11: = 122
+ +
+
+ +

f12

+
f12: = 123
+ +
+
+ +

f13

+
f13: = 124
+ +
+
+ +

f14

+
f14: = 125
+ +
+
+ +

f15

+
f15: = 126
+ +
+
+ +

f16

+
f16: = 127
+ +
+
+ +

f17

+
f17: = 128
+ +
+
+ +

f18

+
f18: = 129
+ +
+
+ +

f19

+
f19: = 130
+ +
+
+ +

f2

+
f2: = 113
+ +
+
+ +

f20

+
f20: = 131
+ +
+
+ +

f21

+
f21: = 132
+ +
+
+ +

f22

+
f22: = 133
+ +
+
+ +

f23

+
f23: = 134
+ +
+
+ +

f24

+
f24: = 135
+ +
+
+ +

f3

+
f3: = 114
+ +
+
+ +

f4

+
f4: = 115
+ +
+
+ +

f5

+
f5: = 116
+ +
+
+ +

f6

+
f6: = 117
+ +
+
+ +

f7

+
f7: = 118
+ +
+
+ +

f8

+
f8: = 119
+ +
+
+ +

f9

+
f9: = 120
+ +
+
+ +

g

+
g: = 71
+ +
+
+ +

h

+
h: = 72
+ +
+
+ +

help

+
help: = 47
+ +
+
+ +

home

+
home: = 36
+ +
+
+ +

i

+
i: = 73
+ +
+
+ +

insert

+
insert: = 45
+ +
+
+ +

j

+
j: = 74
+ +
+
+ +

k

+
k: = 75
+ +
+
+ +

l

+
l: = 76
+ +
+
+ +

left

+
left: = 37
+ +
+
+ +

leftAlt

+
leftAlt: = 164
+ +
+
+ +

leftControl

+
leftControl: = 162
+ +
+
+ +

leftShift

+
leftShift: = 160
+ +
+
+ +

leftWindows

+
leftWindows: = 91
+ +
+
+ +

m

+
m: = 77
+ +
+
+ +

multiply

+
multiply: = 106
+ +
+
+ +

n

+
n: = 78
+ +
+
+ +

none

+
none:
+ +
+
+ +

numLock

+
numLock: = 144
+ +
+
+ +

numPad0

+
numPad0: = 96
+ +
+
+ +

numPad1

+
numPad1: = 97
+ +
+
+ +

numPad2

+
numPad2: = 98
+ +
+
+ +

numPad3

+
numPad3: = 99
+ +
+
+ +

numPad4

+
numPad4: = 100
+ +
+
+ +

numPad5

+
numPad5: = 101
+ +
+
+ +

numPad6

+
numPad6: = 102
+ +
+
+ +

numPad7

+
numPad7: = 103
+ +
+
+ +

numPad8

+
numPad8: = 104
+ +
+
+ +

numPad9

+
numPad9: = 105
+ +
+
+ +

o

+
o: = 79
+ +
+
+ +

p

+
p: = 80
+ +
+
+ +

pageDown

+
pageDown: = 34
+ +
+
+ +

pageUp

+
pageUp: = 33
+ +
+
+ +

print

+
print: = 42
+ +
+
+ +

printScreen

+
printScreen: = 44
+ +
+
+ +

q

+
q: = 81
+ +
+
+ +

r

+
r: = 82
+ +
+
+ +

right

+
right: = 39
+ +
+
+ +

rightAlt

+
rightAlt: = 165
+ +
+
+ +

rightControl

+
rightControl: = 163
+ +
+
+ +

rightShift

+
rightShift: = 161
+ +
+
+ +

rightWindows

+
rightWindows: = 92
+ +
+
+ +

s

+
s: = 83
+ +
+
+ +

scroll

+
scroll: = 145
+ +
+
+ +

select

+
select: = 41
+ +
+
+ +

seperator

+
seperator: = 108
+ +
+
+ +

sleep

+
sleep: = 95
+ +
+
+ +

space

+
space: = 32
+ +
+
+ +

subtract

+
subtract: = 109
+ +
+
+ +

t

+
t: = 84
+ +
+
+ +

tab

+
tab: = 9
+ +
+
+ +

u

+
u: = 85
+ +
+
+ +

up

+
up: = 38
+ +
+
+ +

v

+
v: = 86
+ +
+
+ +

w

+
w: = 87
+ +
+
+ +

x

+
x: = 88
+ +
+
+ +

y

+
y: = 89
+ +
+
+ +

z

+
z: = 90
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/enums/_utils_input_virtual_virtualinput_.es.overlapbehavior.html b/source/docs/enums/_utils_input_virtual_virtualinput_.es.overlapbehavior.html new file mode 100644 index 00000000..d165de05 --- /dev/null +++ b/source/docs/enums/_utils_input_virtual_virtualinput_.es.overlapbehavior.html @@ -0,0 +1,211 @@ + + + + + + OverlapBehavior | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Enumeration OverlapBehavior

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumeration members

+ +
+
+
+
+
+

Enumeration members

+
+ +

cancelOut

+
cancelOut:
+ +
+
+

重复的输入将导致相互抵消,并且不会记录任何输入。 + 例如:按左箭头键,按住时按右箭头键。这将导致相互抵消。

+
+
+
+
+ +

takeNewer

+
takeNewer:
+ +
+
+

将使用找到的最后一个输入

+
+
+
+
+ +

takeOlder

+
takeOlder:
+ +
+
+

将使用找到的第一个输入

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/globals.html b/source/docs/globals.html new file mode 100644 index 00000000..51d5b5f3 --- /dev/null +++ b/source/docs/globals.html @@ -0,0 +1,814 @@ + + + + + + @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

@esengine/egret-framework

+
+
+
+
+
+
+
+

Index

+
+
+
+

Modules

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/index.html b/source/docs/index.html new file mode 100644 index 00000000..83e25d4d --- /dev/null +++ b/source/docs/index.html @@ -0,0 +1,781 @@ + + + + + + @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

@esengine/egret-framework

+
+
+
+
+
+
+
+

Language grade: JavaScript

+

这是一套用于egret的游戏框架,里面包含ECS框架用于管理场景实体,一些常用2D碰撞检测及A*寻路。如果您还需要包含其他的AI系统可以查看作者其他库(行为树、简易FSM、实用AI)。

+ +

在线框架演示

+
+

非完整游戏演示

+ +

入门教程

+
+

Getting Start

+

打开白鹭工程 替换 Main.ts 文件内容

+
class Main extends es.Core {
+    /** 
+     * 由监听事件 egret.Event.ADDED_TO_STAGE后触发的事件
+     */
+    protected initialize() {
+        // 初始化游戏逻辑
+    }
+
+    /**
+    * 由监听事件 egret.Event.ENTER_FRAME后触发的事件
+    */
+    protected async update(){
+        // 如果需要更新方法 不能删除super.update()
+        // 会导致框架内所有组件及实体无法更新
+        super.update();
+
+        // 更新逻辑
+    }
+
+    /**
+    * 在update方法执行完毕后执行 draw方法
+    */
+    public async draw(){
+        // 如果需要绘制方法 不能删除super.draw()
+        // 会导致框架内所有渲染组件位置无法更新
+        super.draw();
+
+        // 绘制逻辑
+    }
+}
+ +

版本计划功能

+
+
    +
  • 简易ECS框架
      +
    • 组件列表
        +
      • 碰撞组件
      • +
      • 移动组件
      • +
      • 滚动精灵组件
      • +
      • 平铺精灵组件
      • +
      • 序列帧动画组件
      • +
      • 相机震动组件
      • +
      • 相机组件
      • +
      • 组件池
      • +
      • 基础碰撞组件(矩形、圆形、多边形碰撞)
      • +
      • 场景组件
      • +
      +
    • +
    • 系统列表
        +
      • 被动系统
      • +
      • 协调系统
      • +
      • 实体系统
      • +
      • 实体解析系统
      • +
      +
    • +
    +
  • +
  • 扩展库
      +
    • object扩展
    • +
    • string扩展
    • +
    • texture扩展
    • +
    • time扩展
    • +
    • array扩展(Extension)
    • +
    • base64扩展
    • +
    • Stopwatch计数器
    • +
    • Input输入帮助
    • +
    • Keyboard键盘帮助
    • +
    • List池对象
    • +
    • Lock锁帮助
    • +
    • Emitter事件发射器
    • +
    • Random随机类帮助
    • +
    • Rectangle矩形帮助类
    • +
    • Vector2向量帮助类
    • +
    • Content资源管理器
    • +
    • 全局管理器
    • +
    • 向量集Bitset
    • +
    +
  • +
  • 图形帮助
      +
    • 场景过渡
    • +
    • 后处理器
    • +
    • 场景渲染器
    • +
    • 特效组
    • +
    +
  • +
  • A*寻路(AStar)
  • +
  • 常用碰撞检测
  • +
  • 数学库
      +
    • 矩形类(Rectangle)
    • +
    • 简易2D矩阵类(Matrix2D)
    • +
    • 简易2d 向量类(Vector2)
    • +
    • 数学扩展库(MathHelper)
    • +
    • 掩码实用类(Flags)
    • +
    • 贝塞尔曲线(Bezier)
    • +
    +
  • +
  • 物理系统(简易)
      +
    • Collision碰撞检测
    • +
    • ColliderTrigger帮助
    • +
    • Ray2D射线检测
    • +
    • ShapeCollision 多种形状检测
    • +
    • RealtimeCollisions 实时碰撞检测
    • +
    • SpatialHash 网格检测
    • +
    +
  • +
  • BreadthFirst 寻路算法
  • +
  • Dijkstra 寻路算法
  • +
  • 事件处理器
  • +
+ +

关于egret用ecs框架(typescript/javascript)

+
+

ecs 是功能强大的实体组件系统。typescript与其他语言不同,因此我对ecs的设计尽可能的支持typescript特性。虽然ecs拥有标准实体组件系统,但在细节上有很大不同。创建标准ecs通常处于原始速度、缓存位置和其他性能原因。使用typescript,我们没有struct,因为没有必要匹配标准实体组件系统的设计方式,因为我们对内存布局没有那种控制。

+

ecs更灵活,可以更好的集中、组织、排序和过滤游戏中的对象。ecs让您拥有轻量级实体和组件,这些组件可以由系统批量处理。 + 例如,您在制作一个射手,您可能会有几十到几百个子弹,这些作为轻量级实体由系统批量处理。

+

所以ecs在设计当中拥有四种重要类型:世界(Scene),过滤器(Matcher),系统(System)和实体(Entity)

+ +

世界(Scene)

+ +

Scene是ecs包含系统和实体最外面的容器。

+ +

实体(Entity)

+
+

实体只由系统处理。

+ +

组件(Component)

+
+

组件应该只包含数据而没有逻辑代码。对数据进行逻辑是系统的工作。

+ +

系统(System)

+
+

ecs中的系统会不断的更新实体。系统使用过滤器选择某些实体,然后仅更新那些选择的实体。

+ +

作者其他库(egret)

+
+ +
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_ai_pathfinding_astar_iastargraph_.es.iastargraph.html b/source/docs/interfaces/_ai_pathfinding_astar_iastargraph_.es.iastargraph.html new file mode 100644 index 00000000..7eebe092 --- /dev/null +++ b/source/docs/interfaces/_ai_pathfinding_astar_iastargraph_.es.iastargraph.html @@ -0,0 +1,285 @@ + + + + + + IAstarGraph | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface IAstarGraph<T>

+
+
+
+
+
+
+
+
+
+

graph的接口,可以提供给AstarPathfinder.search方法

+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+
    +
  • + IAstarGraph +
  • +
+
+
+

Implemented by

+ +
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

cost

+
    +
  • cost(from: T, to: T): number
  • +
+ +
+
+ +

getNeighbors

+
    +
  • getNeighbors(node: T): Array<T>
  • +
+ +
+
+ +

heuristic

+
    +
  • heuristic(node: T, goal: T): any
  • +
+
    +
  • + +
    +
    +

    计算从node到to的启发式。参见WeightedGridGraph了解常用的Manhatten方法。

    +
    +
    +

    Parameters

    +
      +
    • +
      node: T
      +
    • +
    • +
      goal: T
      +
      +
      +
    • +
    +

    Returns any

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Method
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_ai_pathfinding_breadthfirst_iunweightedgraph_.es.iunweightedgraph.html b/source/docs/interfaces/_ai_pathfinding_breadthfirst_iunweightedgraph_.es.iunweightedgraph.html new file mode 100644 index 00000000..2525c76c --- /dev/null +++ b/source/docs/interfaces/_ai_pathfinding_breadthfirst_iunweightedgraph_.es.iunweightedgraph.html @@ -0,0 +1,205 @@ + + + + + + IUnweightedGraph | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface IUnweightedGraph<T>

+
+
+
+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+
    +
  • + IUnweightedGraph +
  • +
+
+
+

Implemented by

+ +
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

getNeighbors

+
    +
  • getNeighbors(node: T): T[]
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Method
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_ai_pathfinding_dijkstra_iweightedgraph_.es.iweightedgraph.html b/source/docs/interfaces/_ai_pathfinding_dijkstra_iweightedgraph_.es.iweightedgraph.html new file mode 100644 index 00000000..7821bf75 --- /dev/null +++ b/source/docs/interfaces/_ai_pathfinding_dijkstra_iweightedgraph_.es.iweightedgraph.html @@ -0,0 +1,235 @@ + + + + + + IWeightedGraph | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface IWeightedGraph<T>

+
+
+
+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+
    +
  • + IWeightedGraph +
  • +
+
+
+

Implemented by

+ +
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

cost

+
    +
  • cost(from: T, to: T): number
  • +
+ +
+
+ +

getNeighbors

+
    +
  • getNeighbors(node: T): T[]
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Method
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_ecs_components_camera_.es.camerainset.html b/source/docs/interfaces/_ecs_components_camera_.es.camerainset.html new file mode 100644 index 00000000..ad5d6fe3 --- /dev/null +++ b/source/docs/interfaces/_ecs_components_camera_.es.camerainset.html @@ -0,0 +1,215 @@ + + + + + + CameraInset | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface CameraInset

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + CameraInset +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

bottom

+
bottom: number
+ +
+
+ +

left

+
left: number
+ +
+
+ +

right

+
right: number
+ +
+
+ +

top

+
top: number
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Property
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_ecs_components_iupdatable_.es.iupdatable.html b/source/docs/interfaces/_ecs_components_iupdatable_.es.iupdatable.html new file mode 100644 index 00000000..c591ea63 --- /dev/null +++ b/source/docs/interfaces/_ecs_components_iupdatable_.es.iupdatable.html @@ -0,0 +1,217 @@ + + + + + + IUpdatable | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface IUpdatable

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + IUpdatable +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

enabled

+
enabled: boolean
+ +
+
+ +

updateOrder

+
updateOrder: number
+ +
+
+
+

Methods

+
+ +

update

+
    +
  • update(): any
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface with type parameter
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_ecs_components_physics_itriggerlistener_.es.itriggerlistener.html b/source/docs/interfaces/_ecs_components_physics_itriggerlistener_.es.itriggerlistener.html new file mode 100644 index 00000000..3ae91c60 --- /dev/null +++ b/source/docs/interfaces/_ecs_components_physics_itriggerlistener_.es.itriggerlistener.html @@ -0,0 +1,240 @@ + + + + + + ITriggerListener | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface ITriggerListener

+
+
+
+
+
+
+
+
+
+

当添加到组件时,每当实体上的冲突器与另一个组件重叠/退出时,将调用这些方法。 + ITriggerListener方法将在实现接口的触发器实体上的任何组件上调用。 + 注意,这个接口只与Mover类一起工作

+
+
+
+
+

Hierarchy

+
    +
  • + ITriggerListener +
  • +
+
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

onTriggerEnter

+ +
    +
  • + +
    +
    +

    当碰撞器与触发碰撞器相交时调用。这是在触发碰撞器和触发碰撞器上调用的。 + 移动必须由Mover/ProjectileMover方法处理,以使其自动工作。

    +
    +
    +

    Parameters

    + +

    Returns any

    +
  • +
+
+
+ +

onTriggerExit

+ + +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Method
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_extension_.array.html b/source/docs/interfaces/_extension_.array.html new file mode 100644 index 00000000..926da29f --- /dev/null +++ b/source/docs/interfaces/_extension_.array.html @@ -0,0 +1,913 @@ + + + + + + Array | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface Array<T>

+
+
+
+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+
    +
  • + Array +
  • +
+
+
+

Index

+
+ +
+
+
+

Methods

+
+ +

any

+
    +
  • any(predicate: (c: T) => boolean): boolean
  • +
+
    +
  • + +
    +
    +

    是否存在满足表达式的数组元素

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: (c: T) => boolean
      +
      +

      表达式

      +
      +
        +
      • +
          +
        • (c: T): boolean
        • +
        +
          +
        • +

          Parameters

          +
            +
          • +
            c: T
            +
          • +
          +

          Returns boolean

          +
        • +
        +
      • +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

contains

+
    +
  • contains(value: T): boolean
  • +
+
    +
  • + +
    +
    +

    是否有获取满足表达式的数组元素

    +
    +
    +

    Parameters

    +
      +
    • +
      value: T
      +
      +

      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

count

+
    +
  • count(predicate: (c: T) => boolean): number
  • +
+
    +
  • + +
    +
    +

    获取满足表达式的数组元素的计数

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: (c: T) => boolean
      +
      +

      表达式

      +
      +
        +
      • +
          +
        • (c: T): boolean
        • +
        +
          +
        • +

          Parameters

          +
            +
          • +
            c: T
            +
          • +
          +

          Returns boolean

          +
        • +
        +
      • +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

find

+
    +
  • find(predicate: (c: T) => boolean): T
  • +
+
    +
  • + +
    +
    +

    获取满足表达式的第一个数组元素

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: (c: T) => boolean
      +
      +

      表达式

      +
      +
        +
      • +
          +
        • (c: T): boolean
        • +
        +
          +
        • +

          Parameters

          +
            +
          • +
            c: T
            +
          • +
          +

          Returns boolean

          +
        • +
        +
      • +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

findAll

+
    +
  • findAll(predicate: (c: T) => boolean): Array<T>
  • +
+
    +
  • + +
    +
    +

    获取满足表达式的数组元素的数组

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: (c: T) => boolean
      +
      +

      表达式

      +
      +
        +
      • +
          +
        • (c: T): boolean
        • +
        +
          +
        • +

          Parameters

          +
            +
          • +
            c: T
            +
          • +
          +

          Returns boolean

          +
        • +
        +
      • +
      +
    • +
    +

    Returns Array<T>

    +
  • +
+
+
+ +

findIndex

+
    +
  • findIndex(predicate: (c: T) => boolean): number
  • +
+
    +
  • + +
    +
    +

    获取满足表达式的数组元素索引

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: (c: T) => boolean
      +
      +

      表达式

      +
      +
        +
      • +
          +
        • (c: T): boolean
        • +
        +
          +
        • +

          Parameters

          +
            +
          • +
            c: T
            +
          • +
          +

          Returns boolean

          +
        • +
        +
      • +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

firstOrDefault

+
    +
  • firstOrDefault(predicate: (c: T) => boolean): T
  • +
+
    +
  • + +
    +
    +

    获取满足表达式的第一个或默认数组元素

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: (c: T) => boolean
      +
      +

      表达式

      +
      +
        +
      • +
          +
        • (c: T): boolean
        • +
        +
          +
        • +

          Parameters

          +
            +
          • +
            c: T
            +
          • +
          +

          Returns boolean

          +
        • +
        +
      • +
      +
    • +
    +

    Returns T

    +
  • +
+
+
+ +

groupBy

+
    +
  • groupBy(keySelector: Function): Array<T>
  • +
+
    +
  • + +
    +
    +

    分组

    +
    +
    +

    Parameters

    +
      +
    • +
      keySelector: Function
      +
      +

      key选择器

      +
      +
    • +
    +

    Returns Array<T>

    +
  • +
+
+
+ +

orderBy

+
    +
  • orderBy(keySelector: Function, comparer: Function): Array<T>
  • +
+
    +
  • + +
    +
    +

    排序(升序)

    +
    +
    +

    Parameters

    +
      +
    • +
      keySelector: Function
      +
      +

      key选择器

      +
      +
    • +
    • +
      comparer: Function
      +
      +

      比较器

      +
      +
    • +
    +

    Returns Array<T>

    +
  • +
+
+
+ +

orderByDescending

+
    +
  • orderByDescending(keySelector: Function, comparer: Function): Array<T>
  • +
+
    +
  • + +
    +
    +

    排序(降序)

    +
    +
    +

    Parameters

    +
      +
    • +
      keySelector: Function
      +
      +

      key选择器

      +
      +
    • +
    • +
      comparer: Function
      +
      +

      比较器

      +
      +
    • +
    +

    Returns Array<T>

    +
  • +
+
+
+ +

remove

+
    +
  • remove(element: T): boolean
  • +
+
    +
  • + +
    +
    +

    移除数组元素

    +
    +
    +

    Parameters

    +
      +
    • +
      element: T
      +
      +

      数组元素

      +
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

removeAll

+
    +
  • removeAll(predicate: (c: T) => boolean): void
  • +
+
    +
  • + +
    +
    +

    移除满足表达式的数组元素

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: (c: T) => boolean
      +
      +

      表达式

      +
      +
        +
      • +
          +
        • (c: T): boolean
        • +
        +
          +
        • +

          Parameters

          +
            +
          • +
            c: T
            +
          • +
          +

          Returns boolean

          +
        • +
        +
      • +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

removeAt

+
    +
  • removeAt(index: number): void
  • +
+
    +
  • + +
    +
    +

    移除特定索引数组元素

    +
    +
    +

    Parameters

    +
      +
    • +
      index: number
      +
      +

      索引

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

removeRange

+
    +
  • removeRange(index: number, count: number): void
  • +
+
    +
  • + +
    +
    +

    移除范围数组元素

    +
    +
    +

    Parameters

    +
      +
    • +
      index: number
      +
      +

      开始索引

      +
      +
    • +
    • +
      count: number
      +
      +

      删除的个数

      +
      +
    • +
    +

    Returns void

    +
  • +
+
+
+ +

select

+
    +
  • select(selector: Function): Array<T>
  • +
+
    +
  • + +
    +
    +

    获取通过选择器转换的数组

    +
    +
    +

    Parameters

    +
      +
    • +
      selector: Function
      +
      +

      选择器

      +
      +
    • +
    +

    Returns Array<T>

    +
  • +
+
+
+ +

sum

+
    +
  • sum(selector: Function): number
  • +
+
    +
  • + +
    +
    +

    求和

    +
    +
    +

    Parameters

    +
      +
    • +
      selector: Function
      +
      +

      选择器

      +
      +
    • +
    +

    Returns number

    +
  • +
+
+
+ +

where

+
    +
  • where(predicate: (c: T) => boolean): Array<T>
  • +
+
    +
  • + +
    +
    +

    筛选满足表达式的数组元素

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: (c: T) => boolean
      +
      +

      表达式

      +
      +
        +
      • +
          +
        • (c: T): boolean
        • +
        +
          +
        • +

          Parameters

          +
            +
          • +
            c: T
            +
          • +
          +

          Returns boolean

          +
        • +
        +
      • +
      +
    • +
    +

    Returns Array<T>

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Method
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_graphics_renderers_irenderable_.es.irenderable.html b/source/docs/interfaces/_graphics_renderers_irenderable_.es.irenderable.html new file mode 100644 index 00000000..749525b6 --- /dev/null +++ b/source/docs/interfaces/_graphics_renderers_irenderable_.es.irenderable.html @@ -0,0 +1,368 @@ + + + + + + IRenderable | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface IRenderable

+
+
+
+
+
+
+
+
+
+

当该接口应用到组件时,它将注册组件以场景渲染器显示 + 该接口请谨慎实现

+
+
+
+
+

Hierarchy

+
    +
  • + IRenderable +
  • +
+
+
+

Implemented by

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

bounds

+
bounds: Rectangle
+ +
+
+

对象的AABB用于相机剔除

+
+
+
+
+ +

enabled

+
enabled: boolean
+ +
+
+

这个组件是否应该被渲染

+
+
+
+
+ +

isVisible

+
isVisible: boolean
+ +
+
+

可渲染的可见性。状态的改变会调用onBecameVisible/onBecameInvisible方法

+
+
+
+
+ +

renderLayer

+
renderLayer: number
+ +
+
+

较低的渲染层在前面,较高的在后面

+
+
+
+
+
+

Methods

+
+ +

debugRender

+
    +
  • debugRender(camera: Camera): any
  • +
+ +
+
+ +

isVisibleFromCamera

+
    +
  • isVisibleFromCamera(camera: Camera): any
  • +
+
    +
  • + +
    +
    +

    如果renderableComponent的边界与camera.bounds相交 返回true + 用于处理isVisible标志的状态开关 + 在渲染方法中使用这个方法来决定是否渲染

    +
    +
    +

    Parameters

    + +

    Returns any

    +
  • +
+
+
+ +

render

+
    +
  • render(camera: Camera): any
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface with type parameter
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_tiled_itmxlayer_.es.itmxlayer.html b/source/docs/interfaces/_tiled_itmxlayer_.es.itmxlayer.html new file mode 100644 index 00000000..7c2fe8c6 --- /dev/null +++ b/source/docs/interfaces/_tiled_itmxlayer_.es.itmxlayer.html @@ -0,0 +1,235 @@ + + + + + + ITmxLayer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface ITmxLayer

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + ITmxLayer +
  • +
+
+
+

Implemented by

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

offsetX

+
offsetX: number
+ +
+
+ +

offsetY

+
offsetY: number
+ +
+
+ +

opacity

+
opacity: number
+ +
+
+ +

properties

+
properties: Map<string, string>
+ +
+
+ +

visible

+
visible: boolean
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Property
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_tiled_tiledcore_.es.itmxelement.html b/source/docs/interfaces/_tiled_tiledcore_.es.itmxelement.html new file mode 100644 index 00000000..08232a67 --- /dev/null +++ b/source/docs/interfaces/_tiled_tiledcore_.es.itmxelement.html @@ -0,0 +1,184 @@ + + + + + + ITmxElement | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface ITmxElement

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + ITmxElement +
  • +
+
+
+

Implemented by

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

name

+
name: string
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Property
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_utils_analysis_stopwatch_.stopwatch.slice.html b/source/docs/interfaces/_utils_analysis_stopwatch_.stopwatch.slice.html new file mode 100644 index 00000000..aa310edb --- /dev/null +++ b/source/docs/interfaces/_utils_analysis_stopwatch_.stopwatch.slice.html @@ -0,0 +1,235 @@ + + + + + + Slice | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface Slice

+
+
+
+
+
+
+
+
+
+

由秒表记录的单个“薄片”的测量值

+
+
+
+
+

Hierarchy

+
    +
  • + Slice +
  • +
+
+
+

Index

+
+
+
+

Properties

+ +
+
+
+
+
+

Properties

+
+ +

Readonly duration

+
duration: number
+ +
+
+

该切片的运行时间

+
+
+
+
+ +

Readonly endTime

+
endTime: number
+ +
+
+

秒表在这片片尾的时间。

+
+
+
+
+ +

Readonly startTime

+
startTime: number
+ +
+
+

秒表显示的时间在这一片开始的时候。

+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Property
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_utils_coroutines_coroutine_.es.icoroutine.html b/source/docs/interfaces/_utils_coroutines_coroutine_.es.icoroutine.html new file mode 100644 index 00000000..7b737cda --- /dev/null +++ b/source/docs/interfaces/_utils_coroutines_coroutine_.es.icoroutine.html @@ -0,0 +1,235 @@ + + + + + + ICoroutine | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface ICoroutine

+
+
+
+
+
+
+
+
+
+

startCoroutine返回的接口,提供了在执行中停止协同程序的能力

+
+
+
+
+

Hierarchy

+
    +
  • + ICoroutine +
  • +
+
+
+

Implemented by

+ +
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

setUseUnscaledDeltaTime

+
    +
  • setUseUnscaledDeltaTime(useUnscaledDeltaTime: any): ICoroutine
  • +
+ +
+
+ +

stop

+
    +
  • stop(): any
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Method
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_utils_icomparer_.es.icomparer.html b/source/docs/interfaces/_utils_icomparer_.es.icomparer.html new file mode 100644 index 00000000..b79d2830 --- /dev/null +++ b/source/docs/interfaces/_utils_icomparer_.es.icomparer.html @@ -0,0 +1,200 @@ + + + + + + IComparer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface IComparer<T>

+
+
+
+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+
    +
  • + IComparer +
  • +
+
+
+

Implemented by

+ +
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

compare

+
    +
  • compare(x: T, y: T): number
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Method
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_utils_iequalitycomparer_.es.iequalitycomparer.html b/source/docs/interfaces/_utils_iequalitycomparer_.es.iequalitycomparer.html new file mode 100644 index 00000000..8a457598 --- /dev/null +++ b/source/docs/interfaces/_utils_iequalitycomparer_.es.iequalitycomparer.html @@ -0,0 +1,192 @@ + + + + + + IEqualityComparer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface IEqualityComparer

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + IEqualityComparer +
  • +
+
+
+

Implemented by

+ +
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

equals

+
    +
  • equals(x: any, y: any): boolean
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Method
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_utils_iequatable_.es.iequatable.html b/source/docs/interfaces/_utils_iequatable_.es.iequatable.html new file mode 100644 index 00000000..d2101c53 --- /dev/null +++ b/source/docs/interfaces/_utils_iequatable_.es.iequatable.html @@ -0,0 +1,207 @@ + + + + + + IEquatable | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface IEquatable<T>

+
+
+
+
+
+
+
+
+
+

实现该接口用于判定两个对象是否相等的快速接口

+
+
+
+
+

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+

Hierarchy

+
    +
  • + IEquatable +
  • +
+
+
+

Implemented by

+ +
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

equals

+
    +
  • equals(other: T): boolean
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Method
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_utils_pool_.es.ipoolable.html b/source/docs/interfaces/_utils_pool_.es.ipoolable.html new file mode 100644 index 00000000..1099be8a --- /dev/null +++ b/source/docs/interfaces/_utils_pool_.es.ipoolable.html @@ -0,0 +1,192 @@ + + + + + + IPoolable | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface IPoolable

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + IPoolable +
  • +
+
+
+

Implemented by

+ +
+
+

Index

+
+
+
+

Methods

+ +
+
+
+
+
+

Methods

+
+ +

reset

+
    +
  • reset(): any
  • +
+
    +
  • + +
    +
    +

    重置对象以供重用。对象引用应该为空,字段可以设置为默认值

    +
    +
    +

    Returns any

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
  • Method
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/interfaces/_utils_timers_itimer_.es.itimer.html b/source/docs/interfaces/_utils_timers_itimer_.es.itimer.html new file mode 100644 index 00000000..bf249630 --- /dev/null +++ b/source/docs/interfaces/_utils_timers_itimer_.es.itimer.html @@ -0,0 +1,264 @@ + + + + + + ITimer | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Interface ITimer

+
+
+
+
+
+
+
+

Hierarchy

+
    +
  • + ITimer +
  • +
+
+
+

Implemented by

+ +
+
+

Index

+
+
+
+

Properties

+ +
+
+

Methods

+ +
+
+
+
+
+

Properties

+
+ +

context

+
context: any
+ +
+
+
+

Methods

+
+ +

getContext

+
    +
  • getContext<T>(): T
  • +
+ +
+
+ +

reset

+
    +
  • reset(): any
  • +
+ +
+
+ +

stop

+
    +
  • stop(): any
  • +
+
    +
  • + +
    +
    +

    调用stop以停止此计时器再次运行。这对非重复计时器没有影响。

    +
    +
    +

    Returns any

    +
  • +
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Interface with type parameter
  • +
  • Property
  • +
  • Method
  • +
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_astar_astargridgraph_.es.html b/source/docs/modules/_ai_pathfinding_astar_astargridgraph_.es.html new file mode 100644 index 00000000..69a40a4e --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_astar_astargridgraph_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_astar_astargridgraph_.html b/source/docs/modules/_ai_pathfinding_astar_astargridgraph_.html new file mode 100644 index 00000000..477626eb --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_astar_astargridgraph_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/AStar/AstarGridGraph" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/AStar/AstarGridGraph"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_astar_astarpathfinder_.es.html b/source/docs/modules/_ai_pathfinding_astar_astarpathfinder_.es.html new file mode 100644 index 00000000..0e7751b5 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_astar_astarpathfinder_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_astar_astarpathfinder_.html b/source/docs/modules/_ai_pathfinding_astar_astarpathfinder_.html new file mode 100644 index 00000000..86a1e7cb --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_astar_astarpathfinder_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/AStar/AStarPathfinder" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/AStar/AStarPathfinder"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_astar_iastargraph_.es.html b/source/docs/modules/_ai_pathfinding_astar_iastargraph_.es.html new file mode 100644 index 00000000..5c3a2b09 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_astar_iastargraph_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_astar_iastargraph_.html b/source/docs/modules/_ai_pathfinding_astar_iastargraph_.html new file mode 100644 index 00000000..374a7cf1 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_astar_iastargraph_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/AStar/IAstarGraph" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/AStar/IAstarGraph"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_astar_priorityqueue_.es.html b/source/docs/modules/_ai_pathfinding_astar_priorityqueue_.es.html new file mode 100644 index 00000000..c8813a36 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_astar_priorityqueue_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_astar_priorityqueue_.html b/source/docs/modules/_ai_pathfinding_astar_priorityqueue_.html new file mode 100644 index 00000000..1f344501 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_astar_priorityqueue_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/AStar/PriorityQueue" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/AStar/PriorityQueue"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_astar_priorityqueuenode_.es.html b/source/docs/modules/_ai_pathfinding_astar_priorityqueuenode_.es.html new file mode 100644 index 00000000..5e478593 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_astar_priorityqueuenode_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_astar_priorityqueuenode_.html b/source/docs/modules/_ai_pathfinding_astar_priorityqueuenode_.html new file mode 100644 index 00000000..2a090f1b --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_astar_priorityqueuenode_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/AStar/PriorityQueueNode" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/AStar/PriorityQueueNode"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_breadthfirst_breadthfirstpathfinder_.es.html b/source/docs/modules/_ai_pathfinding_breadthfirst_breadthfirstpathfinder_.es.html new file mode 100644 index 00000000..40a1d684 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_breadthfirst_breadthfirstpathfinder_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_breadthfirst_breadthfirstpathfinder_.html b/source/docs/modules/_ai_pathfinding_breadthfirst_breadthfirstpathfinder_.html new file mode 100644 index 00000000..549cb342 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_breadthfirst_breadthfirstpathfinder_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/BreadthFirst/BreadthFirstPathfinder" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/BreadthFirst/BreadthFirstPathfinder"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_breadthfirst_iunweightedgraph_.es.html b/source/docs/modules/_ai_pathfinding_breadthfirst_iunweightedgraph_.es.html new file mode 100644 index 00000000..4dbb9376 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_breadthfirst_iunweightedgraph_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_breadthfirst_iunweightedgraph_.html b/source/docs/modules/_ai_pathfinding_breadthfirst_iunweightedgraph_.html new file mode 100644 index 00000000..719f80c3 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_breadthfirst_iunweightedgraph_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/BreadthFirst/IUnweightedGraph" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/BreadthFirst/IUnweightedGraph"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_breadthfirst_unweightedgraph_.es.html b/source/docs/modules/_ai_pathfinding_breadthfirst_unweightedgraph_.es.html new file mode 100644 index 00000000..4ef46edd --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_breadthfirst_unweightedgraph_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_breadthfirst_unweightedgraph_.html b/source/docs/modules/_ai_pathfinding_breadthfirst_unweightedgraph_.html new file mode 100644 index 00000000..1adc2ce6 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_breadthfirst_unweightedgraph_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/BreadthFirst/UnweightedGraph" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/BreadthFirst/UnweightedGraph"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_breadthfirst_unweightedgridgraph_.es.html b/source/docs/modules/_ai_pathfinding_breadthfirst_unweightedgridgraph_.es.html new file mode 100644 index 00000000..915a6102 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_breadthfirst_unweightedgridgraph_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_breadthfirst_unweightedgridgraph_.html b/source/docs/modules/_ai_pathfinding_breadthfirst_unweightedgridgraph_.html new file mode 100644 index 00000000..2f903157 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_breadthfirst_unweightedgridgraph_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/BreadthFirst/UnweightedGridGraph" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/BreadthFirst/UnweightedGridGraph"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_dijkstra_iweightedgraph_.es.html b/source/docs/modules/_ai_pathfinding_dijkstra_iweightedgraph_.es.html new file mode 100644 index 00000000..4d2f5ca5 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_dijkstra_iweightedgraph_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_dijkstra_iweightedgraph_.html b/source/docs/modules/_ai_pathfinding_dijkstra_iweightedgraph_.html new file mode 100644 index 00000000..326810a2 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_dijkstra_iweightedgraph_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/Dijkstra/IWeightedGraph" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/Dijkstra/IWeightedGraph"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_dijkstra_weightedgridgraph_.es.html b/source/docs/modules/_ai_pathfinding_dijkstra_weightedgridgraph_.es.html new file mode 100644 index 00000000..b7f50ebf --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_dijkstra_weightedgridgraph_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_dijkstra_weightedgridgraph_.html b/source/docs/modules/_ai_pathfinding_dijkstra_weightedgridgraph_.html new file mode 100644 index 00000000..82587390 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_dijkstra_weightedgridgraph_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/Dijkstra/WeightedGridGraph" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/Dijkstra/WeightedGridGraph"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_dijkstra_weightedpathfinder_.es.html b/source/docs/modules/_ai_pathfinding_dijkstra_weightedpathfinder_.es.html new file mode 100644 index 00000000..3d85d1f3 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_dijkstra_weightedpathfinder_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_dijkstra_weightedpathfinder_.html b/source/docs/modules/_ai_pathfinding_dijkstra_weightedpathfinder_.html new file mode 100644 index 00000000..fd793ffd --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_dijkstra_weightedpathfinder_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/Dijkstra/WeightedPathfinder" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/Dijkstra/WeightedPathfinder"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_goap_action_.es.html b/source/docs/modules/_ai_pathfinding_goap_action_.es.html new file mode 100644 index 00000000..ea18303d --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_goap_action_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_goap_action_.html b/source/docs/modules/_ai_pathfinding_goap_action_.html new file mode 100644 index 00000000..cc567445 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_goap_action_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/GOAP/Action" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/GOAP/Action"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_goap_actionplanner_.es.html b/source/docs/modules/_ai_pathfinding_goap_actionplanner_.es.html new file mode 100644 index 00000000..93413af5 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_goap_actionplanner_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_goap_actionplanner_.html b/source/docs/modules/_ai_pathfinding_goap_actionplanner_.html new file mode 100644 index 00000000..a3a4f412 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_goap_actionplanner_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/GOAP/ActionPlanner" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/GOAP/ActionPlanner"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_goap_agent_.es.html b/source/docs/modules/_ai_pathfinding_goap_agent_.es.html new file mode 100644 index 00000000..b6da6151 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_goap_agent_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_goap_agent_.html b/source/docs/modules/_ai_pathfinding_goap_agent_.html new file mode 100644 index 00000000..0e9f265a --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_goap_agent_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/GOAP/Agent" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/GOAP/Agent"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_goap_astar_.es.html b/source/docs/modules/_ai_pathfinding_goap_astar_.es.html new file mode 100644 index 00000000..4b60b2f7 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_goap_astar_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_goap_astar_.html b/source/docs/modules/_ai_pathfinding_goap_astar_.html new file mode 100644 index 00000000..648c5fae --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_goap_astar_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/GOAP/AStar" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/GOAP/AStar"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_goap_astarstorage_.es.html b/source/docs/modules/_ai_pathfinding_goap_astarstorage_.es.html new file mode 100644 index 00000000..0d174118 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_goap_astarstorage_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_goap_astarstorage_.html b/source/docs/modules/_ai_pathfinding_goap_astarstorage_.html new file mode 100644 index 00000000..871f3833 --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_goap_astarstorage_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/GOAP/AStarStorage" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/GOAP/AStarStorage"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_goap_worldstate_.es.html b/source/docs/modules/_ai_pathfinding_goap_worldstate_.es.html new file mode 100644 index 00000000..9a9b28ec --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_goap_worldstate_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ai_pathfinding_goap_worldstate_.html b/source/docs/modules/_ai_pathfinding_goap_worldstate_.html new file mode 100644 index 00000000..105ca30f --- /dev/null +++ b/source/docs/modules/_ai_pathfinding_goap_worldstate_.html @@ -0,0 +1,130 @@ + + + + + + "AI/Pathfinding/GOAP/WorldState" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "AI/Pathfinding/GOAP/WorldState"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_debug_debug_.es.html b/source/docs/modules/_debug_debug_.es.html new file mode 100644 index 00000000..0eb41700 --- /dev/null +++ b/source/docs/modules/_debug_debug_.es.html @@ -0,0 +1,144 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_debug_debug_.html b/source/docs/modules/_debug_debug_.html new file mode 100644 index 00000000..298bea7e --- /dev/null +++ b/source/docs/modules/_debug_debug_.html @@ -0,0 +1,130 @@ + + + + + + "Debug/Debug" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Debug/Debug"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_debug_debugdefaults_.es.html b/source/docs/modules/_debug_debugdefaults_.es.html new file mode 100644 index 00000000..39bbce45 --- /dev/null +++ b/source/docs/modules/_debug_debugdefaults_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_debug_debugdefaults_.html b/source/docs/modules/_debug_debugdefaults_.html new file mode 100644 index 00000000..2e2eac5b --- /dev/null +++ b/source/docs/modules/_debug_debugdefaults_.html @@ -0,0 +1,130 @@ + + + + + + "Debug/DebugDefaults" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Debug/DebugDefaults"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_debug_debugdrawitem_.es.html b/source/docs/modules/_debug_debugdrawitem_.es.html new file mode 100644 index 00000000..f6f56178 --- /dev/null +++ b/source/docs/modules/_debug_debugdrawitem_.es.html @@ -0,0 +1,145 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_debug_debugdrawitem_.html b/source/docs/modules/_debug_debugdrawitem_.html new file mode 100644 index 00000000..9ae841b3 --- /dev/null +++ b/source/docs/modules/_debug_debugdrawitem_.html @@ -0,0 +1,130 @@ + + + + + + "Debug/DebugDrawItem" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Debug/DebugDrawItem"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_component_.es.html b/source/docs/modules/_ecs_component_.es.html new file mode 100644 index 00000000..ce01779e --- /dev/null +++ b/source/docs/modules/_ecs_component_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_component_.html b/source/docs/modules/_ecs_component_.html new file mode 100644 index 00000000..12b25f26 --- /dev/null +++ b/source/docs/modules/_ecs_component_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Component" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Component"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_camera_.es.html b/source/docs/modules/_ecs_components_camera_.es.html new file mode 100644 index 00000000..e7eb105c --- /dev/null +++ b/source/docs/modules/_ecs_components_camera_.es.html @@ -0,0 +1,145 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_camera_.html b/source/docs/modules/_ecs_components_camera_.html new file mode 100644 index 00000000..4407df7a --- /dev/null +++ b/source/docs/modules/_ecs_components_camera_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Camera" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Camera"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_camerashake_.es.html b/source/docs/modules/_ecs_components_camerashake_.es.html new file mode 100644 index 00000000..a71f0b13 --- /dev/null +++ b/source/docs/modules/_ecs_components_camerashake_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_camerashake_.html b/source/docs/modules/_ecs_components_camerashake_.html new file mode 100644 index 00000000..87689bd0 --- /dev/null +++ b/source/docs/modules/_ecs_components_camerashake_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/CameraShake" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/CameraShake"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_componentpool_.es.html b/source/docs/modules/_ecs_components_componentpool_.es.html new file mode 100644 index 00000000..4c9b05b9 --- /dev/null +++ b/source/docs/modules/_ecs_components_componentpool_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_componentpool_.html b/source/docs/modules/_ecs_components_componentpool_.html new file mode 100644 index 00000000..08f0dc3d --- /dev/null +++ b/source/docs/modules/_ecs_components_componentpool_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/ComponentPool" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/ComponentPool"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_followcamera_.es.html b/source/docs/modules/_ecs_components_followcamera_.es.html new file mode 100644 index 00000000..c85d33a0 --- /dev/null +++ b/source/docs/modules/_ecs_components_followcamera_.es.html @@ -0,0 +1,145 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_followcamera_.html b/source/docs/modules/_ecs_components_followcamera_.html new file mode 100644 index 00000000..1cdd4e59 --- /dev/null +++ b/source/docs/modules/_ecs_components_followcamera_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/FollowCamera" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/FollowCamera"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_iupdatable_.es.html b/source/docs/modules/_ecs_components_iupdatable_.es.html new file mode 100644 index 00000000..3949bc5d --- /dev/null +++ b/source/docs/modules/_ecs_components_iupdatable_.es.html @@ -0,0 +1,145 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_iupdatable_.html b/source/docs/modules/_ecs_components_iupdatable_.html new file mode 100644 index 00000000..013aeaa2 --- /dev/null +++ b/source/docs/modules/_ecs_components_iupdatable_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/IUpdatable" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/IUpdatable"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_colliders_boxcollider_.es.html b/source/docs/modules/_ecs_components_physics_colliders_boxcollider_.es.html new file mode 100644 index 00000000..668e78d8 --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_colliders_boxcollider_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_colliders_boxcollider_.html b/source/docs/modules/_ecs_components_physics_colliders_boxcollider_.html new file mode 100644 index 00000000..c9496173 --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_colliders_boxcollider_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Physics/Colliders/BoxCollider" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Physics/Colliders/BoxCollider"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_colliders_circlecollider_.es.html b/source/docs/modules/_ecs_components_physics_colliders_circlecollider_.es.html new file mode 100644 index 00000000..90ced1e9 --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_colliders_circlecollider_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_colliders_circlecollider_.html b/source/docs/modules/_ecs_components_physics_colliders_circlecollider_.html new file mode 100644 index 00000000..dbe97ba0 --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_colliders_circlecollider_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Physics/Colliders/CircleCollider" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Physics/Colliders/CircleCollider"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_colliders_collider_.es.html b/source/docs/modules/_ecs_components_physics_colliders_collider_.es.html new file mode 100644 index 00000000..1b94227c --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_colliders_collider_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_colliders_collider_.html b/source/docs/modules/_ecs_components_physics_colliders_collider_.html new file mode 100644 index 00000000..fc5aa7f5 --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_colliders_collider_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Physics/Colliders/Collider" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Physics/Colliders/Collider"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_colliders_polygoncollider_.es.html b/source/docs/modules/_ecs_components_physics_colliders_polygoncollider_.es.html new file mode 100644 index 00000000..d67223eb --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_colliders_polygoncollider_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_colliders_polygoncollider_.html b/source/docs/modules/_ecs_components_physics_colliders_polygoncollider_.html new file mode 100644 index 00000000..81192598 --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_colliders_polygoncollider_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Physics/Colliders/PolygonCollider" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Physics/Colliders/PolygonCollider"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_itriggerlistener_.es.html b/source/docs/modules/_ecs_components_physics_itriggerlistener_.es.html new file mode 100644 index 00000000..7929d37f --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_itriggerlistener_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_itriggerlistener_.html b/source/docs/modules/_ecs_components_physics_itriggerlistener_.html new file mode 100644 index 00000000..8d2fff2e --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_itriggerlistener_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Physics/ITriggerListener" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Physics/ITriggerListener"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_mover_.es.html b/source/docs/modules/_ecs_components_physics_mover_.es.html new file mode 100644 index 00000000..b043c5b1 --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_mover_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_mover_.html b/source/docs/modules/_ecs_components_physics_mover_.html new file mode 100644 index 00000000..93d205f9 --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_mover_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Physics/Mover" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Physics/Mover"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_projectilemover_.es.html b/source/docs/modules/_ecs_components_physics_projectilemover_.es.html new file mode 100644 index 00000000..f9052c0f --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_projectilemover_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_physics_projectilemover_.html b/source/docs/modules/_ecs_components_physics_projectilemover_.html new file mode 100644 index 00000000..f6dffeb1 --- /dev/null +++ b/source/docs/modules/_ecs_components_physics_projectilemover_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Physics/ProjectileMover" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Physics/ProjectileMover"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_pooledcomponent_.es.html b/source/docs/modules/_ecs_components_pooledcomponent_.es.html new file mode 100644 index 00000000..456b209b --- /dev/null +++ b/source/docs/modules/_ecs_components_pooledcomponent_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_pooledcomponent_.html b/source/docs/modules/_ecs_components_pooledcomponent_.html new file mode 100644 index 00000000..9c6bc39f --- /dev/null +++ b/source/docs/modules/_ecs_components_pooledcomponent_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/PooledComponent" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/PooledComponent"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_mesh_.es.html b/source/docs/modules/_ecs_components_renderables_mesh_.es.html new file mode 100644 index 00000000..80fbf9cf --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_mesh_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_mesh_.html b/source/docs/modules/_ecs_components_renderables_mesh_.html new file mode 100644 index 00000000..ae4b6126 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_mesh_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Renderables/Mesh" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Renderables/Mesh"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_renderablecomponent_.es.html b/source/docs/modules/_ecs_components_renderables_renderablecomponent_.es.html new file mode 100644 index 00000000..688bef58 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_renderablecomponent_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_renderablecomponent_.html b/source/docs/modules/_ecs_components_renderables_renderablecomponent_.html new file mode 100644 index 00000000..637d6de6 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_renderablecomponent_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Renderables/RenderableComponent" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Renderables/RenderableComponent"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_scrollingspriterenderer_.es.html b/source/docs/modules/_ecs_components_renderables_sprites_scrollingspriterenderer_.es.html new file mode 100644 index 00000000..1bc6f115 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_scrollingspriterenderer_.es.html @@ -0,0 +1,158 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+ +
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Variables

+ +
+
+
+
+
+

Variables

+
+ +

Bitmap

+
Bitmap: Bitmap
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_scrollingspriterenderer_.html b/source/docs/modules/_ecs_components_renderables_sprites_scrollingspriterenderer_.html new file mode 100644 index 00000000..d21c64a5 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_scrollingspriterenderer_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Renderables/Sprites/ScrollingSpriteRenderer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Renderables/Sprites/ScrollingSpriteRenderer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_sprite_.es.html b/source/docs/modules/_ecs_components_renderables_sprites_sprite_.es.html new file mode 100644 index 00000000..214c36f8 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_sprite_.es.html @@ -0,0 +1,186 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Variables

+ +
+
+
+
+
+

Variables

+
+ +

Bitmap

+
Bitmap: Bitmap
+ +
+
+ +

RenderTexture

+
RenderTexture: RenderTexture
+ +
+
+ +

SpriteSheet

+
SpriteSheet: SpriteSheet
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_sprite_.html b/source/docs/modules/_ecs_components_renderables_sprites_sprite_.html new file mode 100644 index 00000000..333d8111 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_sprite_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Renderables/Sprites/Sprite" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Renderables/Sprites/Sprite"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_spriteanimation_.es.html b/source/docs/modules/_ecs_components_renderables_sprites_spriteanimation_.es.html new file mode 100644 index 00000000..b82b8c06 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_spriteanimation_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_spriteanimation_.html b/source/docs/modules/_ecs_components_renderables_sprites_spriteanimation_.html new file mode 100644 index 00000000..9ac3e29e --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_spriteanimation_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Renderables/Sprites/SpriteAnimation" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Renderables/Sprites/SpriteAnimation"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_spriteanimator_.es.html b/source/docs/modules/_ecs_components_renderables_sprites_spriteanimator_.es.html new file mode 100644 index 00000000..3b8f0ab1 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_spriteanimator_.es.html @@ -0,0 +1,149 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_spriteanimator_.html b/source/docs/modules/_ecs_components_renderables_sprites_spriteanimator_.html new file mode 100644 index 00000000..6851b28a --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_spriteanimator_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Renderables/Sprites/SpriteAnimator" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Renderables/Sprites/SpriteAnimator"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_spriterenderer_.es.html b/source/docs/modules/_ecs_components_renderables_sprites_spriterenderer_.es.html new file mode 100644 index 00000000..3e16d36b --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_spriterenderer_.es.html @@ -0,0 +1,158 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Variables

+ +
+
+
+
+
+

Variables

+
+ +

Bitmap

+
Bitmap: Bitmap
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_spriterenderer_.html b/source/docs/modules/_ecs_components_renderables_sprites_spriterenderer_.html new file mode 100644 index 00000000..89279d57 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_spriterenderer_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Renderables/Sprites/SpriteRenderer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Renderables/Sprites/SpriteRenderer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_staticspritecontainerrenderer_.es.html b/source/docs/modules/_ecs_components_renderables_sprites_staticspritecontainerrenderer_.es.html new file mode 100644 index 00000000..c8d60d00 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_staticspritecontainerrenderer_.es.html @@ -0,0 +1,158 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+ +
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Variables

+ +
+
+
+
+
+

Variables

+
+ +

Bitmap

+
Bitmap: Bitmap
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_staticspritecontainerrenderer_.html b/source/docs/modules/_ecs_components_renderables_sprites_staticspritecontainerrenderer_.html new file mode 100644 index 00000000..59dee6b7 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_staticspritecontainerrenderer_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Renderables/Sprites/StaticSpriteContainerRenderer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Renderables/Sprites/StaticSpriteContainerRenderer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_tiledmaprenderer_.es.html b/source/docs/modules/_ecs_components_renderables_sprites_tiledmaprenderer_.es.html new file mode 100644 index 00000000..0dcf83e8 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_tiledmaprenderer_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_tiledmaprenderer_.html b/source/docs/modules/_ecs_components_renderables_sprites_tiledmaprenderer_.html new file mode 100644 index 00000000..178dfd47 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_tiledmaprenderer_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Renderables/Sprites/TiledMapRenderer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Renderables/Sprites/TiledMapRenderer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_tiledspriterenderer_.es.html b/source/docs/modules/_ecs_components_renderables_sprites_tiledspriterenderer_.es.html new file mode 100644 index 00000000..d97a6f10 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_tiledspriterenderer_.es.html @@ -0,0 +1,172 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+ +
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Variables

+ +
+
+
+
+
+

Variables

+
+ +

Bitmap

+
Bitmap: Bitmap
+ +
+
+ +

RenderTexture

+
RenderTexture: RenderTexture
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_renderables_sprites_tiledspriterenderer_.html b/source/docs/modules/_ecs_components_renderables_sprites_tiledspriterenderer_.html new file mode 100644 index 00000000..7ac9fd85 --- /dev/null +++ b/source/docs/modules/_ecs_components_renderables_sprites_tiledspriterenderer_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/Renderables/Sprites/TiledSpriteRenderer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/Renderables/Sprites/TiledSpriteRenderer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_scenecomponent_.es.html b/source/docs/modules/_ecs_components_scenecomponent_.es.html new file mode 100644 index 00000000..811f6c9e --- /dev/null +++ b/source/docs/modules/_ecs_components_scenecomponent_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_scenecomponent_.html b/source/docs/modules/_ecs_components_scenecomponent_.html new file mode 100644 index 00000000..bb4f61c1 --- /dev/null +++ b/source/docs/modules/_ecs_components_scenecomponent_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Components/SceneComponent" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/SceneComponent"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_components_tiledmapmover_.html b/source/docs/modules/_ecs_components_tiledmapmover_.html new file mode 100644 index 00000000..eb9b22b6 --- /dev/null +++ b/source/docs/modules/_ecs_components_tiledmapmover_.html @@ -0,0 +1,112 @@ + + + + + + "ECS/Components/TiledMapMover" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Components/TiledMapMover"

+
+
+
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_core_.es.html b/source/docs/modules/_ecs_core_.es.html new file mode 100644 index 00000000..32d56824 --- /dev/null +++ b/source/docs/modules/_ecs_core_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_core_.html b/source/docs/modules/_ecs_core_.html new file mode 100644 index 00000000..8d4d37dd --- /dev/null +++ b/source/docs/modules/_ecs_core_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Core" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Core"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_coreevents_.es.html b/source/docs/modules/_ecs_coreevents_.es.html new file mode 100644 index 00000000..2577874d --- /dev/null +++ b/source/docs/modules/_ecs_coreevents_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_coreevents_.html b/source/docs/modules/_ecs_coreevents_.html new file mode 100644 index 00000000..86780544 --- /dev/null +++ b/source/docs/modules/_ecs_coreevents_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/CoreEvents" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/CoreEvents"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_entity_.es.html b/source/docs/modules/_ecs_entity_.es.html new file mode 100644 index 00000000..39dc6a81 --- /dev/null +++ b/source/docs/modules/_ecs_entity_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_entity_.html b/source/docs/modules/_ecs_entity_.html new file mode 100644 index 00000000..e0a275da --- /dev/null +++ b/source/docs/modules/_ecs_entity_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Entity" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Entity"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_scene_.es.html b/source/docs/modules/_ecs_scene_.es.html new file mode 100644 index 00000000..759a9ecc --- /dev/null +++ b/source/docs/modules/_ecs_scene_.es.html @@ -0,0 +1,158 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Variables

+ +
+
+
+
+
+

Variables

+
+ +

Bitmap

+
Bitmap: Bitmap
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_scene_.html b/source/docs/modules/_ecs_scene_.html new file mode 100644 index 00000000..00d42657 --- /dev/null +++ b/source/docs/modules/_ecs_scene_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Scene" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Scene"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_systems_entityprocessingsystem_.es.html b/source/docs/modules/_ecs_systems_entityprocessingsystem_.es.html new file mode 100644 index 00000000..8d01c972 --- /dev/null +++ b/source/docs/modules/_ecs_systems_entityprocessingsystem_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_systems_entityprocessingsystem_.html b/source/docs/modules/_ecs_systems_entityprocessingsystem_.html new file mode 100644 index 00000000..51f32338 --- /dev/null +++ b/source/docs/modules/_ecs_systems_entityprocessingsystem_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Systems/EntityProcessingSystem" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Systems/EntityProcessingSystem"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_systems_entitysystem_.es.html b/source/docs/modules/_ecs_systems_entitysystem_.es.html new file mode 100644 index 00000000..129aca0f --- /dev/null +++ b/source/docs/modules/_ecs_systems_entitysystem_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_systems_entitysystem_.html b/source/docs/modules/_ecs_systems_entitysystem_.html new file mode 100644 index 00000000..96dcaac4 --- /dev/null +++ b/source/docs/modules/_ecs_systems_entitysystem_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Systems/EntitySystem" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Systems/EntitySystem"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_systems_passivesystem_.es.html b/source/docs/modules/_ecs_systems_passivesystem_.es.html new file mode 100644 index 00000000..ef7fc359 --- /dev/null +++ b/source/docs/modules/_ecs_systems_passivesystem_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_systems_passivesystem_.html b/source/docs/modules/_ecs_systems_passivesystem_.html new file mode 100644 index 00000000..bec7620a --- /dev/null +++ b/source/docs/modules/_ecs_systems_passivesystem_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Systems/PassiveSystem" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Systems/PassiveSystem"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_systems_processingsystem_.es.html b/source/docs/modules/_ecs_systems_processingsystem_.es.html new file mode 100644 index 00000000..840347cd --- /dev/null +++ b/source/docs/modules/_ecs_systems_processingsystem_.es.html @@ -0,0 +1,143 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+
+
+

用于协调其他系统的通用系统基类

+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_systems_processingsystem_.html b/source/docs/modules/_ecs_systems_processingsystem_.html new file mode 100644 index 00000000..d1f8d2c3 --- /dev/null +++ b/source/docs/modules/_ecs_systems_processingsystem_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Systems/ProcessingSystem" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Systems/ProcessingSystem"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_transform_.es.html b/source/docs/modules/_ecs_transform_.es.html new file mode 100644 index 00000000..8677f1c5 --- /dev/null +++ b/source/docs/modules/_ecs_transform_.es.html @@ -0,0 +1,170 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+

Classes

+ +
+
+

Variables

+ +
+
+
+
+
+

Variables

+
+ +

HashObject

+
HashObject: HashObject
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_transform_.html b/source/docs/modules/_ecs_transform_.html new file mode 100644 index 00000000..b59067df --- /dev/null +++ b/source/docs/modules/_ecs_transform_.html @@ -0,0 +1,134 @@ + + + + + + "ECS/Transform" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Transform"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_transform_.transform.html b/source/docs/modules/_ecs_transform_.transform.html new file mode 100644 index 00000000..a771704a --- /dev/null +++ b/source/docs/modules/_ecs_transform_.transform.html @@ -0,0 +1,139 @@ + + + + + + transform | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace transform

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_bitset_.es.html b/source/docs/modules/_ecs_utils_bitset_.es.html new file mode 100644 index 00000000..32ce8a11 --- /dev/null +++ b/source/docs/modules/_ecs_utils_bitset_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_bitset_.html b/source/docs/modules/_ecs_utils_bitset_.html new file mode 100644 index 00000000..52d4e549 --- /dev/null +++ b/source/docs/modules/_ecs_utils_bitset_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Utils/BitSet" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/BitSet"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_componentlist_.es.html b/source/docs/modules/_ecs_utils_componentlist_.es.html new file mode 100644 index 00000000..75fb0c48 --- /dev/null +++ b/source/docs/modules/_ecs_utils_componentlist_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_componentlist_.html b/source/docs/modules/_ecs_utils_componentlist_.html new file mode 100644 index 00000000..f16bc01c --- /dev/null +++ b/source/docs/modules/_ecs_utils_componentlist_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Utils/ComponentList" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/ComponentList"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_componenttypemanager_.es.html b/source/docs/modules/_ecs_utils_componenttypemanager_.es.html new file mode 100644 index 00000000..3f54f8f9 --- /dev/null +++ b/source/docs/modules/_ecs_utils_componenttypemanager_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_componenttypemanager_.html b/source/docs/modules/_ecs_utils_componenttypemanager_.html new file mode 100644 index 00000000..1e595c16 --- /dev/null +++ b/source/docs/modules/_ecs_utils_componenttypemanager_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Utils/ComponentTypeManager" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/ComponentTypeManager"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_entitylist_.es.html b/source/docs/modules/_ecs_utils_entitylist_.es.html new file mode 100644 index 00000000..166d7599 --- /dev/null +++ b/source/docs/modules/_ecs_utils_entitylist_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_entitylist_.html b/source/docs/modules/_ecs_utils_entitylist_.html new file mode 100644 index 00000000..c3745d7b --- /dev/null +++ b/source/docs/modules/_ecs_utils_entitylist_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Utils/EntityList" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/EntityList"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_entityprocessorlist_.es.html b/source/docs/modules/_ecs_utils_entityprocessorlist_.es.html new file mode 100644 index 00000000..4351c129 --- /dev/null +++ b/source/docs/modules/_ecs_utils_entityprocessorlist_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_entityprocessorlist_.html b/source/docs/modules/_ecs_utils_entityprocessorlist_.html new file mode 100644 index 00000000..68a59f59 --- /dev/null +++ b/source/docs/modules/_ecs_utils_entityprocessorlist_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Utils/EntityProcessorList" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/EntityProcessorList"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_fastdirectory_.es.html b/source/docs/modules/_ecs_utils_fastdirectory_.es.html new file mode 100644 index 00000000..e9fa073b --- /dev/null +++ b/source/docs/modules/_ecs_utils_fastdirectory_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_fastdirectory_.html b/source/docs/modules/_ecs_utils_fastdirectory_.html new file mode 100644 index 00000000..b7ac8bcb --- /dev/null +++ b/source/docs/modules/_ecs_utils_fastdirectory_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Utils/FastDirectory" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/FastDirectory"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_fastlist_.es.html b/source/docs/modules/_ecs_utils_fastlist_.es.html new file mode 100644 index 00000000..b641af9c --- /dev/null +++ b/source/docs/modules/_ecs_utils_fastlist_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_fastlist_.html b/source/docs/modules/_ecs_utils_fastlist_.html new file mode 100644 index 00000000..1aecc46a --- /dev/null +++ b/source/docs/modules/_ecs_utils_fastlist_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Utils/FastList" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/FastList"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_hashhelper_.es.html b/source/docs/modules/_ecs_utils_hashhelper_.es.html new file mode 100644 index 00000000..a46cdaef --- /dev/null +++ b/source/docs/modules/_ecs_utils_hashhelper_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_hashhelper_.html b/source/docs/modules/_ecs_utils_hashhelper_.html new file mode 100644 index 00000000..c541e1e3 --- /dev/null +++ b/source/docs/modules/_ecs_utils_hashhelper_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Utils/HashHelper" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/HashHelper"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_matcher_.es.html b/source/docs/modules/_ecs_utils_matcher_.es.html new file mode 100644 index 00000000..afdfe095 --- /dev/null +++ b/source/docs/modules/_ecs_utils_matcher_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_matcher_.html b/source/docs/modules/_ecs_utils_matcher_.html new file mode 100644 index 00000000..39a0dadf --- /dev/null +++ b/source/docs/modules/_ecs_utils_matcher_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Utils/Matcher" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/Matcher"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_objectutils_.html b/source/docs/modules/_ecs_utils_objectutils_.html new file mode 100644 index 00000000..202d8f53 --- /dev/null +++ b/source/docs/modules/_ecs_utils_objectutils_.html @@ -0,0 +1,128 @@ + + + + + + "ECS/Utils/ObjectUtils" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/ObjectUtils"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_renderablecomponentlist_.es.html b/source/docs/modules/_ecs_utils_renderablecomponentlist_.es.html new file mode 100644 index 00000000..ae05d428 --- /dev/null +++ b/source/docs/modules/_ecs_utils_renderablecomponentlist_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_renderablecomponentlist_.html b/source/docs/modules/_ecs_utils_renderablecomponentlist_.html new file mode 100644 index 00000000..ebd976eb --- /dev/null +++ b/source/docs/modules/_ecs_utils_renderablecomponentlist_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Utils/RenderableComponentList" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/RenderableComponentList"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_stringutils_.html b/source/docs/modules/_ecs_utils_stringutils_.html new file mode 100644 index 00000000..23d967ac --- /dev/null +++ b/source/docs/modules/_ecs_utils_stringutils_.html @@ -0,0 +1,128 @@ + + + + + + "ECS/Utils/StringUtils" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/StringUtils"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_textureutils_.es.html b/source/docs/modules/_ecs_utils_textureutils_.es.html new file mode 100644 index 00000000..b646daba --- /dev/null +++ b/source/docs/modules/_ecs_utils_textureutils_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_textureutils_.html b/source/docs/modules/_ecs_utils_textureutils_.html new file mode 100644 index 00000000..752e5de0 --- /dev/null +++ b/source/docs/modules/_ecs_utils_textureutils_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Utils/TextureUtils" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/TextureUtils"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_time_.es.html b/source/docs/modules/_ecs_utils_time_.es.html new file mode 100644 index 00000000..03f9684b --- /dev/null +++ b/source/docs/modules/_ecs_utils_time_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_time_.html b/source/docs/modules/_ecs_utils_time_.html new file mode 100644 index 00000000..d09d3001 --- /dev/null +++ b/source/docs/modules/_ecs_utils_time_.html @@ -0,0 +1,130 @@ + + + + + + "ECS/Utils/Time" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/Time"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_ecs_utils_timeutils_.html b/source/docs/modules/_ecs_utils_timeutils_.html new file mode 100644 index 00000000..79d5962f --- /dev/null +++ b/source/docs/modules/_ecs_utils_timeutils_.html @@ -0,0 +1,128 @@ + + + + + + "ECS/Utils/TimeUtils" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "ECS/Utils/TimeUtils"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_extension_.html b/source/docs/modules/_extension_.html new file mode 100644 index 00000000..7c6c73a0 --- /dev/null +++ b/source/docs/modules/_extension_.html @@ -0,0 +1,128 @@ + + + + + + "Extension" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Extension"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_effects_gaussianblureffect_.es.html b/source/docs/modules/_graphics_effects_gaussianblureffect_.es.html new file mode 100644 index 00000000..810796fb --- /dev/null +++ b/source/docs/modules/_graphics_effects_gaussianblureffect_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_effects_gaussianblureffect_.html b/source/docs/modules/_graphics_effects_gaussianblureffect_.html new file mode 100644 index 00000000..06f60a09 --- /dev/null +++ b/source/docs/modules/_graphics_effects_gaussianblureffect_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Effects/GaussianBlurEffect" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Effects/GaussianBlurEffect"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_effects_polygonlighteffect_.es.html b/source/docs/modules/_graphics_effects_polygonlighteffect_.es.html new file mode 100644 index 00000000..83bac1ea --- /dev/null +++ b/source/docs/modules/_graphics_effects_polygonlighteffect_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_effects_polygonlighteffect_.html b/source/docs/modules/_graphics_effects_polygonlighteffect_.html new file mode 100644 index 00000000..4e80271a --- /dev/null +++ b/source/docs/modules/_graphics_effects_polygonlighteffect_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Effects/PolygonLightEffect" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Effects/PolygonLightEffect"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_graphics_.es.html b/source/docs/modules/_graphics_graphics_.es.html new file mode 100644 index 00000000..55d265d3 --- /dev/null +++ b/source/docs/modules/_graphics_graphics_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_graphics_.html b/source/docs/modules/_graphics_graphics_.html new file mode 100644 index 00000000..94a0eb00 --- /dev/null +++ b/source/docs/modules/_graphics_graphics_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Graphics" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Graphics"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_graphicscapabilities_.es.html b/source/docs/modules/_graphics_graphicscapabilities_.es.html new file mode 100644 index 00000000..89ced873 --- /dev/null +++ b/source/docs/modules/_graphics_graphicscapabilities_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_graphicscapabilities_.html b/source/docs/modules/_graphics_graphicscapabilities_.html new file mode 100644 index 00000000..104d6d4f --- /dev/null +++ b/source/docs/modules/_graphics_graphicscapabilities_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/GraphicsCapabilities" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/GraphicsCapabilities"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_graphicsdevice_.es.html b/source/docs/modules/_graphics_graphicsdevice_.es.html new file mode 100644 index 00000000..144bf42e --- /dev/null +++ b/source/docs/modules/_graphics_graphicsdevice_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_graphicsdevice_.html b/source/docs/modules/_graphics_graphicsdevice_.html new file mode 100644 index 00000000..673f3c34 --- /dev/null +++ b/source/docs/modules/_graphics_graphicsdevice_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/GraphicsDevice" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/GraphicsDevice"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_postprocessing_postprocessor_.es.html b/source/docs/modules/_graphics_postprocessing_postprocessor_.es.html new file mode 100644 index 00000000..6e5b6d4b --- /dev/null +++ b/source/docs/modules/_graphics_postprocessing_postprocessor_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_postprocessing_postprocessor_.html b/source/docs/modules/_graphics_postprocessing_postprocessor_.html new file mode 100644 index 00000000..e339dc9e --- /dev/null +++ b/source/docs/modules/_graphics_postprocessing_postprocessor_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/PostProcessing/PostProcessor" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/PostProcessing/PostProcessor"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_postprocessing_postprocessors_gaussianblurpostprocessor_.es.html b/source/docs/modules/_graphics_postprocessing_postprocessors_gaussianblurpostprocessor_.es.html new file mode 100644 index 00000000..09c904f6 --- /dev/null +++ b/source/docs/modules/_graphics_postprocessing_postprocessors_gaussianblurpostprocessor_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+ +
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_postprocessing_postprocessors_gaussianblurpostprocessor_.html b/source/docs/modules/_graphics_postprocessing_postprocessors_gaussianblurpostprocessor_.html new file mode 100644 index 00000000..3194fdba --- /dev/null +++ b/source/docs/modules/_graphics_postprocessing_postprocessors_gaussianblurpostprocessor_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/PostProcessing/PostProcessors/GaussianBlurPostProcessor" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/PostProcessing/PostProcessors/GaussianBlurPostProcessor"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_renderers_defaultrenderer_.es.html b/source/docs/modules/_graphics_renderers_defaultrenderer_.es.html new file mode 100644 index 00000000..032b1029 --- /dev/null +++ b/source/docs/modules/_graphics_renderers_defaultrenderer_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_renderers_defaultrenderer_.html b/source/docs/modules/_graphics_renderers_defaultrenderer_.html new file mode 100644 index 00000000..e27d32f7 --- /dev/null +++ b/source/docs/modules/_graphics_renderers_defaultrenderer_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Renderers/DefaultRenderer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Renderers/DefaultRenderer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_renderers_irenderable_.es.html b/source/docs/modules/_graphics_renderers_irenderable_.es.html new file mode 100644 index 00000000..4472a6aa --- /dev/null +++ b/source/docs/modules/_graphics_renderers_irenderable_.es.html @@ -0,0 +1,145 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_renderers_irenderable_.html b/source/docs/modules/_graphics_renderers_irenderable_.html new file mode 100644 index 00000000..d75a0e50 --- /dev/null +++ b/source/docs/modules/_graphics_renderers_irenderable_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Renderers/IRenderable" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Renderers/IRenderable"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_renderers_polygonlight_polylight_.es.html b/source/docs/modules/_graphics_renderers_polygonlight_polylight_.es.html new file mode 100644 index 00000000..a9717e5c --- /dev/null +++ b/source/docs/modules/_graphics_renderers_polygonlight_polylight_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_renderers_polygonlight_polylight_.html b/source/docs/modules/_graphics_renderers_polygonlight_polylight_.html new file mode 100644 index 00000000..001bea21 --- /dev/null +++ b/source/docs/modules/_graphics_renderers_polygonlight_polylight_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Renderers/PolygonLight/PolyLight" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Renderers/PolygonLight/PolyLight"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_renderers_renderer_.es.html b/source/docs/modules/_graphics_renderers_renderer_.es.html new file mode 100644 index 00000000..4f9fcb3b --- /dev/null +++ b/source/docs/modules/_graphics_renderers_renderer_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_renderers_renderer_.html b/source/docs/modules/_graphics_renderers_renderer_.html new file mode 100644 index 00000000..8a8f9b47 --- /dev/null +++ b/source/docs/modules/_graphics_renderers_renderer_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Renderers/Renderer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Renderers/Renderer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_renderers_renderlayerexcluderenderer_.es.html b/source/docs/modules/_graphics_renderers_renderlayerexcluderenderer_.es.html new file mode 100644 index 00000000..fa6cfdd2 --- /dev/null +++ b/source/docs/modules/_graphics_renderers_renderlayerexcluderenderer_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_renderers_renderlayerexcluderenderer_.html b/source/docs/modules/_graphics_renderers_renderlayerexcluderenderer_.html new file mode 100644 index 00000000..84784748 --- /dev/null +++ b/source/docs/modules/_graphics_renderers_renderlayerexcluderenderer_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Renderers/RenderLayerExcludeRenderer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Renderers/RenderLayerExcludeRenderer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_renderers_screenspacerenderer_.es.html b/source/docs/modules/_graphics_renderers_screenspacerenderer_.es.html new file mode 100644 index 00000000..5a156456 --- /dev/null +++ b/source/docs/modules/_graphics_renderers_screenspacerenderer_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_renderers_screenspacerenderer_.html b/source/docs/modules/_graphics_renderers_screenspacerenderer_.html new file mode 100644 index 00000000..59accea7 --- /dev/null +++ b/source/docs/modules/_graphics_renderers_screenspacerenderer_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Renderers/ScreenSpaceRenderer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Renderers/ScreenSpaceRenderer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_textures_gaussianblur_.es.html b/source/docs/modules/_graphics_textures_gaussianblur_.es.html new file mode 100644 index 00000000..e777fd2d --- /dev/null +++ b/source/docs/modules/_graphics_textures_gaussianblur_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_textures_gaussianblur_.html b/source/docs/modules/_graphics_textures_gaussianblur_.html new file mode 100644 index 00000000..6d1180ca --- /dev/null +++ b/source/docs/modules/_graphics_textures_gaussianblur_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Textures/GaussianBlur" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Textures/GaussianBlur"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_transitions_fadetransition_.es.html b/source/docs/modules/_graphics_transitions_fadetransition_.es.html new file mode 100644 index 00000000..6f37e287 --- /dev/null +++ b/source/docs/modules/_graphics_transitions_fadetransition_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_transitions_fadetransition_.html b/source/docs/modules/_graphics_transitions_fadetransition_.html new file mode 100644 index 00000000..3623dd65 --- /dev/null +++ b/source/docs/modules/_graphics_transitions_fadetransition_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Transitions/FadeTransition" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Transitions/FadeTransition"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_transitions_scenetransition_.es.html b/source/docs/modules/_graphics_transitions_scenetransition_.es.html new file mode 100644 index 00000000..6b451eec --- /dev/null +++ b/source/docs/modules/_graphics_transitions_scenetransition_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_transitions_scenetransition_.html b/source/docs/modules/_graphics_transitions_scenetransition_.html new file mode 100644 index 00000000..725e16c0 --- /dev/null +++ b/source/docs/modules/_graphics_transitions_scenetransition_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Transitions/SceneTransition" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Transitions/SceneTransition"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_transitions_windtransition_.es.html b/source/docs/modules/_graphics_transitions_windtransition_.es.html new file mode 100644 index 00000000..ce397afd --- /dev/null +++ b/source/docs/modules/_graphics_transitions_windtransition_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_transitions_windtransition_.html b/source/docs/modules/_graphics_transitions_windtransition_.html new file mode 100644 index 00000000..e882c38e --- /dev/null +++ b/source/docs/modules/_graphics_transitions_windtransition_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Transitions/WindTransition" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Transitions/WindTransition"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_viewport_.es.html b/source/docs/modules/_graphics_viewport_.es.html new file mode 100644 index 00000000..d0f26b65 --- /dev/null +++ b/source/docs/modules/_graphics_viewport_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_graphics_viewport_.html b/source/docs/modules/_graphics_viewport_.html new file mode 100644 index 00000000..c4bae65c --- /dev/null +++ b/source/docs/modules/_graphics_viewport_.html @@ -0,0 +1,130 @@ + + + + + + "Graphics/Viewport" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Graphics/Viewport"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_bezier_.es.html b/source/docs/modules/_math_bezier_.es.html new file mode 100644 index 00000000..72cef947 --- /dev/null +++ b/source/docs/modules/_math_bezier_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_bezier_.html b/source/docs/modules/_math_bezier_.html new file mode 100644 index 00000000..4baaf5ee --- /dev/null +++ b/source/docs/modules/_math_bezier_.html @@ -0,0 +1,130 @@ + + + + + + "Math/Bezier" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Math/Bezier"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_flags_.es.html b/source/docs/modules/_math_flags_.es.html new file mode 100644 index 00000000..292e45d3 --- /dev/null +++ b/source/docs/modules/_math_flags_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_flags_.html b/source/docs/modules/_math_flags_.html new file mode 100644 index 00000000..ff035539 --- /dev/null +++ b/source/docs/modules/_math_flags_.html @@ -0,0 +1,130 @@ + + + + + + "Math/Flags" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Math/Flags"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_mathhelper_.es.html b/source/docs/modules/_math_mathhelper_.es.html new file mode 100644 index 00000000..5afba3be --- /dev/null +++ b/source/docs/modules/_math_mathhelper_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_mathhelper_.html b/source/docs/modules/_math_mathhelper_.html new file mode 100644 index 00000000..542abda5 --- /dev/null +++ b/source/docs/modules/_math_mathhelper_.html @@ -0,0 +1,130 @@ + + + + + + "Math/MathHelper" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Math/MathHelper"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_matrix2d_.es.html b/source/docs/modules/_math_matrix2d_.es.html new file mode 100644 index 00000000..d07aec29 --- /dev/null +++ b/source/docs/modules/_math_matrix2d_.es.html @@ -0,0 +1,158 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Variables

+ +
+
+
+
+
+

Variables

+
+ +

matrixPool

+
matrixPool: any[] = []
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_matrix2d_.html b/source/docs/modules/_math_matrix2d_.html new file mode 100644 index 00000000..0ad4c658 --- /dev/null +++ b/source/docs/modules/_math_matrix2d_.html @@ -0,0 +1,130 @@ + + + + + + "Math/Matrix2D" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Math/Matrix2D"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_rectangle_.es.html b/source/docs/modules/_math_rectangle_.es.html new file mode 100644 index 00000000..82387d51 --- /dev/null +++ b/source/docs/modules/_math_rectangle_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_rectangle_.html b/source/docs/modules/_math_rectangle_.html new file mode 100644 index 00000000..819c48d1 --- /dev/null +++ b/source/docs/modules/_math_rectangle_.html @@ -0,0 +1,130 @@ + + + + + + "Math/Rectangle" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Math/Rectangle"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_subpixelfloat_.es.html b/source/docs/modules/_math_subpixelfloat_.es.html new file mode 100644 index 00000000..36dbd916 --- /dev/null +++ b/source/docs/modules/_math_subpixelfloat_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_subpixelfloat_.html b/source/docs/modules/_math_subpixelfloat_.html new file mode 100644 index 00000000..246d87a2 --- /dev/null +++ b/source/docs/modules/_math_subpixelfloat_.html @@ -0,0 +1,130 @@ + + + + + + "Math/SubpixelFloat" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Math/SubpixelFloat"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_subpixelvector2_.es.html b/source/docs/modules/_math_subpixelvector2_.es.html new file mode 100644 index 00000000..cb45b27d --- /dev/null +++ b/source/docs/modules/_math_subpixelvector2_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_subpixelvector2_.html b/source/docs/modules/_math_subpixelvector2_.html new file mode 100644 index 00000000..d2bd0bdc --- /dev/null +++ b/source/docs/modules/_math_subpixelvector2_.html @@ -0,0 +1,130 @@ + + + + + + "Math/SubpixelVector2" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Math/SubpixelVector2"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_vector2_.es.html b/source/docs/modules/_math_vector2_.es.html new file mode 100644 index 00000000..5fae343e --- /dev/null +++ b/source/docs/modules/_math_vector2_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_vector2_.html b/source/docs/modules/_math_vector2_.html new file mode 100644 index 00000000..951663d5 --- /dev/null +++ b/source/docs/modules/_math_vector2_.html @@ -0,0 +1,130 @@ + + + + + + "Math/Vector2" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Math/Vector2"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_vector3_.es.html b/source/docs/modules/_math_vector3_.es.html new file mode 100644 index 00000000..283be528 --- /dev/null +++ b/source/docs/modules/_math_vector3_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_math_vector3_.html b/source/docs/modules/_math_vector3_.html new file mode 100644 index 00000000..a6af78bb --- /dev/null +++ b/source/docs/modules/_math_vector3_.html @@ -0,0 +1,130 @@ + + + + + + "Math/Vector3" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Math/Vector3"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_collidertriggerhelper_.es.html b/source/docs/modules/_physics_collidertriggerhelper_.es.html new file mode 100644 index 00000000..bdde101c --- /dev/null +++ b/source/docs/modules/_physics_collidertriggerhelper_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_collidertriggerhelper_.html b/source/docs/modules/_physics_collidertriggerhelper_.html new file mode 100644 index 00000000..23c2849a --- /dev/null +++ b/source/docs/modules/_physics_collidertriggerhelper_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/ColliderTriggerHelper" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/ColliderTriggerHelper"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_collision_.es.html b/source/docs/modules/_physics_collision_.es.html new file mode 100644 index 00000000..8f82d4f9 --- /dev/null +++ b/source/docs/modules/_physics_collision_.es.html @@ -0,0 +1,145 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_collision_.html b/source/docs/modules/_physics_collision_.html new file mode 100644 index 00000000..bddd4c3d --- /dev/null +++ b/source/docs/modules/_physics_collision_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Collision" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Collision"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_physics_.es.html b/source/docs/modules/_physics_physics_.es.html new file mode 100644 index 00000000..c814e7f8 --- /dev/null +++ b/source/docs/modules/_physics_physics_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_physics_.html b/source/docs/modules/_physics_physics_.html new file mode 100644 index 00000000..26024ca8 --- /dev/null +++ b/source/docs/modules/_physics_physics_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Physics" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Physics"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_ray2d_.es.html b/source/docs/modules/_physics_ray2d_.es.html new file mode 100644 index 00000000..a14639a9 --- /dev/null +++ b/source/docs/modules/_physics_ray2d_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_ray2d_.html b/source/docs/modules/_physics_ray2d_.html new file mode 100644 index 00000000..fa455844 --- /dev/null +++ b/source/docs/modules/_physics_ray2d_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Ray2D" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Ray2D"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_raycasthit_.es.html b/source/docs/modules/_physics_raycasthit_.es.html new file mode 100644 index 00000000..7e36e651 --- /dev/null +++ b/source/docs/modules/_physics_raycasthit_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_raycasthit_.html b/source/docs/modules/_physics_raycasthit_.html new file mode 100644 index 00000000..bbdf8432 --- /dev/null +++ b/source/docs/modules/_physics_raycasthit_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/RaycastHit" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/RaycastHit"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_box_.es.html b/source/docs/modules/_physics_shapes_box_.es.html new file mode 100644 index 00000000..b441bc97 --- /dev/null +++ b/source/docs/modules/_physics_shapes_box_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_box_.html b/source/docs/modules/_physics_shapes_box_.html new file mode 100644 index 00000000..82ad1f1a --- /dev/null +++ b/source/docs/modules/_physics_shapes_box_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Shapes/Box" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Shapes/Box"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_circle_.es.html b/source/docs/modules/_physics_shapes_circle_.es.html new file mode 100644 index 00000000..06baf9a3 --- /dev/null +++ b/source/docs/modules/_physics_shapes_circle_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_circle_.html b/source/docs/modules/_physics_shapes_circle_.html new file mode 100644 index 00000000..ce3077b4 --- /dev/null +++ b/source/docs/modules/_physics_shapes_circle_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Shapes/Circle" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Shapes/Circle"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_collisionresult_.es.html b/source/docs/modules/_physics_shapes_collisionresult_.es.html new file mode 100644 index 00000000..749adaca --- /dev/null +++ b/source/docs/modules/_physics_shapes_collisionresult_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_collisionresult_.html b/source/docs/modules/_physics_shapes_collisionresult_.html new file mode 100644 index 00000000..2d01e186 --- /dev/null +++ b/source/docs/modules/_physics_shapes_collisionresult_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Shapes/CollisionResult" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Shapes/CollisionResult"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_polygon_.es.html b/source/docs/modules/_physics_shapes_polygon_.es.html new file mode 100644 index 00000000..cb6d7f6e --- /dev/null +++ b/source/docs/modules/_physics_shapes_polygon_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_polygon_.html b/source/docs/modules/_physics_shapes_polygon_.html new file mode 100644 index 00000000..d551987d --- /dev/null +++ b/source/docs/modules/_physics_shapes_polygon_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Shapes/Polygon" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Shapes/Polygon"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_realtimecollisions_.es.html b/source/docs/modules/_physics_shapes_realtimecollisions_.es.html new file mode 100644 index 00000000..cf10adfc --- /dev/null +++ b/source/docs/modules/_physics_shapes_realtimecollisions_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_realtimecollisions_.html b/source/docs/modules/_physics_shapes_realtimecollisions_.html new file mode 100644 index 00000000..a5774277 --- /dev/null +++ b/source/docs/modules/_physics_shapes_realtimecollisions_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Shapes/RealtimeCollisions" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Shapes/RealtimeCollisions"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_shape_.es.html b/source/docs/modules/_physics_shapes_shape_.es.html new file mode 100644 index 00000000..6d08f760 --- /dev/null +++ b/source/docs/modules/_physics_shapes_shape_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_shape_.html b/source/docs/modules/_physics_shapes_shape_.html new file mode 100644 index 00000000..4ddc8bf4 --- /dev/null +++ b/source/docs/modules/_physics_shapes_shape_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Shapes/Shape" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Shapes/Shape"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_shapecollisions_shapecollisions_.es.html b/source/docs/modules/_physics_shapes_shapecollisions_shapecollisions_.es.html new file mode 100644 index 00000000..9a302c49 --- /dev/null +++ b/source/docs/modules/_physics_shapes_shapecollisions_shapecollisions_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_shapes_shapecollisions_shapecollisions_.html b/source/docs/modules/_physics_shapes_shapecollisions_shapecollisions_.html new file mode 100644 index 00000000..e1a6979c --- /dev/null +++ b/source/docs/modules/_physics_shapes_shapecollisions_shapecollisions_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Shapes/ShapeCollisions/ShapeCollisions" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Shapes/ShapeCollisions/ShapeCollisions"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_spatialhash_.es.html b/source/docs/modules/_physics_spatialhash_.es.html new file mode 100644 index 00000000..15a3f718 --- /dev/null +++ b/source/docs/modules/_physics_spatialhash_.es.html @@ -0,0 +1,144 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_spatialhash_.html b/source/docs/modules/_physics_spatialhash_.html new file mode 100644 index 00000000..c33683b4 --- /dev/null +++ b/source/docs/modules/_physics_spatialhash_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/SpatialHash" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/SpatialHash"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_verlet_composites_composite_.es.html b/source/docs/modules/_physics_verlet_composites_composite_.es.html new file mode 100644 index 00000000..b1ad29ff --- /dev/null +++ b/source/docs/modules/_physics_verlet_composites_composite_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_verlet_composites_composite_.html b/source/docs/modules/_physics_verlet_composites_composite_.html new file mode 100644 index 00000000..98cd0e57 --- /dev/null +++ b/source/docs/modules/_physics_verlet_composites_composite_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Verlet/Composites/Composite" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Verlet/Composites/Composite"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_verlet_constraints_constraint_.es.html b/source/docs/modules/_physics_verlet_constraints_constraint_.es.html new file mode 100644 index 00000000..566dc130 --- /dev/null +++ b/source/docs/modules/_physics_verlet_constraints_constraint_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_verlet_constraints_constraint_.html b/source/docs/modules/_physics_verlet_constraints_constraint_.html new file mode 100644 index 00000000..992de6a0 --- /dev/null +++ b/source/docs/modules/_physics_verlet_constraints_constraint_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Verlet/Constraints/Constraint" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Verlet/Constraints/Constraint"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_verlet_particle_.es.html b/source/docs/modules/_physics_verlet_particle_.es.html new file mode 100644 index 00000000..d5f2664b --- /dev/null +++ b/source/docs/modules/_physics_verlet_particle_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_verlet_particle_.html b/source/docs/modules/_physics_verlet_particle_.html new file mode 100644 index 00000000..378c7f42 --- /dev/null +++ b/source/docs/modules/_physics_verlet_particle_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Verlet/Particle" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Verlet/Particle"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_verlet_verletworld_.es.html b/source/docs/modules/_physics_verlet_verletworld_.es.html new file mode 100644 index 00000000..8140e4dc --- /dev/null +++ b/source/docs/modules/_physics_verlet_verletworld_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_physics_verlet_verletworld_.html b/source/docs/modules/_physics_verlet_verletworld_.html new file mode 100644 index 00000000..9ac22615 --- /dev/null +++ b/source/docs/modules/_physics_verlet_verletworld_.html @@ -0,0 +1,130 @@ + + + + + + "Physics/Verlet/VerletWorld" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Physics/Verlet/VerletWorld"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_group_.es.html b/source/docs/modules/_tiled_group_.es.html new file mode 100644 index 00000000..161bfb5e --- /dev/null +++ b/source/docs/modules/_tiled_group_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_group_.html b/source/docs/modules/_tiled_group_.html new file mode 100644 index 00000000..1d41166b --- /dev/null +++ b/source/docs/modules/_tiled_group_.html @@ -0,0 +1,130 @@ + + + + + + "Tiled/Group" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Tiled/Group"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_imagelayer_.es.html b/source/docs/modules/_tiled_imagelayer_.es.html new file mode 100644 index 00000000..080bd2db --- /dev/null +++ b/source/docs/modules/_tiled_imagelayer_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_imagelayer_.html b/source/docs/modules/_tiled_imagelayer_.html new file mode 100644 index 00000000..270e0882 --- /dev/null +++ b/source/docs/modules/_tiled_imagelayer_.html @@ -0,0 +1,130 @@ + + + + + + "Tiled/ImageLayer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Tiled/ImageLayer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_itmxlayer_.es.html b/source/docs/modules/_tiled_itmxlayer_.es.html new file mode 100644 index 00000000..2be38477 --- /dev/null +++ b/source/docs/modules/_tiled_itmxlayer_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_itmxlayer_.html b/source/docs/modules/_tiled_itmxlayer_.html new file mode 100644 index 00000000..13765072 --- /dev/null +++ b/source/docs/modules/_tiled_itmxlayer_.html @@ -0,0 +1,130 @@ + + + + + + "Tiled/ITmxLayer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Tiled/ITmxLayer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_layer_.es.html b/source/docs/modules/_tiled_layer_.es.html new file mode 100644 index 00000000..454f1277 --- /dev/null +++ b/source/docs/modules/_tiled_layer_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_layer_.html b/source/docs/modules/_tiled_layer_.html new file mode 100644 index 00000000..92c90ae0 --- /dev/null +++ b/source/docs/modules/_tiled_layer_.html @@ -0,0 +1,130 @@ + + + + + + "Tiled/Layer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Tiled/Layer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_map_.es.html b/source/docs/modules/_tiled_map_.es.html new file mode 100644 index 00000000..6224099e --- /dev/null +++ b/source/docs/modules/_tiled_map_.es.html @@ -0,0 +1,157 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_map_.html b/source/docs/modules/_tiled_map_.html new file mode 100644 index 00000000..022895c1 --- /dev/null +++ b/source/docs/modules/_tiled_map_.html @@ -0,0 +1,130 @@ + + + + + + "Tiled/Map" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Tiled/Map"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_objectgroup_.es.html b/source/docs/modules/_tiled_objectgroup_.es.html new file mode 100644 index 00000000..109b4e1f --- /dev/null +++ b/source/docs/modules/_tiled_objectgroup_.es.html @@ -0,0 +1,169 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_objectgroup_.html b/source/docs/modules/_tiled_objectgroup_.html new file mode 100644 index 00000000..1645c433 --- /dev/null +++ b/source/docs/modules/_tiled_objectgroup_.html @@ -0,0 +1,130 @@ + + + + + + "Tiled/ObjectGroup" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Tiled/ObjectGroup"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_tiledcore_.es.html b/source/docs/modules/_tiled_tiledcore_.es.html new file mode 100644 index 00000000..ca17fb63 --- /dev/null +++ b/source/docs/modules/_tiled_tiledcore_.es.html @@ -0,0 +1,149 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_tiledcore_.html b/source/docs/modules/_tiled_tiledcore_.html new file mode 100644 index 00000000..c3686849 --- /dev/null +++ b/source/docs/modules/_tiled_tiledcore_.html @@ -0,0 +1,130 @@ + + + + + + "Tiled/TiledCore" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Tiled/TiledCore"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_tiledmaploader_.es.html b/source/docs/modules/_tiled_tiledmaploader_.es.html new file mode 100644 index 00000000..728ded99 --- /dev/null +++ b/source/docs/modules/_tiled_tiledmaploader_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_tiledmaploader_.html b/source/docs/modules/_tiled_tiledmaploader_.html new file mode 100644 index 00000000..9a12ca4e --- /dev/null +++ b/source/docs/modules/_tiled_tiledmaploader_.html @@ -0,0 +1,130 @@ + + + + + + "Tiled/TiledMapLoader" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Tiled/TiledMapLoader"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_tiledrendering_.es.html b/source/docs/modules/_tiled_tiledrendering_.es.html new file mode 100644 index 00000000..42c5542a --- /dev/null +++ b/source/docs/modules/_tiled_tiledrendering_.es.html @@ -0,0 +1,158 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Variables

+ +
+
+
+
+
+

Variables

+
+ +

Bitmap

+
Bitmap: Bitmap
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_tiledrendering_.html b/source/docs/modules/_tiled_tiledrendering_.html new file mode 100644 index 00000000..500e8006 --- /dev/null +++ b/source/docs/modules/_tiled_tiledrendering_.html @@ -0,0 +1,130 @@ + + + + + + "Tiled/TiledRendering" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Tiled/TiledRendering"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_tileset_.es.html b/source/docs/modules/_tiled_tileset_.es.html new file mode 100644 index 00000000..dd5a2980 --- /dev/null +++ b/source/docs/modules/_tiled_tileset_.es.html @@ -0,0 +1,144 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_tileset_.html b/source/docs/modules/_tiled_tileset_.html new file mode 100644 index 00000000..0d532f1d --- /dev/null +++ b/source/docs/modules/_tiled_tileset_.html @@ -0,0 +1,130 @@ + + + + + + "Tiled/Tileset" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Tiled/Tileset"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_tilesettile_.es.html b/source/docs/modules/_tiled_tilesettile_.es.html new file mode 100644 index 00000000..44503b2e --- /dev/null +++ b/source/docs/modules/_tiled_tilesettile_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_tilesettile_.html b/source/docs/modules/_tiled_tilesettile_.html new file mode 100644 index 00000000..529431b5 --- /dev/null +++ b/source/docs/modules/_tiled_tilesettile_.html @@ -0,0 +1,130 @@ + + + + + + "Tiled/TilesetTile" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Tiled/TilesetTile"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_tmxutils_.es.html b/source/docs/modules/_tiled_tmxutils_.es.html new file mode 100644 index 00000000..95729851 --- /dev/null +++ b/source/docs/modules/_tiled_tmxutils_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_tiled_tmxutils_.html b/source/docs/modules/_tiled_tmxutils_.html new file mode 100644 index 00000000..1879c687 --- /dev/null +++ b/source/docs/modules/_tiled_tmxutils_.html @@ -0,0 +1,130 @@ + + + + + + "Tiled/TmxUtils" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Tiled/TmxUtils"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_analysis_layout_.es.html b/source/docs/modules/_utils_analysis_layout_.es.html new file mode 100644 index 00000000..fb092da9 --- /dev/null +++ b/source/docs/modules/_utils_analysis_layout_.es.html @@ -0,0 +1,145 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_analysis_layout_.html b/source/docs/modules/_utils_analysis_layout_.html new file mode 100644 index 00000000..9b977151 --- /dev/null +++ b/source/docs/modules/_utils_analysis_layout_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Analysis/Layout" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Analysis/Layout"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_analysis_stopwatch_.html b/source/docs/modules/_utils_analysis_stopwatch_.html new file mode 100644 index 00000000..8cf70918 --- /dev/null +++ b/source/docs/modules/_utils_analysis_stopwatch_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Analysis/Stopwatch" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Analysis/Stopwatch"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_analysis_stopwatch_.stopwatch.html b/source/docs/modules/_utils_analysis_stopwatch_.stopwatch.html new file mode 100644 index 00000000..de1bc1ff --- /dev/null +++ b/source/docs/modules/_utils_analysis_stopwatch_.stopwatch.html @@ -0,0 +1,259 @@ + + + + + + stopwatch | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace stopwatch

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+

Classes

+ +
+
+

Interfaces

+ +
+
+

Type aliases

+ +
+
+

Variables

+ +
+
+

Functions

+ +
+
+
+
+
+

Type aliases

+
+ +

GetTimeFunc

+
GetTimeFunc: () => number
+ +
+
+

返回某个系统的“当前时间”的函数。 + 惟一的要求是,对该函数的每次调用都必须返回一个大于或等于前一次对该函数的调用的数字。

+
+
+
+

Type declaration

+
    +
  • +
      +
    • (): number
    • +
    +
      +
    • +

      Returns number

      +
    • +
    +
  • +
+
+
+
+
+

Variables

+
+ +

Let _defaultSystemTimeGetter

+
_defaultSystemTimeGetter: GetTimeFunc = Date.now
+ +
+
+

所有新实例的默认“getSystemTime”实现

+
+
+
+
+
+

Functions

+
+ +

setDefaultSystemTimeGetter

+
    +
  • setDefaultSystemTimeGetter(systemTimeGetter?: GetTimeFunc): void
  • +
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_analysis_timeruler_.es.html b/source/docs/modules/_utils_analysis_timeruler_.es.html new file mode 100644 index 00000000..cd92a778 --- /dev/null +++ b/source/docs/modules/_utils_analysis_timeruler_.es.html @@ -0,0 +1,156 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_analysis_timeruler_.html b/source/docs/modules/_utils_analysis_timeruler_.html new file mode 100644 index 00000000..7f17864f --- /dev/null +++ b/source/docs/modules/_utils_analysis_timeruler_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Analysis/TimeRuler" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Analysis/TimeRuler"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_arrayutils_.html b/source/docs/modules/_utils_arrayutils_.html new file mode 100644 index 00000000..f2914bd6 --- /dev/null +++ b/source/docs/modules/_utils_arrayutils_.html @@ -0,0 +1,128 @@ + + + + + + "Utils/ArrayUtils" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/ArrayUtils"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_base64utils_.es.html b/source/docs/modules/_utils_base64utils_.es.html new file mode 100644 index 00000000..66c5d14c --- /dev/null +++ b/source/docs/modules/_utils_base64utils_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_base64utils_.html b/source/docs/modules/_utils_base64utils_.html new file mode 100644 index 00000000..8724d9a9 --- /dev/null +++ b/source/docs/modules/_utils_base64utils_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Base64Utils" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Base64Utils"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_color_.es.html b/source/docs/modules/_utils_color_.es.html new file mode 100644 index 00000000..19eabbb9 --- /dev/null +++ b/source/docs/modules/_utils_color_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_color_.html b/source/docs/modules/_utils_color_.html new file mode 100644 index 00000000..ac96c8f7 --- /dev/null +++ b/source/docs/modules/_utils_color_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Color" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Color"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_contentmanager_.es.html b/source/docs/modules/_utils_contentmanager_.es.html new file mode 100644 index 00000000..c4cf11d4 --- /dev/null +++ b/source/docs/modules/_utils_contentmanager_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_contentmanager_.html b/source/docs/modules/_utils_contentmanager_.html new file mode 100644 index 00000000..f5745744 --- /dev/null +++ b/source/docs/modules/_utils_contentmanager_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/ContentManager" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/ContentManager"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_coroutines_coroutine_.es.html b/source/docs/modules/_utils_coroutines_coroutine_.es.html new file mode 100644 index 00000000..c8d25af9 --- /dev/null +++ b/source/docs/modules/_utils_coroutines_coroutine_.es.html @@ -0,0 +1,149 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_coroutines_coroutine_.html b/source/docs/modules/_utils_coroutines_coroutine_.html new file mode 100644 index 00000000..082180d6 --- /dev/null +++ b/source/docs/modules/_utils_coroutines_coroutine_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Coroutines/Coroutine" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Coroutines/Coroutine"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_coroutines_coroutinemanager_.es.html b/source/docs/modules/_utils_coroutines_coroutinemanager_.es.html new file mode 100644 index 00000000..18f36da9 --- /dev/null +++ b/source/docs/modules/_utils_coroutines_coroutinemanager_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_coroutines_coroutinemanager_.html b/source/docs/modules/_utils_coroutines_coroutinemanager_.html new file mode 100644 index 00000000..435751b9 --- /dev/null +++ b/source/docs/modules/_utils_coroutines_coroutinemanager_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Coroutines/CoroutineManager" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Coroutines/CoroutineManager"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_drawutils_.es.html b/source/docs/modules/_utils_drawutils_.es.html new file mode 100644 index 00000000..200e6a03 --- /dev/null +++ b/source/docs/modules/_utils_drawutils_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_drawutils_.html b/source/docs/modules/_utils_drawutils_.html new file mode 100644 index 00000000..13587dcc --- /dev/null +++ b/source/docs/modules/_utils_drawutils_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/DrawUtils" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/DrawUtils"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_edgeext_.es.html b/source/docs/modules/_utils_edgeext_.es.html new file mode 100644 index 00000000..789f80a1 --- /dev/null +++ b/source/docs/modules/_utils_edgeext_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_edgeext_.html b/source/docs/modules/_utils_edgeext_.html new file mode 100644 index 00000000..94b828fb --- /dev/null +++ b/source/docs/modules/_utils_edgeext_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/EdgeExt" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/EdgeExt"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_emitter_.es.html b/source/docs/modules/_utils_emitter_.es.html new file mode 100644 index 00000000..af17b6c0 --- /dev/null +++ b/source/docs/modules/_utils_emitter_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_emitter_.html b/source/docs/modules/_utils_emitter_.html new file mode 100644 index 00000000..ea54656a --- /dev/null +++ b/source/docs/modules/_utils_emitter_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Emitter" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Emitter"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_enum_.es.html b/source/docs/modules/_utils_enum_.es.html new file mode 100644 index 00000000..4819f2d1 --- /dev/null +++ b/source/docs/modules/_utils_enum_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_enum_.html b/source/docs/modules/_utils_enum_.html new file mode 100644 index 00000000..3ba5bd12 --- /dev/null +++ b/source/docs/modules/_utils_enum_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Enum" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Enum"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_enumerable_.es.html b/source/docs/modules/_utils_enumerable_.es.html new file mode 100644 index 00000000..8a3388cb --- /dev/null +++ b/source/docs/modules/_utils_enumerable_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_enumerable_.html b/source/docs/modules/_utils_enumerable_.html new file mode 100644 index 00000000..24d24e22 --- /dev/null +++ b/source/docs/modules/_utils_enumerable_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Enumerable" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Enumerable"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_equalitycomparer_.es.html b/source/docs/modules/_utils_equalitycomparer_.es.html new file mode 100644 index 00000000..8c13f936 --- /dev/null +++ b/source/docs/modules/_utils_equalitycomparer_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_equalitycomparer_.html b/source/docs/modules/_utils_equalitycomparer_.html new file mode 100644 index 00000000..b84b3085 --- /dev/null +++ b/source/docs/modules/_utils_equalitycomparer_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/EqualityComparer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/EqualityComparer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_globalmanager_.es.html b/source/docs/modules/_utils_globalmanager_.es.html new file mode 100644 index 00000000..5ac9f1a3 --- /dev/null +++ b/source/docs/modules/_utils_globalmanager_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_globalmanager_.html b/source/docs/modules/_utils_globalmanager_.html new file mode 100644 index 00000000..05dbf2db --- /dev/null +++ b/source/docs/modules/_utils_globalmanager_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/GlobalManager" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/GlobalManager"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_icomparer_.es.html b/source/docs/modules/_utils_icomparer_.es.html new file mode 100644 index 00000000..95fe75af --- /dev/null +++ b/source/docs/modules/_utils_icomparer_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_icomparer_.html b/source/docs/modules/_utils_icomparer_.html new file mode 100644 index 00000000..0c12a550 --- /dev/null +++ b/source/docs/modules/_utils_icomparer_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/IComparer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/IComparer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_iequalitycomparer_.es.html b/source/docs/modules/_utils_iequalitycomparer_.es.html new file mode 100644 index 00000000..720d4af4 --- /dev/null +++ b/source/docs/modules/_utils_iequalitycomparer_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_iequalitycomparer_.html b/source/docs/modules/_utils_iequalitycomparer_.html new file mode 100644 index 00000000..9bf5fd14 --- /dev/null +++ b/source/docs/modules/_utils_iequalitycomparer_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/IEqualityComparer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/IEqualityComparer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_iequatable_.es.html b/source/docs/modules/_utils_iequatable_.es.html new file mode 100644 index 00000000..62c29427 --- /dev/null +++ b/source/docs/modules/_utils_iequatable_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_iequatable_.html b/source/docs/modules/_utils_iequatable_.html new file mode 100644 index 00000000..8172f03b --- /dev/null +++ b/source/docs/modules/_utils_iequatable_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/IEquatable" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/IEquatable"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_input_.es.html b/source/docs/modules/_utils_input_input_.es.html new file mode 100644 index 00000000..d0e22795 --- /dev/null +++ b/source/docs/modules/_utils_input_input_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_input_.html b/source/docs/modules/_utils_input_input_.html new file mode 100644 index 00000000..ce0ab38f --- /dev/null +++ b/source/docs/modules/_utils_input_input_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Input/Input" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Input/Input"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_keyboardutils_.html b/source/docs/modules/_utils_input_keyboardutils_.html new file mode 100644 index 00000000..08f54942 --- /dev/null +++ b/source/docs/modules/_utils_input_keyboardutils_.html @@ -0,0 +1,150 @@ + + + + + + "Utils/Input/KeyboardUtils" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Input/KeyboardUtils"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Variables

+ +
+
+
+
+
+

Variables

+
+ +

Keys

+
Keys: Keys
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_keys_.es.html b/source/docs/modules/_utils_input_keys_.es.html new file mode 100644 index 00000000..c9c5924c --- /dev/null +++ b/source/docs/modules/_utils_input_keys_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_keys_.html b/source/docs/modules/_utils_input_keys_.html new file mode 100644 index 00000000..611b4cc6 --- /dev/null +++ b/source/docs/modules/_utils_input_keys_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Input/Keys" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Input/Keys"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_virtual_virtualaxis_.es.html b/source/docs/modules/_utils_input_virtual_virtualaxis_.es.html new file mode 100644 index 00000000..0dc398bc --- /dev/null +++ b/source/docs/modules/_utils_input_virtual_virtualaxis_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_virtual_virtualaxis_.html b/source/docs/modules/_utils_input_virtual_virtualaxis_.html new file mode 100644 index 00000000..c2dbdd7f --- /dev/null +++ b/source/docs/modules/_utils_input_virtual_virtualaxis_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Input/Virtual/VirtualAxis" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Input/Virtual/VirtualAxis"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_virtual_virtualbutton_.es.html b/source/docs/modules/_utils_input_virtual_virtualbutton_.es.html new file mode 100644 index 00000000..2223a92d --- /dev/null +++ b/source/docs/modules/_utils_input_virtual_virtualbutton_.es.html @@ -0,0 +1,144 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_virtual_virtualbutton_.html b/source/docs/modules/_utils_input_virtual_virtualbutton_.html new file mode 100644 index 00000000..49047129 --- /dev/null +++ b/source/docs/modules/_utils_input_virtual_virtualbutton_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Input/Virtual/VirtualButton" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Input/Virtual/VirtualButton"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_virtual_virtualinput_.es.html b/source/docs/modules/_utils_input_virtual_virtualinput_.es.html new file mode 100644 index 00000000..a04ba4dc --- /dev/null +++ b/source/docs/modules/_utils_input_virtual_virtualinput_.es.html @@ -0,0 +1,149 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Enumerations

+ +
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_virtual_virtualinput_.html b/source/docs/modules/_utils_input_virtual_virtualinput_.html new file mode 100644 index 00000000..4b6e9446 --- /dev/null +++ b/source/docs/modules/_utils_input_virtual_virtualinput_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Input/Virtual/VirtualInput" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Input/Virtual/VirtualInput"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_virtual_virtualintegeraxis_.es.html b/source/docs/modules/_utils_input_virtual_virtualintegeraxis_.es.html new file mode 100644 index 00000000..900984d8 --- /dev/null +++ b/source/docs/modules/_utils_input_virtual_virtualintegeraxis_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_input_virtual_virtualintegeraxis_.html b/source/docs/modules/_utils_input_virtual_virtualintegeraxis_.html new file mode 100644 index 00000000..82166405 --- /dev/null +++ b/source/docs/modules/_utils_input_virtual_virtualintegeraxis_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Input/Virtual/VirtualIntegerAxis" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Input/Virtual/VirtualIntegerAxis"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_listpool_.es.html b/source/docs/modules/_utils_listpool_.es.html new file mode 100644 index 00000000..ef2c26da --- /dev/null +++ b/source/docs/modules/_utils_listpool_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_listpool_.html b/source/docs/modules/_utils_listpool_.html new file mode 100644 index 00000000..545cd3bb --- /dev/null +++ b/source/docs/modules/_utils_listpool_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/ListPool" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/ListPool"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_numberextension_.es.html b/source/docs/modules/_utils_numberextension_.es.html new file mode 100644 index 00000000..91259670 --- /dev/null +++ b/source/docs/modules/_utils_numberextension_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_numberextension_.html b/source/docs/modules/_utils_numberextension_.html new file mode 100644 index 00000000..3320ab66 --- /dev/null +++ b/source/docs/modules/_utils_numberextension_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/NumberExtension" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/NumberExtension"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_pair_.es.html b/source/docs/modules/_utils_pair_.es.html new file mode 100644 index 00000000..d0065dd0 --- /dev/null +++ b/source/docs/modules/_utils_pair_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_pair_.html b/source/docs/modules/_utils_pair_.html new file mode 100644 index 00000000..71c1ae81 --- /dev/null +++ b/source/docs/modules/_utils_pair_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Pair" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Pair"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_pool_.es.html b/source/docs/modules/_utils_pool_.es.html new file mode 100644 index 00000000..eb4d43a6 --- /dev/null +++ b/source/docs/modules/_utils_pool_.es.html @@ -0,0 +1,145 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_pool_.html b/source/docs/modules/_utils_pool_.html new file mode 100644 index 00000000..851320f9 --- /dev/null +++ b/source/docs/modules/_utils_pool_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Pool" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Pool"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_randomutils_.html b/source/docs/modules/_utils_randomutils_.html new file mode 100644 index 00000000..5436097c --- /dev/null +++ b/source/docs/modules/_utils_randomutils_.html @@ -0,0 +1,128 @@ + + + + + + "Utils/RandomUtils" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/RandomUtils"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_rectangleext_.es.html b/source/docs/modules/_utils_rectangleext_.es.html new file mode 100644 index 00000000..16ac8dc5 --- /dev/null +++ b/source/docs/modules/_utils_rectangleext_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_rectangleext_.html b/source/docs/modules/_utils_rectangleext_.html new file mode 100644 index 00000000..fabaf10f --- /dev/null +++ b/source/docs/modules/_utils_rectangleext_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/RectangleExt" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/RectangleExt"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_ref_.es.html b/source/docs/modules/_utils_ref_.es.html new file mode 100644 index 00000000..794c64cf --- /dev/null +++ b/source/docs/modules/_utils_ref_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_ref_.html b/source/docs/modules/_utils_ref_.html new file mode 100644 index 00000000..2052f753 --- /dev/null +++ b/source/docs/modules/_utils_ref_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Ref" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Ref"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_runtimespritesheet_assetpacker_.es.html b/source/docs/modules/_utils_runtimespritesheet_assetpacker_.es.html new file mode 100644 index 00000000..6f0424d7 --- /dev/null +++ b/source/docs/modules/_utils_runtimespritesheet_assetpacker_.es.html @@ -0,0 +1,158 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+

Variables

+ +
+
+
+
+
+

Variables

+
+ +

Bitmap

+
Bitmap: Bitmap
+ +
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_runtimespritesheet_assetpacker_.html b/source/docs/modules/_utils_runtimespritesheet_assetpacker_.html new file mode 100644 index 00000000..1461ea38 --- /dev/null +++ b/source/docs/modules/_utils_runtimespritesheet_assetpacker_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/RuntimeSpriteSheet/AssetPacker" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/RuntimeSpriteSheet/AssetPacker"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_runtimespritesheet_integerrectangle_.es.html b/source/docs/modules/_utils_runtimespritesheet_integerrectangle_.es.html new file mode 100644 index 00000000..5c4bc97e --- /dev/null +++ b/source/docs/modules/_utils_runtimespritesheet_integerrectangle_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_runtimespritesheet_integerrectangle_.html b/source/docs/modules/_utils_runtimespritesheet_integerrectangle_.html new file mode 100644 index 00000000..c3df99a6 --- /dev/null +++ b/source/docs/modules/_utils_runtimespritesheet_integerrectangle_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/RuntimeSpriteSheet/IntegerRectangle" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/RuntimeSpriteSheet/IntegerRectangle"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_runtimespritesheet_rectanglepacker_.es.html b/source/docs/modules/_utils_runtimespritesheet_rectanglepacker_.es.html new file mode 100644 index 00000000..e69ff5b9 --- /dev/null +++ b/source/docs/modules/_utils_runtimespritesheet_rectanglepacker_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_runtimespritesheet_rectanglepacker_.html b/source/docs/modules/_utils_runtimespritesheet_rectanglepacker_.html new file mode 100644 index 00000000..eec1225e --- /dev/null +++ b/source/docs/modules/_utils_runtimespritesheet_rectanglepacker_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/RuntimeSpriteSheet/RectanglePacker" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/RuntimeSpriteSheet/RectanglePacker"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_runtimespritesheet_sortablesize_.es.html b/source/docs/modules/_utils_runtimespritesheet_sortablesize_.es.html new file mode 100644 index 00000000..71b08e60 --- /dev/null +++ b/source/docs/modules/_utils_runtimespritesheet_sortablesize_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_runtimespritesheet_sortablesize_.html b/source/docs/modules/_utils_runtimespritesheet_sortablesize_.html new file mode 100644 index 00000000..c3f9fe6e --- /dev/null +++ b/source/docs/modules/_utils_runtimespritesheet_sortablesize_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/RuntimeSpriteSheet/SortableSize" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/RuntimeSpriteSheet/SortableSize"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_runtimespritesheet_textureassets_.es.html b/source/docs/modules/_utils_runtimespritesheet_textureassets_.es.html new file mode 100644 index 00000000..45ba5527 --- /dev/null +++ b/source/docs/modules/_utils_runtimespritesheet_textureassets_.es.html @@ -0,0 +1,140 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_runtimespritesheet_textureassets_.html b/source/docs/modules/_utils_runtimespritesheet_textureassets_.html new file mode 100644 index 00000000..fa5c5ac7 --- /dev/null +++ b/source/docs/modules/_utils_runtimespritesheet_textureassets_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/RuntimeSpriteSheet/TextureAssets" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/RuntimeSpriteSheet/TextureAssets"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_runtimespritesheet_texturetopack_.es.html b/source/docs/modules/_utils_runtimespritesheet_texturetopack_.es.html new file mode 100644 index 00000000..1a1a854a --- /dev/null +++ b/source/docs/modules/_utils_runtimespritesheet_texturetopack_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_runtimespritesheet_texturetopack_.html b/source/docs/modules/_utils_runtimespritesheet_texturetopack_.html new file mode 100644 index 00000000..1790bee9 --- /dev/null +++ b/source/docs/modules/_utils_runtimespritesheet_texturetopack_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/RuntimeSpriteSheet/TextureToPack" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/RuntimeSpriteSheet/TextureToPack"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_subpixelnumber_.es.html b/source/docs/modules/_utils_subpixelnumber_.es.html new file mode 100644 index 00000000..7fa3d19f --- /dev/null +++ b/source/docs/modules/_utils_subpixelnumber_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_subpixelnumber_.html b/source/docs/modules/_utils_subpixelnumber_.html new file mode 100644 index 00000000..7fb5dcbf --- /dev/null +++ b/source/docs/modules/_utils_subpixelnumber_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/SubpixelNumber" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/SubpixelNumber"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_timers_itimer_.es.html b/source/docs/modules/_utils_timers_itimer_.es.html new file mode 100644 index 00000000..dbeb2533 --- /dev/null +++ b/source/docs/modules/_utils_timers_itimer_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Interfaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_timers_itimer_.html b/source/docs/modules/_utils_timers_itimer_.html new file mode 100644 index 00000000..7ca6f31e --- /dev/null +++ b/source/docs/modules/_utils_timers_itimer_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Timers/ITimer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Timers/ITimer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_timers_timer_.es.html b/source/docs/modules/_utils_timers_timer_.es.html new file mode 100644 index 00000000..9e5b8fa0 --- /dev/null +++ b/source/docs/modules/_utils_timers_timer_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_timers_timer_.html b/source/docs/modules/_utils_timers_timer_.html new file mode 100644 index 00000000..e817640e --- /dev/null +++ b/source/docs/modules/_utils_timers_timer_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Timers/Timer" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Timers/Timer"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_timers_timermanager_.es.html b/source/docs/modules/_utils_timers_timermanager_.es.html new file mode 100644 index 00000000..377a7c17 --- /dev/null +++ b/source/docs/modules/_utils_timers_timermanager_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_timers_timermanager_.html b/source/docs/modules/_utils_timers_timermanager_.html new file mode 100644 index 00000000..a26197e7 --- /dev/null +++ b/source/docs/modules/_utils_timers_timermanager_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Timers/TimerManager" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Timers/TimerManager"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_triangulator_.es.html b/source/docs/modules/_utils_triangulator_.es.html new file mode 100644 index 00000000..4bacd525 --- /dev/null +++ b/source/docs/modules/_utils_triangulator_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_triangulator_.html b/source/docs/modules/_utils_triangulator_.html new file mode 100644 index 00000000..97989e4c --- /dev/null +++ b/source/docs/modules/_utils_triangulator_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Triangulator" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Triangulator"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_vector2ext_.es.html b/source/docs/modules/_utils_vector2ext_.es.html new file mode 100644 index 00000000..42eab39a --- /dev/null +++ b/source/docs/modules/_utils_vector2ext_.es.html @@ -0,0 +1,136 @@ + + + + + + es | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Namespace es

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_vector2ext_.html b/source/docs/modules/_utils_vector2ext_.html new file mode 100644 index 00000000..9f68c6ed --- /dev/null +++ b/source/docs/modules/_utils_vector2ext_.html @@ -0,0 +1,130 @@ + + + + + + "Utils/Vector2Ext" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/Vector2Ext"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Namespaces

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/docs/modules/_utils_webglutils_.html b/source/docs/modules/_utils_webglutils_.html new file mode 100644 index 00000000..0f15ba01 --- /dev/null +++ b/source/docs/modules/_utils_webglutils_.html @@ -0,0 +1,128 @@ + + + + + + "Utils/WebGLUtils" | @esengine/egret-framework + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Module "Utils/WebGLUtils"

+
+
+
+
+
+
+
+

Index

+
+
+
+

Classes

+ +
+
+
+
+
+ +
+
+
+
+

Legend

+
+
    +
  • Namespace
  • +
  • Variable
  • +
+
    +
  • Interface with type parameter
  • +
+
    +
  • Class
  • +
+
+
+
+
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/source/package-lock.json b/source/package-lock.json index 457778a5..9ea998f9 100644 --- a/source/package-lock.json +++ b/source/package-lock.json @@ -433,6 +433,12 @@ "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==", "dev": true }, + "at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true + }, "atob": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", @@ -2313,6 +2319,26 @@ "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=", "dev": true }, + "fs-extra": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.1.tgz", + "integrity": "sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==", + "dev": true, + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^1.0.0" + }, + "dependencies": { + "graceful-fs": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", + "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", + "dev": true + } + } + }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -3231,6 +3257,27 @@ "glogg": "^1.0.0" } }, + "handlebars": { + "version": "4.7.6", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.6.tgz", + "integrity": "sha512-1f2BACcBfiwAfStCKZNrUCgqNZkGsAT7UM3kkYtXuLo0KnaVfjKOyf7PRzB6++aK9STyT1Pd2ZCPe3EGOXleXA==", + "dev": true, + "requires": { + "minimist": "^1.2.5", + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "uglify-js": "^3.1.4", + "wordwrap": "^1.0.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -3345,6 +3392,12 @@ "minimalistic-assert": "^1.0.1" } }, + "highlight.js": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.4.0.tgz", + "integrity": "sha512-EfrUGcQ63oLJbj0J0RI9ebX6TAITbsDBLbsjr881L/X5fMO9+oadKzEF21C7R3ULKG6Gv3uoab2HiqVJa/4+oA==", + "dev": true + }, "hmac-drbg": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", @@ -3730,6 +3783,31 @@ "minimist": "^1.2.5" } }, + "jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" + }, + "dependencies": { + "graceful-fs": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", + "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", + "dev": true, + "optional": true + }, + "universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true + } + } + }, "jsonify": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", @@ -3935,6 +4013,12 @@ "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", "dev": true }, + "lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", + "dev": true + }, "make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", @@ -3980,6 +4064,12 @@ "object-visit": "^1.0.0" } }, + "marked": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/marked/-/marked-1.2.5.tgz", + "integrity": "sha512-2AlqgYnVPOc9WDyWu7S5DJaEZsfk6dNh/neatQ3IHUW4QLutM/VPSH9lG7bif+XjFWc9K9XR3QvR+fXuECmfdA==", + "dev": true + }, "math-random": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", @@ -4213,6 +4303,12 @@ "integrity": "sha512-6+TDFewD4yxY14ptjKaS63GVdtKiES1pTPyxn9Jb0rBqPMZ7VcCiooEhPNsr+mqHtMGxa/5c/HhcC4uPEUw/nA==", "dev": true }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, "normalize-path": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", @@ -4578,6 +4674,12 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true + }, "public-encrypt": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", @@ -4956,6 +5058,17 @@ "integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==", "dev": true }, + "shelljs": { + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.4.tgz", + "integrity": "sha512-7gk3UZ9kOfPLIAbslLzyWeGiEqx9e3rxwZM0KE6EL8GlGwjym9Mrlx5/p33bWTu9YG6vcS4MBxYZDHYr5lr8BQ==", + "dev": true, + "requires": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + } + }, "sigmund": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", @@ -5516,6 +5629,45 @@ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "dev": true }, + "typedoc": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.19.2.tgz", + "integrity": "sha512-oDEg1BLEzi1qvgdQXc658EYgJ5qJLVSeZ0hQ57Eq4JXy6Vj2VX4RVo18qYxRWz75ifAaYuYNBUCnbhjd37TfOg==", + "dev": true, + "requires": { + "fs-extra": "^9.0.1", + "handlebars": "^4.7.6", + "highlight.js": "^10.2.0", + "lodash": "^4.17.20", + "lunr": "^2.3.9", + "marked": "^1.1.1", + "minimatch": "^3.0.0", + "progress": "^2.0.3", + "semver": "^7.3.2", + "shelljs": "^0.8.4", + "typedoc-default-themes": "^0.11.4" + }, + "dependencies": { + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "dev": true + }, + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "dev": true + } + } + }, + "typedoc-default-themes": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/typedoc-default-themes/-/typedoc-default-themes-0.11.4.tgz", + "integrity": "sha512-Y4Lf+qIb9NTydrexlazAM46SSLrmrQRqWiD52593g53SsmUFioAsMWt8m834J6qsp+7wHRjxCXSZeiiW5cMUdw==", + "dev": true + }, "typescript": { "version": "2.9.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.9.2.tgz", @@ -5574,6 +5726,12 @@ "integrity": "sha1-1ZpKdUJ0R9mqbJHnAmP40mpLEEs=", "dev": true }, + "universalify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz", + "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==", + "dev": true + }, "unset-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", @@ -6015,6 +6173,12 @@ "isexe": "^2.0.0" } }, + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", + "dev": true + }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", diff --git a/source/package.json b/source/package.json index 2092dce9..03d35907 100644 --- a/source/package.json +++ b/source/package.json @@ -25,6 +25,7 @@ "gulp-typescript": "^3.1.6", "gulp-uglify": "^3.0.2", "tsify": "^3.0.1", + "typedoc": "^0.19.2", "typescript": "^2.2.2", "vinyl-source-stream": "^1.1.0", "watchify": "^3.9.0" diff --git a/source/src/ECS/Components/TiledMapMover.ts b/source/src/ECS/Components/TiledMapMover.ts index 8fbb53d3..509bb51e 100644 --- a/source/src/ECS/Components/TiledMapMover.ts +++ b/source/src/ECS/Components/TiledMapMover.ts @@ -1,131 +1,131 @@ -module es { - /** - * 用来存放来自移动调用的所有冲突信息 - */ - export class CollisionState { - public right: boolean; - public left: boolean; - public above: boolean; - public below: boolean; - public becameGroundedThisFrame: boolean; - public wasGroundedLastFrame: boolean; - public isGroundedOnOnewayPlatform: boolean; - public slopAngle: number; +// module es { +// /** +// * 用来存放来自移动调用的所有冲突信息 +// */ +// export class CollisionState { +// public right: boolean; +// public left: boolean; +// public above: boolean; +// public below: boolean; +// public becameGroundedThisFrame: boolean; +// public wasGroundedLastFrame: boolean; +// public isGroundedOnOnewayPlatform: boolean; +// public slopAngle: number; - public get hasCollision(): boolean { - return this.below || this.right || this.left || this.above; - } +// public get hasCollision(): boolean { +// return this.below || this.right || this.left || this.above; +// } - public _movementRemainderX: SubpixelNumber; - public _movementRemainderY: SubpixelNumber; +// public _movementRemainderX: SubpixelNumber; +// public _movementRemainderY: SubpixelNumber; - public reset() { - this.becameGroundedThisFrame = this.isGroundedOnOnewayPlatform = this.right = this.left = this.above = this.below = false; - this.slopAngle = 0; - } +// public reset() { +// this.becameGroundedThisFrame = this.isGroundedOnOnewayPlatform = this.right = this.left = this.above = this.below = false; +// this.slopAngle = 0; +// } - public toString() { - return `[CollisionState] r: ${this.right}, l: ${this.left}, a: ${this.above}, b: ${this.below}, angle: ${this.slopAngle}, wasGroundedLastFrame: ${this.wasGroundedLastFrame}, becameGroundedThisFrame: ${this.becameGroundedThisFrame}`; - } - } +// public toString() { +// return `[CollisionState] r: ${this.right}, l: ${this.left}, a: ${this.above}, b: ${this.below}, angle: ${this.slopAngle}, wasGroundedLastFrame: ${this.wasGroundedLastFrame}, becameGroundedThisFrame: ${this.becameGroundedThisFrame}`; +// } +// } - /** - * TiledMapMover是在基于重力的平铺地图中移动对象的助手。 - * 它要求它所在的实体有一个BoxCollider。BoxCollider将与colliderHorizontal/VerticalInset用于所有碰撞检测。 - * - * 一种方法是通过将你的Transform向下移动1个像素并调用CollisionState.clearLastGroundTile来跳过平台。 - */ - export class TiledMapMover extends Component { - /** - * 在垂直移动时,BoxCollider将根据水平面上的嵌入缩小 - */ - public colliderHorizontalInset = 2; +// /** +// * TiledMapMover是在基于重力的平铺地图中移动对象的助手。 +// * 它要求它所在的实体有一个BoxCollider。BoxCollider将与colliderHorizontal/VerticalInset用于所有碰撞检测。 +// * +// * 一种方法是通过将你的Transform向下移动1个像素并调用CollisionState.clearLastGroundTile来跳过平台。 +// */ +// export class TiledMapMover extends Component { +// /** +// * 在垂直移动时,BoxCollider将根据水平面上的嵌入缩小 +// */ +// public colliderHorizontalInset = 2; - /** - * 垂直平面上的嵌入,在水平移动时,BoxCollider将根据该嵌入缩小 - */ - public colliderVerticalInset = 6; +// /** +// * 垂直平面上的嵌入,在水平移动时,BoxCollider将根据该嵌入缩小 +// */ +// public colliderVerticalInset = 6; - /** - * 临时存储 - */ - public _boxColliderBounds: Rectangle; +// /** +// * 临时存储 +// */ +// public _boxColliderBounds: Rectangle; - constructor() { - super(); - } +// constructor() { +// super(); +// } - /** - * 测试碰撞,然后移动实体 - * @param motion - * @param boxColliderBounds - * @param collisionState - */ - public testCollisions(motion: Vector2, boxColliderBounds: Rectangle, collisionState: CollisionState) { - this._boxColliderBounds = boxColliderBounds; +// /** +// * 测试碰撞,然后移动实体 +// * @param motion +// * @param boxColliderBounds +// * @param collisionState +// */ +// public testCollisions(motion: Vector2, boxColliderBounds: Rectangle, collisionState: CollisionState) { +// this._boxColliderBounds = boxColliderBounds; - // 保存我们当前的接地状态,我们将用于wasGroundedLastFrame和becameGroundedThisFrame - collisionState.wasGroundedLastFrame = collisionState.below; +// // 保存我们当前的接地状态,我们将用于wasGroundedLastFrame和becameGroundedThisFrame +// collisionState.wasGroundedLastFrame = collisionState.below; - // 重置碰撞状态 - collisionState.reset(); +// // 重置碰撞状态 +// collisionState.reset(); - // 获取圆角值用于我们的实际检测 - let motionX = motion.x; - let motionY = motion.y; +// // 获取圆角值用于我们的实际检测 +// let motionX = motion.x; +// let motionY = motion.y; - // 首先,检查水平方向中的移动 - if (motionX != 0){ - let direction = motionX > 0 ? Edge.right : Edge.left; - let sweptBounds = this.collisionRectForSide(direction, motionX); +// // 首先,检查水平方向中的移动 +// if (motionX != 0){ +// let direction = motionX > 0 ? Edge.right : Edge.left; +// let sweptBounds = this.collisionRectForSide(direction, motionX); - let collisionResponse: number = 0; - if (this.testMapCollision(sweptBounds, direction, collisionState, collisionResponse)){ - motion.x = collisionResponse - RectangleExt.getSide(boxColliderBounds, direction); - collisionState.left = direction == Edge.left; - collisionState.right = direction == Edge.right; - collisionState._movementRemainderX.reset(); - }else{ - collisionState.left = false; - collisionState.right = false; - } - } - } +// let collisionResponse: number = 0; +// if (this.testMapCollision(sweptBounds, direction, collisionState, collisionResponse)){ +// motion.x = collisionResponse - RectangleExt.getSide(boxColliderBounds, direction); +// collisionState.left = direction == Edge.left; +// collisionState.right = direction == Edge.right; +// collisionState._movementRemainderX.reset(); +// }else{ +// collisionState.left = false; +// collisionState.right = false; +// } +// } +// } - public testMapCollision(collisionRect: Rectangle, direction: Edge, collisionState: CollisionState, collisionResponse: number){ - let side = EdgeExt.oppositeEdge(direction); - let perpindicularPosition = EdgeExt.isVertical(side) ? collisionRect.center.x : collisionRect.center.y; - let leadingPosition = RectangleExt.getSide(collisionRect, direction); - let shouldTestSlopes = EdgeExt.isVertical(side); - } +// public testMapCollision(collisionRect: Rectangle, direction: Edge, collisionState: CollisionState, collisionResponse: number){ +// let side = EdgeExt.oppositeEdge(direction); +// let perpindicularPosition = EdgeExt.isVertical(side) ? collisionRect.center.x : collisionRect.center.y; +// let leadingPosition = RectangleExt.getSide(collisionRect, direction); +// let shouldTestSlopes = EdgeExt.isVertical(side); +// } - /** - * 获取展开以考虑运动的给定边的碰撞矩形 - * @param side - * @param motion - */ - public collisionRectForSide(side: Edge, motion: number){ - let bounds: Rectangle; +// /** +// * 获取展开以考虑运动的给定边的碰撞矩形 +// * @param side +// * @param motion +// */ +// public collisionRectForSide(side: Edge, motion: number){ +// let bounds: Rectangle; - // 对于水平碰撞检查,我们只使用一个条块作为边界。Vertical得到矩形的一半,就可以正确地向上推, - // 当相交的斜率,忽略以进行水平移动。 - if (EdgeExt.isHorizontal(side)){ - bounds = RectangleExt.getRectEdgePortion(this._boxColliderBounds, side); - }else { - bounds = RectangleExt.getHalfRect(this._boxColliderBounds, side); - } +// // 对于水平碰撞检查,我们只使用一个条块作为边界。Vertical得到矩形的一半,就可以正确地向上推, +// // 当相交的斜率,忽略以进行水平移动。 +// if (EdgeExt.isHorizontal(side)){ +// bounds = RectangleExt.getRectEdgePortion(this._boxColliderBounds, side); +// }else { +// bounds = RectangleExt.getHalfRect(this._boxColliderBounds, side); +// } - // 我们水平收缩用于垂直移动,垂直收缩用于水平移动 - if (EdgeExt.isVertical(side)){ - RectangleExt.contract(bounds, this.colliderHorizontalInset, 0); - }else { - RectangleExt.contract(bounds, 0, this.colliderVerticalInset); - } +// // 我们水平收缩用于垂直移动,垂直收缩用于水平移动 +// if (EdgeExt.isVertical(side)){ +// RectangleExt.contract(bounds, this.colliderHorizontalInset, 0); +// }else { +// RectangleExt.contract(bounds, 0, this.colliderVerticalInset); +// } - // 最后在移动方向上扩展边 - RectangleExt.expandSide(bounds, side, motion); +// // 最后在移动方向上扩展边 +// RectangleExt.expandSide(bounds, side, motion); - return bounds; - } - } -} \ No newline at end of file +// return bounds; +// } +// } +// } \ No newline at end of file diff --git a/source/src/Utils/Ref.ts b/source/src/Utils/Ref.ts index c3210d66..9e120348 100644 --- a/source/src/Utils/Ref.ts +++ b/source/src/Utils/Ref.ts @@ -1,5 +1,8 @@ module es { - export class Ref { + /** + * 使得number/string/boolean类型作为对象引用来进行传递 + */ + export class Ref { public value: T; constructor(value: T){