This commit is contained in:
Bill 2021-06-30 05:02:09 -04:00
parent 49d684c3a7
commit f89d122ad7
12 changed files with 61 additions and 27 deletions

View File

@ -0,0 +1,4 @@
import { Filter } from 'pixi.js';
export class NitroFilter extends Filter
{}

View File

@ -1,3 +1,7 @@
export * from './AdvancedMap'; export * from './AdvancedMap';
export * from './INitroPoint';
export * from './NitroAdjustmentFilter'; export * from './NitroAdjustmentFilter';
export * from './NitroFilter';
export * from './NitroPoint';
export * from './NitroRectangle';
export * from './NitroTimer'; export * from './NitroTimer';

View File

@ -34,6 +34,7 @@ LegacyExternalInterface.available;
settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false; settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false;
settings.SCALE_MODE = SCALE_MODES.NEAREST; settings.SCALE_MODE = SCALE_MODES.NEAREST;
settings.ROUND_PIXELS = true;
export class Nitro extends Application implements INitro export class Nitro extends Application implements INitro
{ {

View File

@ -1,20 +1,53 @@
export * from './availability'; export * from './availability';
export * from './avatar'; export * from './avatar';
export * from './catalog'; export * from './catalog';
export * from './catalog/marketplace';
export * from './client'; export * from './client';
export * from './desktop'; export * from './desktop';
export * from './friendlist'; export * from './friendlist';
export * from './game'; export * from './game';
export * from './generic'; export * from './generic';
export * from './group'; export * from './group';
export * from './handshake';
export * from './help'; export * from './help';
export * from './IncomingHeader'; export * from './IncomingHeader';
export * from './inventory'; 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 './moderation';
export * from './modtool'; export * from './modtool';
export * from './navigator'; export * from './navigator';
export * from './notifications'; export * from './notifications';
export * from './room'; 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 './roomevents';
export * from './security'; export * from './security';
export * from './user'; 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';

View File

@ -26,7 +26,7 @@ export class PetInfoParser implements IMessageParser
private _maximumTimeToLive: number; private _maximumTimeToLive: number;
private _remainingTimeToLive: number; private _remainingTimeToLive: number;
private _remainingGrowTime: number; private _remainingGrowTime: number;
private _skillTresholds: number[]; private _skillThresholds: number[];
private _publiclyRideable: number; private _publiclyRideable: number;
private _unknownRarity: number; private _unknownRarity: number;
private _publiclyBreedable: boolean; private _publiclyBreedable: boolean;
@ -34,7 +34,7 @@ export class PetInfoParser implements IMessageParser
public flush(): boolean public flush(): boolean
{ {
this._id = -1; this._id = -1;
this._skillTresholds = []; this._skillThresholds = [];
return true; return true;
} }
@ -65,12 +65,12 @@ export class PetInfoParser implements IMessageParser
while(total > 0) while(total > 0)
{ {
this._skillTresholds.push(wrapper.readInt()); this._skillThresholds.push(wrapper.readInt());
total--; total--;
} }
this._skillTresholds.sort(); this._skillThresholds.sort();
this._publiclyRideable = wrapper.readInt(); this._publiclyRideable = wrapper.readInt();
this._breedable = wrapper.readBoolean(); this._breedable = wrapper.readBoolean();
this._fullyGrown = wrapper.readBoolean(); this._fullyGrown = wrapper.readBoolean();
@ -201,7 +201,7 @@ export class PetInfoParser implements IMessageParser
public get skillTresholds(): number[] public get skillTresholds(): number[]
{ {
return this._skillTresholds; return this._skillThresholds;
} }
public get publiclyRideable(): number public get publiclyRideable(): number

View File

@ -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 { IAssetData } from '../../../../../core/asset/interfaces';
import { RoomObjectVariable } from '../../RoomObjectVariable';
import { RoomObjectUpdateMessage } from '../../../../../room/messages/RoomObjectUpdateMessage'; import { RoomObjectUpdateMessage } from '../../../../../room/messages/RoomObjectUpdateMessage';
import { RoomObjectWidgetRequestEvent } from '../../../events/RoomObjectWidgetRequestEvent';
import { ObjectDataUpdateMessage } from '../../../messages/ObjectDataUpdateMessage'; import { ObjectDataUpdateMessage } from '../../../messages/ObjectDataUpdateMessage';
import { StringDataType } from '../../data/type/StringDataType'; import { StringDataType } from '../../data/type/StringDataType';
import { RoomObjectVariable } from '../../RoomObjectVariable';
import { FurnitureMultiStateLogic } from './FurnitureMultiStateLogic';
export class FurnitureFriendLogic extends FurnitureMultiStateLogic export class FurnitureFriendLogic extends FurnitureMultiStateLogic
{ {
@ -23,25 +22,24 @@ export class FurnitureFriendLogic extends FurnitureMultiStateLogic
public initialize(asset: IAssetData): void public initialize(asset: IAssetData): void
{ {
super.initialize(asset); super.initialize(asset);
if(this.object) this.object.model.setValue(RoomObjectVariable.FURNITURE_FRIENDFURNI_ENGRAVING, this.engravingDialogType); if(this.object) this.object.model.setValue(RoomObjectVariable.FURNITURE_FRIENDFURNI_ENGRAVING, this.engravingDialogType);
} }
public processUpdateMessage(message: RoomObjectUpdateMessage): void public processUpdateMessage(message: RoomObjectUpdateMessage): void
{ {
// chheck if not ObjectSelectedMessage
const dataMessage = <ObjectDataUpdateMessage>message;
if(message instanceof ObjectDataUpdateMessage) if(message instanceof ObjectDataUpdateMessage)
{ {
const local4 = <StringDataType>dataMessage.data; const data = (message.data as StringDataType);
if(local4)
if(data)
{ {
this._state = local4.state; this._state = data.state;
} }
else else
{ {
this._state =dataMessage.state; this._state = message.state;
} }
} }
super.processUpdateMessage(message); super.processUpdateMessage(message);
@ -65,8 +63,5 @@ export class FurnitureFriendLogic extends FurnitureMultiStateLogic
{ {
super.useObject(); super.useObject();
} }
} }
} }

View File

@ -17,7 +17,7 @@
private _saddle: boolean; private _saddle: boolean;
private _rider: boolean; private _rider: boolean;
private _breedable: boolean; private _breedable: boolean;
private _skillTresholds: number[]; private _skillThresholds: number[];
private _publiclyRideable: number; private _publiclyRideable: number;
private _fullyGrown: boolean; private _fullyGrown: boolean;
private _dead: boolean; private _dead: boolean;
@ -190,12 +190,12 @@
public get skillTresholds(): number[] public get skillTresholds(): number[]
{ {
return this._skillTresholds; return this._skillThresholds;
} }
public set skillTresholds(k: number[]) public set skillTresholds(k: number[])
{ {
this._skillTresholds = k; this._skillThresholds = k;
} }
public get publiclyRideable(): number public get publiclyRideable(): number

View File

@ -1,9 +1,6 @@
export * from './ColorConverter'; export * from './ColorConverter';
export * from './INitroPoint';
export * from './IRoomGeometry'; export * from './IRoomGeometry';
export * from './IVector3D'; export * from './IVector3D';
export * from './NitroPoint';
export * from './NitroRectangle';
export * from './NumberBank'; export * from './NumberBank';
export * from './PointMath'; export * from './PointMath';
export * from './Rasterizer'; export * from './Rasterizer';