mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
_Str_1577 -> objectId
This commit is contained in:
parent
9ed63945a4
commit
2721da03b7
@ -5,7 +5,7 @@ import { UserDataManager } from './UserDataManager';
|
||||
|
||||
export interface IRoomSession extends IDisposable
|
||||
{
|
||||
openGift(_Str_1577: number): void;
|
||||
openGift(objectId: number): void;
|
||||
setConnection(connection: IConnection): void;
|
||||
setControllerLevel(level: number): void;
|
||||
setOwnRoomIndex(roomIndex: number): void;
|
||||
|
@ -257,9 +257,9 @@ export class RoomSession extends Disposable implements IRoomSession
|
||||
this._connection.send(new MoodlightSettingsComposer());
|
||||
}
|
||||
|
||||
public openGift(_Str_1577: number): void
|
||||
public openGift(objectId: number): void
|
||||
{
|
||||
this._connection.send(new OpenPresentComposer(_Str_1577));
|
||||
this._connection.send(new OpenPresentComposer(objectId));
|
||||
}
|
||||
|
||||
public get connection(): IConnection
|
||||
|
@ -21,7 +21,7 @@ export class RoomSessionPetPackageEvent extends RoomSessionEvent
|
||||
this._nameValidationInfo = _arg_6;
|
||||
}
|
||||
|
||||
public get _Str_1577(): number
|
||||
public get objectId(): number
|
||||
{
|
||||
return this._objectId;
|
||||
}
|
||||
|
@ -429,7 +429,7 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas
|
||||
}
|
||||
|
||||
const cache = this.getCacheItem(identifier);
|
||||
cache._Str_1577 = object.instanceId;
|
||||
cache.objectId = object.instanceId;
|
||||
|
||||
const locationCache = cache.location;
|
||||
const sortableCache = cache.sprites;
|
||||
|
2
src/room/renderer/cache/RoomObjectCache.ts
vendored
2
src/room/renderer/cache/RoomObjectCache.ts
vendored
@ -79,7 +79,7 @@ export class RoomObjectCache
|
||||
{
|
||||
const data = new RoomObjectSpriteData();
|
||||
|
||||
data.objectId = item._Str_1577;
|
||||
data.objectId = item.objectId;
|
||||
data.x = sprite.x;
|
||||
data.y = sprite.y;
|
||||
data.z = sprite.z;
|
||||
|
@ -40,12 +40,12 @@ export class RoomObjectCacheItem
|
||||
}
|
||||
}
|
||||
|
||||
public get _Str_1577(): number
|
||||
public get objectId(): number
|
||||
{
|
||||
return this._objectId;
|
||||
}
|
||||
|
||||
public set _Str_1577(k:number)
|
||||
public set objectId(k:number)
|
||||
{
|
||||
this._objectId = k;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user