Merge branch 'master' of https://github.com/esengine/ecs-framework
# Conflicts: # source/bin/framework.min.js
This commit is contained in:
2
source/bin/framework.d.ts
vendored
2
source/bin/framework.d.ts
vendored
@@ -1355,7 +1355,7 @@ declare module es {
|
|||||||
*/
|
*/
|
||||||
protected _isColliderRegistered: any;
|
protected _isColliderRegistered: any;
|
||||||
/**
|
/**
|
||||||
* 镖师碰撞器的绝对位置
|
* 表示碰撞器的绝对位置
|
||||||
*/
|
*/
|
||||||
readonly absolutePosition: Vector2;
|
readonly absolutePosition: Vector2;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -356,6 +356,8 @@ var es;
|
|||||||
for (var _i = 1; _i < arguments.length; _i++) {
|
for (var _i = 1; _i < arguments.length; _i++) {
|
||||||
args[_i - 1] = arguments[_i];
|
args[_i - 1] = arguments[_i];
|
||||||
}
|
}
|
||||||
|
if (!console.assert)
|
||||||
|
return;
|
||||||
if (message == null) {
|
if (message == null) {
|
||||||
console.assert(false);
|
console.assert(false);
|
||||||
}
|
}
|
||||||
@@ -3239,7 +3241,7 @@ var es;
|
|||||||
}
|
}
|
||||||
Object.defineProperty(Collider.prototype, "absolutePosition", {
|
Object.defineProperty(Collider.prototype, "absolutePosition", {
|
||||||
/**
|
/**
|
||||||
* 镖师碰撞器的绝对位置
|
* 表示碰撞器的绝对位置
|
||||||
*/
|
*/
|
||||||
get: function () {
|
get: function () {
|
||||||
return es.Vector2.add(this.entity.transform.position, this._localOffset);
|
return es.Vector2.add(this.entity.transform.position, this._localOffset);
|
||||||
|
|||||||
2
source/bin/framework.min.js
vendored
2
source/bin/framework.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,9 @@
|
|||||||
module es {
|
module es {
|
||||||
export class Insist {
|
export class Insist {
|
||||||
public static fail(message: string = null, ...args: any[]) {
|
public static fail(message: string = null, ...args: any[]) {
|
||||||
|
if (!console.assert)
|
||||||
|
return;
|
||||||
|
|
||||||
if (message == null) {
|
if (message == null) {
|
||||||
console.assert(false);
|
console.assert(false);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ module es {
|
|||||||
protected _isColliderRegistered;
|
protected _isColliderRegistered;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 镖师碰撞器的绝对位置
|
* 表示碰撞器的绝对位置
|
||||||
*/
|
*/
|
||||||
public get absolutePosition(): Vector2 {
|
public get absolutePosition(): Vector2 {
|
||||||
return Vector2.add(this.entity.transform.position, this._localOffset);
|
return Vector2.add(this.entity.transform.position, this._localOffset);
|
||||||
|
|||||||
Reference in New Issue
Block a user