Class BaseObject
Inheritance
BaseObject
BaseObject
Inherited Members
shared.BaseObject.constructor
shared.BaseObject.type
shared.BaseObject.valid
shared.BaseObject.id
shared.BaseObject.destroy
shared.BaseObject.getMetaDataKeys
shared.BaseObject.getSyncedMeta
shared.BaseObject.hasSyncedMeta
shared.BaseObject.getSyncedMetaKeys
shared.BaseObject.refCount
Package: @altmp/altv-types
Syntax
class BaseObject extends BaseObject
Methods
|
Improve this Doc
View Source
getByID(BaseObjectType, number)
Declaration
public static getByID(type: BaseObjectType, id: number): null | BaseObject
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public deleteMeta(key: string): void
Parameters
Type |
Name |
Description |
string |
key |
|
|
Improve this Doc
View Source
Declaration
public deleteMeta<K extends never>(key: K): void
Parameters
Type |
Name |
Description |
K |
key |
|
|
Improve this Doc
View Source
Declaration
public hasMeta(key: string): boolean
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public hasMeta<K extends never>(key: K): boolean
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getMeta<K extends string>(key: Exclude<K, never>): unknown
Parameters
Type |
Name |
Description |
Exclude<K, never> |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getMeta<K extends never>(key: K): undefined | ICustomBaseObjectMeta[K]
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getMeta<V extends unknown>(key: string): undefined | V
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
Type |
Description |
undefined | V |
|
|
Improve this Doc
View Source
Declaration
public setMeta<K extends string>(key: K, value: InterfaceValueByKey<ICustomBaseObjectMeta, K, unknown, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta<K extends never>(key: K, value: ICustomBaseObjectMeta[K]): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta<V extends unknown, K extends string>(key: K, value: InterfaceValueByKey<ICustomBaseObjectMeta, K, V, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta(values: MetaValues<ICustomBaseObjectMeta>): void
Parameters
|
Improve this Doc
View Source
Declaration
public deleteSyncedMeta(key: string): void
Parameters
Type |
Name |
Description |
string |
key |
|
|
Improve this Doc
View Source
Declaration
public deleteSyncedMeta<K extends never>(key: K): void
Parameters
Type |
Name |
Description |
K |
key |
|
|
Improve this Doc
View Source
Declaration
public setSyncedMeta<K extends string>(key: K, value: InterfaceValueByKey<ICustomBaseObjectSyncedMeta, K, unknown, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setSyncedMeta<K extends never>(key: K, value: ICustomBaseObjectSyncedMeta[K]): void
Parameters
|
Improve this Doc
View Source
Declaration
public setSyncedMeta<V extends unknown, K extends string>(key: K, value: InterfaceValueByKey<ICustomBaseObjectSyncedMeta, K, V, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setSyncedMeta(values: MetaValues<ICustomBaseObjectSyncedMeta>): void
Parameters