修复ITriggerListener失效问题

This commit is contained in:
yhh
2021-08-09 19:08:27 +08:00
parent f533186c8d
commit 3486d403d2
10 changed files with 222 additions and 527 deletions

View File

@@ -60,5 +60,17 @@ module es {
public static invertFlags(self: Ref<number>) {
self.value = ~self.value;
}
/**
* 打印 number 的二进制表示。 方便调试 number 标志
*/
public static binaryStringRepresentation(self: number,
leftPadWidth: number = 10) {
let str = self.toString(2);
while (str.length < (leftPadWidth || 2)) {
str = '0' + str;
}
return str;
}
}
}