添加/修改

- 添加entityHasFamily,getPlayerDestroyBlockProgress接口
- 修改6事件名
This commit is contained in:
子沐呀
2024-08-01 18:56:03 +08:00
Unverified
parent a01ba9655d
commit b72c4564bc
5 changed files with 58 additions and 14 deletions
+13 -1
View File
@@ -1073,6 +1073,12 @@ interface Player {
/** 物品 */
item: Item
): void;
/** (GMLIB)获取玩家破坏方块所需时间 */
getDestroyProgress(
/** 方块对象 */
block: Block
): number;
}
interface Entity {
@@ -1123,8 +1129,14 @@ interface Entity {
/** (GMLIB)获取实体的命名 */
getNameTag(): string;
/** 获取实体的主人 */
/** (GMLIB)获取实体的主人 */
getEntityOwner(): Entity | null;
/** (GMLIB)实体是否包含在某类里 */
hasFamily(
/** 实体族 */
family: string
): boolean;
}
interface Block {