gruppe kosten
This commit is contained in:
@@ -114,6 +114,7 @@ class RageEntityAttachmentPool implements IEntityAttachmentPool {
|
||||
}
|
||||
|
||||
set(entity: IEntity, attachments: any[], attachmentObjects: any[]): IEntityAttachments {
|
||||
|
||||
if (!this.attachmentPool) {
|
||||
let e = new RageAttachments(entity, attachments, attachmentObjects);
|
||||
this.attachmentPool = [];
|
||||
@@ -125,10 +126,10 @@ class RageEntityAttachmentPool implements IEntityAttachmentPool {
|
||||
for (let obj of this.attachmentPool.keys()) {
|
||||
if (entity.remoteId == this.attachmentPool[obj].remoteId) { this.remove(entity); }
|
||||
}
|
||||
|
||||
let e = new RageAttachments(entity, attachments, attachmentObjects);
|
||||
this.attachmentPool.push(e);
|
||||
|
||||
return e;
|
||||
return e;
|
||||
}
|
||||
|
||||
at(remoteId: any): IEntityAttachments {
|
||||
|
||||
Reference in New Issue
Block a user