修复ITriggerListener失效问题
This commit is contained in:
97
source/bin/framework.d.ts
vendored
97
source/bin/framework.d.ts
vendored
@@ -433,7 +433,6 @@ declare module es {
|
||||
tweenLocalRotationDegreesTo(to: number, duration?: number): TransformVector2Tween;
|
||||
compareTo(other: Entity): number;
|
||||
equals(other: Entity): boolean;
|
||||
getHashCode(): number;
|
||||
toString(): string;
|
||||
}
|
||||
}
|
||||
@@ -2721,6 +2720,10 @@ declare module es {
|
||||
* @param self
|
||||
*/
|
||||
static invertFlags(self: Ref<number>): void;
|
||||
/**
|
||||
* 打印 number 的二进制表示。 方便调试 number 标志
|
||||
*/
|
||||
static binaryStringRepresentation(self: number, leftPadWidth?: number): string;
|
||||
}
|
||||
}
|
||||
declare module es {
|
||||
@@ -3470,6 +3473,7 @@ declare module es {
|
||||
* 它将处理任何与Collider重叠的ITriggerListeners。
|
||||
*/
|
||||
update(): void;
|
||||
private getColliders;
|
||||
private checkForExitedColliders;
|
||||
private notifyTriggerListeners;
|
||||
}
|
||||
@@ -4946,10 +4950,6 @@ declare module es {
|
||||
* @param other
|
||||
*/
|
||||
equals(other: any): boolean;
|
||||
/**
|
||||
* 生成对象的哈希码
|
||||
*/
|
||||
getHashCode(): number;
|
||||
}
|
||||
}
|
||||
declare module es {
|
||||
@@ -5354,13 +5354,24 @@ declare module es {
|
||||
/**
|
||||
* 用于管理一对对象的简单DTO
|
||||
*/
|
||||
class Pair<T> implements IEqualityComparable {
|
||||
class Pair<T> {
|
||||
first: T;
|
||||
second: T;
|
||||
constructor(first: T, second: T);
|
||||
clear(): void;
|
||||
equals(other: Pair<T>): boolean;
|
||||
getHashCode(): number;
|
||||
}
|
||||
}
|
||||
declare module es {
|
||||
class PairSet<T> {
|
||||
readonly all: Array<Pair<T>>;
|
||||
has(pair: Pair<T>): boolean;
|
||||
add(pair: Pair<T>): void;
|
||||
remove(pair: Pair<T>): void;
|
||||
clear(): void;
|
||||
union(other: PairSet<T>): void;
|
||||
except(other: PairSet<T>): void;
|
||||
private _all;
|
||||
}
|
||||
}
|
||||
declare module es {
|
||||
@@ -5403,78 +5414,6 @@ declare module es {
|
||||
}
|
||||
var isIPoolable: (props: any) => props is IPoolable;
|
||||
}
|
||||
declare module es {
|
||||
interface ISet<T> {
|
||||
add(item: T): boolean;
|
||||
remove(item: T): boolean;
|
||||
contains(item: T): boolean;
|
||||
getCount(): number;
|
||||
clear(): void;
|
||||
toArray(): Array<T>;
|
||||
/**
|
||||
* 从当前集合中删除指定集合中的所有元素
|
||||
* @param other
|
||||
*/
|
||||
exceptWith(other: Array<T>): void;
|
||||
/**
|
||||
* 修改当前Set对象,使其只包含该对象和指定数组中的元素
|
||||
* @param other
|
||||
*/
|
||||
intersectWith(other: Array<T>): void;
|
||||
/**
|
||||
* 修改当前的集合对象,使其包含所有存在于自身、指定集合中的元素,或者两者都包含
|
||||
* @param other
|
||||
*/
|
||||
unionWith(other: Array<T>): void;
|
||||
isSubsetOf(other: Array<T>): boolean;
|
||||
isSupersetOf(other: Array<T>): boolean;
|
||||
overlaps(other: Array<T>): boolean;
|
||||
setEquals(other: Array<T>): boolean;
|
||||
}
|
||||
abstract class Set<T> implements ISet<T> {
|
||||
protected buckets: T[][];
|
||||
protected count: number;
|
||||
constructor(source?: Array<T>);
|
||||
abstract getHashCode(item: T): number;
|
||||
abstract areEqual(value1: T, value2: T): boolean;
|
||||
add(item: T): boolean;
|
||||
remove(item: T): boolean;
|
||||
contains(item: T): boolean;
|
||||
getCount(): number;
|
||||
clear(): void;
|
||||
toArray(): T[];
|
||||
/**
|
||||
* 从当前集合中删除指定集合中的所有元素
|
||||
* @param other
|
||||
*/
|
||||
exceptWith(other: Array<T>): void;
|
||||
/**
|
||||
* 修改当前Set对象,使其只包含该对象和指定数组中的元素
|
||||
* @param other
|
||||
*/
|
||||
intersectWith(other: Array<T>): void;
|
||||
unionWith(other: Array<T>): void;
|
||||
/**
|
||||
* 确定当前集合是否为指定集合或数组的子集
|
||||
* @param other
|
||||
*/
|
||||
isSubsetOf(other: Array<T>): boolean;
|
||||
/**
|
||||
* 确定当前不可变排序集是否为指定集合的超集
|
||||
* @param other
|
||||
*/
|
||||
isSupersetOf(other: Array<T>): boolean;
|
||||
overlaps(other: Array<T>): boolean;
|
||||
setEquals(other: Array<T>): boolean;
|
||||
private buildInternalBuckets;
|
||||
private bucketsContains;
|
||||
}
|
||||
class HashSet<T extends IEqualityComparable> extends Set<T> {
|
||||
constructor(source?: Array<T>);
|
||||
getHashCode(item: T): number;
|
||||
areEqual(value1: T, value2: T): boolean;
|
||||
}
|
||||
}
|
||||
declare module es {
|
||||
/**
|
||||
* startCoroutine返回的接口,它提供了中途停止coroutine的能力。
|
||||
|
||||
Reference in New Issue
Block a user