feat: Add isDestroy methods
This commit is contained in:
+9
-1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user