Changes on Attachment Manager.

Removed attachment due to failure in attachment manager.
Changed Database to Live Database -> will be changed after Master merge

Add to enteties.ts RageObject and RageObjectPool for Attachment Manager
This commit is contained in:
michael.reiswich
2021-04-03 16:06:44 +02:00
parent 894ae7465f
commit 0543775330
11 changed files with 147 additions and 30 deletions

View File

@@ -6,6 +6,7 @@
players: IPlayerPool;
vehicles: IVehiclePool;
attachments: IEntityAttachmentPool;
objects: IObjectPool;
disableDefaultEngineBehaviour(): void;
}
@@ -54,6 +55,10 @@ interface IPlayer extends IEntity {
vehicle: IVehicle;
}
interface IObject extends IEntity {
__attachmentData: object;
}
interface IEntityAttachments {
remoteId: any;
__attachments: any[];
@@ -74,6 +79,10 @@ interface IEntityPool<TEntity> {
forEach(fn: (entity: TEntity) => void): void;
}
interface IObjectPool extends IEntityPool<IObject> {
setData(entity: ObjectMp, attachmentData: object): void;
}
interface IPlayerPool extends IEntityPool<IPlayer> {
local: IPlayer;
}
@@ -149,6 +158,7 @@ export {
IBrowser,
IPlayer,
IObject,
IEntityAttachments,
IEntityAttachmentPool,
IVehicle,
@@ -156,6 +166,7 @@ export {
IEntityPool,
IPlayerPool,
IVehiclePool,
IObjectPool,
EventName,
Key,