import { Vector2 } from '../types/Vector2'; import { Vector3 } from '../types/Vector3'; import { Vector4 } from '../types/Vector4'; import { Color } from '../types/Color'; import { IHandle } from '../types/IHandle'; import { registerHandle, createFromHandle } from '../types/HandleRegistry'; import { inv, rai, raf, ras, rav, pvi, pvf, pvv, pvii, pvfi, _h, f, int, uint, float, Hash, u8, u16, u32, u64, i8, i16, i32, i64 } from '../types/NativeAliases'; export class ItemSet implements IHandle { constructor(public handle: number) {} static fromHandle(handle: number): ItemSet | null { return handle === 0 ? null : new ItemSet(handle); } cleanItemset(): void { inv('0x85F3A86CA9021FB0', this.handle); } destroyItemset(): void { inv('0x712BC69F10549B92', this.handle); } clearItemset(): void { inv('0x20A4BF0E09BEE146', this.handle); } /** * @returns */ get IsValid(): boolean { return !!inv('0xD30765D153EF5C76', this.handle, rai()); } /** * @returns */ get Size(): int { return inv('0x55F2E375AC6018A9', this.handle, rai()); } } registerHandle('ItemSet', ItemSet);