@nativewrappers/server 0.0.75 → 0.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/index.js +1 -1
- package/entities/BaseEntity.d.ts +3 -0
- package/enum/OrphanMode.d.ts +5 -0
- package/enum/index.d.ts +1 -0
- package/index.js +6 -0
- package/package.json +1 -1
package/common/index.js
CHANGED
package/entities/BaseEntity.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { PopulationType } from "../enum/PopulationType";
|
|
|
4
4
|
import type { Hash } from "../type/Hash";
|
|
5
5
|
import { Vector4 } from "../utils";
|
|
6
6
|
import { Vector3 } from "../utils";
|
|
7
|
+
import { OrphanMode } from "server/enum";
|
|
7
8
|
export declare class BaseEntity {
|
|
8
9
|
protected handle: number;
|
|
9
10
|
protected type: ClassTypes;
|
|
@@ -44,5 +45,7 @@ export declare class BaseEntity {
|
|
|
44
45
|
get IsVisible(): boolean;
|
|
45
46
|
get NetworkId(): number;
|
|
46
47
|
get IsNoLongerNeeded(): boolean;
|
|
48
|
+
get OrphanMode(): OrphanMode;
|
|
49
|
+
set OrphanMode(orphanMode: OrphanMode);
|
|
47
50
|
delete(): void;
|
|
48
51
|
}
|
package/enum/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -823,6 +823,12 @@ var BaseEntity = class _BaseEntity {
|
|
|
823
823
|
get IsNoLongerNeeded() {
|
|
824
824
|
return HasEntityBeenMarkedAsNoLongerNeeded(this.handle);
|
|
825
825
|
}
|
|
826
|
+
get OrphanMode() {
|
|
827
|
+
return GetEntityOrphanMode(this.Handle);
|
|
828
|
+
}
|
|
829
|
+
set OrphanMode(orphanMode) {
|
|
830
|
+
SetEntityOrphanMode(this.Handle, orphanMode);
|
|
831
|
+
}
|
|
826
832
|
delete() {
|
|
827
833
|
if (this.Exists) {
|
|
828
834
|
DeleteEntity(this.handle);
|