You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
🆙 added latest changes
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": [ "@nitrots/eslint-config" ]
|
||||
}
|
||||
@@ -5,14 +5,12 @@
|
||||
"type": "module",
|
||||
"license": "GPL-3.0",
|
||||
"scripts": {
|
||||
"compile": "tsc --project ./tsconfig.json --noEmit false",
|
||||
"eslint": "eslint ./src --fix"
|
||||
"compile": "tsc --project ./tsconfig.json --noEmit false"
|
||||
},
|
||||
"main": "./index",
|
||||
"dependencies": {
|
||||
"@nitrots/api": "1.0.0",
|
||||
"@nitrots/assets": "1.0.0",
|
||||
"@nitrots/eslint-config": "1.0.0",
|
||||
"@nitrots/events": "1.0.0",
|
||||
"@nitrots/utils": "1.0.0"
|
||||
},
|
||||
|
||||
@@ -141,7 +141,7 @@ export class AvatarStructure
|
||||
|
||||
public getAnimation(k: string): Animation
|
||||
{
|
||||
return this._animationManager.getAnimation(k) as Animation;
|
||||
return this._animationManager.getAnimation(k);
|
||||
}
|
||||
|
||||
public getActionDefinition(k: string): ActionDefinition
|
||||
@@ -319,7 +319,7 @@ export class AvatarStructure
|
||||
let _local_20: AvatarAnimationFrame[] = [];
|
||||
let _local_36: IPartColor = null;
|
||||
|
||||
if(!_arg_3 == null) return [];
|
||||
if(!_arg_3) return [];
|
||||
|
||||
const _local_9 = this._partSetsData.getActiveParts(_arg_3.definition);
|
||||
const _local_11: AvatarImagePartContainer[] = [];
|
||||
|
||||
@@ -135,7 +135,19 @@ export class AvatarActionManager
|
||||
validatedActions.push(action);
|
||||
}
|
||||
|
||||
validatedActions.sort(this.sortByPrecedence);
|
||||
validatedActions.sort((actionOne: IActiveActionData, actionTwo: IActiveActionData) =>
|
||||
{
|
||||
if(!actionOne || !actionTwo) return 0;
|
||||
|
||||
const precedenceOne = actionOne.definition.precedence;
|
||||
const precedenceTwo = actionTwo.definition.precedence;
|
||||
|
||||
if(precedenceOne < precedenceTwo) return 1;
|
||||
|
||||
if(precedenceOne > precedenceTwo) return -1;
|
||||
|
||||
return 0;
|
||||
});
|
||||
|
||||
return validatedActions;
|
||||
}
|
||||
@@ -169,18 +181,4 @@ export class AvatarActionManager
|
||||
|
||||
return activeActions;
|
||||
}
|
||||
|
||||
private sortByPrecedence(actionOne: IActiveActionData, actionTwo: IActiveActionData): number
|
||||
{
|
||||
if(!actionOne || !actionTwo) return 0;
|
||||
|
||||
const precedenceOne = actionOne.definition.precedence;
|
||||
const precedenceTwo = actionTwo.definition.precedence;
|
||||
|
||||
if(precedenceOne < precedenceTwo) return 1;
|
||||
|
||||
if(precedenceOne > precedenceTwo) return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ export class GeometryItem extends Node3D
|
||||
|
||||
public toString(): string
|
||||
{
|
||||
return ((((this._id + ': ') + this.location) + ' - ') + this.transformedLocation);
|
||||
return `${this._id}: ${this.location.toString()} - ${this.transformedLocation.toString()}`;
|
||||
}
|
||||
|
||||
public get isDynamic(): boolean
|
||||
|
||||
@@ -25,7 +25,5 @@
|
||||
"ESNext"
|
||||
],
|
||||
"module": "ES6"
|
||||
},
|
||||
"include": [
|
||||
"src" ]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user