feat: Add isDestroy methods

This commit is contained in:
子沐呀
2024-10-12 12:52:04 +08:00
Unverified
parent 116fb72122
commit f0ac6d4c41
2 changed files with 17 additions and 1 deletions
+9 -1
View File
@@ -2111,7 +2111,7 @@ class GMLIB_BinaryStream {
/** 数据包ID @type {number} */
#id = null;
/** 数据包是否被销毁 */
/** 数据包是否被销毁 @type {boolean} */
#destroy = false;
/**
@@ -2185,6 +2185,14 @@ class GMLIB_BinaryStream {
return this;
}
/**
* 数据包是否已被销毁
* @returns {boolean}
*/
isDestroy() {
return this.#destroy;
}
/**
* 重置数据包
* @returns {GMLIB_BinaryStream}