mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
Updates
This commit is contained in:
parent
49d684c3a7
commit
f89d122ad7
4
src/core/utils/NitroFilter.ts
Normal file
4
src/core/utils/NitroFilter.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { Filter } from 'pixi.js';
|
||||
|
||||
export class NitroFilter extends Filter
|
||||
{}
|
@ -1,3 +1,7 @@
|
||||
export * from './AdvancedMap';
|
||||
export * from './INitroPoint';
|
||||
export * from './NitroAdjustmentFilter';
|
||||
export * from './NitroFilter';
|
||||
export * from './NitroPoint';
|
||||
export * from './NitroRectangle';
|
||||
export * from './NitroTimer';
|
||||
|
@ -34,6 +34,7 @@ LegacyExternalInterface.available;
|
||||
|
||||
settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false;
|
||||
settings.SCALE_MODE = SCALE_MODES.NEAREST;
|
||||
settings.ROUND_PIXELS = true;
|
||||
|
||||
export class Nitro extends Application implements INitro
|
||||
{
|
||||
|
@ -1,20 +1,53 @@
|
||||
export * from './availability';
|
||||
export * from './avatar';
|
||||
export * from './catalog';
|
||||
export * from './catalog/marketplace';
|
||||
export * from './client';
|
||||
export * from './desktop';
|
||||
export * from './friendlist';
|
||||
export * from './game';
|
||||
export * from './generic';
|
||||
export * from './group';
|
||||
export * from './handshake';
|
||||
export * from './help';
|
||||
export * from './IncomingHeader';
|
||||
export * from './inventory';
|
||||
export * from './inventory/achievements';
|
||||
export * from './inventory/avatareffect';
|
||||
export * from './inventory/badges';
|
||||
export * from './inventory/bots';
|
||||
export * from './inventory/clothes';
|
||||
export * from './inventory/furni';
|
||||
export * from './inventory/furni/gifts';
|
||||
export * from './inventory/marketplace';
|
||||
export * from './inventory/pets';
|
||||
export * from './inventory/trading';
|
||||
export * from './moderation';
|
||||
export * from './modtool';
|
||||
export * from './navigator';
|
||||
export * from './notifications';
|
||||
export * from './room';
|
||||
export * from './room/access';
|
||||
export * from './room/access/doorbell';
|
||||
export * from './room/access/rights';
|
||||
export * from './room/bots';
|
||||
export * from './room/camera';
|
||||
export * from './room/data';
|
||||
export * from './room/engine';
|
||||
export * from './room/furniture';
|
||||
export * from './room/furniture/floor';
|
||||
export * from './room/furniture/wall';
|
||||
export * from './room/mapping';
|
||||
export * from './room/pet';
|
||||
export * from './room/session';
|
||||
export * from './room/unit';
|
||||
export * from './room/unit/chat';
|
||||
export * from './roomevents';
|
||||
export * from './security';
|
||||
export * from './user';
|
||||
export * from './user/access';
|
||||
export * from './user/data';
|
||||
export * from './user/inventory';
|
||||
export * from './user/inventory/currency';
|
||||
export * from './user/inventory/subscription';
|
||||
export * from './user/wardrobe';
|
||||
|
@ -26,15 +26,15 @@ export class PetInfoParser implements IMessageParser
|
||||
private _maximumTimeToLive: number;
|
||||
private _remainingTimeToLive: number;
|
||||
private _remainingGrowTime: number;
|
||||
private _skillTresholds: number[];
|
||||
private _skillThresholds: number[];
|
||||
private _publiclyRideable: number;
|
||||
private _unknownRarity: number;
|
||||
private _publiclyBreedable: boolean;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._id = -1;
|
||||
this._skillTresholds = [];
|
||||
this._id = -1;
|
||||
this._skillThresholds = [];
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -65,12 +65,12 @@ export class PetInfoParser implements IMessageParser
|
||||
|
||||
while(total > 0)
|
||||
{
|
||||
this._skillTresholds.push(wrapper.readInt());
|
||||
this._skillThresholds.push(wrapper.readInt());
|
||||
|
||||
total--;
|
||||
}
|
||||
|
||||
this._skillTresholds.sort();
|
||||
this._skillThresholds.sort();
|
||||
this._publiclyRideable = wrapper.readInt();
|
||||
this._breedable = wrapper.readBoolean();
|
||||
this._fullyGrown = wrapper.readBoolean();
|
||||
@ -201,7 +201,7 @@ export class PetInfoParser implements IMessageParser
|
||||
|
||||
public get skillTresholds(): number[]
|
||||
{
|
||||
return this._skillTresholds;
|
||||
return this._skillThresholds;
|
||||
}
|
||||
|
||||
public get publiclyRideable(): number
|
||||
|
@ -1,11 +1,10 @@
|
||||
import { FurnitureMultiStateLogic } from './FurnitureMultiStateLogic';
|
||||
import { RoomObjectBadgeAssetEvent } from '../../../events/RoomObjectBadgeAssetEvent';
|
||||
import { RoomObjectWidgetRequestEvent } from '../../../events/RoomObjectWidgetRequestEvent';
|
||||
import { IAssetData } from '../../../../../core/asset/interfaces';
|
||||
import { RoomObjectVariable } from '../../RoomObjectVariable';
|
||||
import { RoomObjectUpdateMessage } from '../../../../../room/messages/RoomObjectUpdateMessage';
|
||||
import { RoomObjectWidgetRequestEvent } from '../../../events/RoomObjectWidgetRequestEvent';
|
||||
import { ObjectDataUpdateMessage } from '../../../messages/ObjectDataUpdateMessage';
|
||||
import { StringDataType } from '../../data/type/StringDataType';
|
||||
import { RoomObjectVariable } from '../../RoomObjectVariable';
|
||||
import { FurnitureMultiStateLogic } from './FurnitureMultiStateLogic';
|
||||
|
||||
export class FurnitureFriendLogic extends FurnitureMultiStateLogic
|
||||
{
|
||||
@ -23,25 +22,24 @@ export class FurnitureFriendLogic extends FurnitureMultiStateLogic
|
||||
public initialize(asset: IAssetData): void
|
||||
{
|
||||
super.initialize(asset);
|
||||
|
||||
if(this.object) this.object.model.setValue(RoomObjectVariable.FURNITURE_FRIENDFURNI_ENGRAVING, this.engravingDialogType);
|
||||
}
|
||||
|
||||
public processUpdateMessage(message: RoomObjectUpdateMessage): void
|
||||
{
|
||||
// chheck if not ObjectSelectedMessage
|
||||
const dataMessage = <ObjectDataUpdateMessage>message;
|
||||
if(message instanceof ObjectDataUpdateMessage)
|
||||
{
|
||||
const local4 = <StringDataType>dataMessage.data;
|
||||
if(local4)
|
||||
const data = (message.data as StringDataType);
|
||||
|
||||
if(data)
|
||||
{
|
||||
this._state = local4.state;
|
||||
this._state = data.state;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._state =dataMessage.state;
|
||||
this._state = message.state;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
super.processUpdateMessage(message);
|
||||
@ -65,8 +63,5 @@ export class FurnitureFriendLogic extends FurnitureMultiStateLogic
|
||||
{
|
||||
super.useObject();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
private _saddle: boolean;
|
||||
private _rider: boolean;
|
||||
private _breedable: boolean;
|
||||
private _skillTresholds: number[];
|
||||
private _skillThresholds: number[];
|
||||
private _publiclyRideable: number;
|
||||
private _fullyGrown: boolean;
|
||||
private _dead: boolean;
|
||||
@ -190,12 +190,12 @@
|
||||
|
||||
public get skillTresholds(): number[]
|
||||
{
|
||||
return this._skillTresholds;
|
||||
return this._skillThresholds;
|
||||
}
|
||||
|
||||
public set skillTresholds(k: number[])
|
||||
{
|
||||
this._skillTresholds = k;
|
||||
this._skillThresholds = k;
|
||||
}
|
||||
|
||||
public get publiclyRideable(): number
|
||||
|
@ -237,7 +237,7 @@ export class RoomUsersHandler extends BaseHandler
|
||||
petData.fullyGrown = parser.fullyGrown;
|
||||
petData.rarityLevel = parser.rarityLevel;
|
||||
petData.dead = parser.dead;
|
||||
petData.skillTresholds = parser.skillTresholds;
|
||||
petData.skillTresholds = parser.skillTresholds;
|
||||
petData.publiclyRideable = parser.publiclyRideable;
|
||||
petData.maximumTimeToLive = parser.maximumTimeToLive;
|
||||
petData.remainingTimeToLive = parser.remainingTimeToLive;
|
||||
|
@ -1,9 +1,6 @@
|
||||
export * from './ColorConverter';
|
||||
export * from './INitroPoint';
|
||||
export * from './IRoomGeometry';
|
||||
export * from './IVector3D';
|
||||
export * from './NitroPoint';
|
||||
export * from './NitroRectangle';
|
||||
export * from './NumberBank';
|
||||
export * from './PointMath';
|
||||
export * from './Rasterizer';
|
||||
|
Loading…
Reference in New Issue
Block a user