simplified-mojang-jsons 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builders/resources/animControllers/AnimControllerTemplateBuilder.d.ts +2 -2
- package/dist/builders/resources/animControllers/AnimControllerTemplateBuilder.d.ts.map +1 -1
- package/dist/builders/resources/animations/AnimationTemplateBuilder.d.ts +2 -2
- package/dist/builders/resources/animations/AnimationTemplateBuilder.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/dist/templates/resources/animationControllers/AllayAnimationControllers.d.ts.map +1 -1
- package/dist/types/resources/animControllers/AnimControllerTemplate.d.ts +40 -4
- package/dist/types/resources/animControllers/AnimControllerTemplate.d.ts.map +1 -1
- package/dist/types/resources/animations/AnimationTemplate.d.ts +11 -1
- package/dist/types/resources/animations/AnimationTemplate.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RPAnimControllerDefinition, RPAnimControllerOverride, RPControllersMap } from "../../../types/resources/animControllers/AnimControllerTemplate";
|
|
1
|
+
import { RPAnimControllerDefinition, RPAnimControllerOverride, RPControllersMap, RPNoExtraStates } from "../../../types/resources/animControllers/AnimControllerTemplate";
|
|
2
2
|
/**
|
|
3
3
|
* Funcion principal de fabrica para la creacion de Controladores de animacion para un RP a patir de una definicion fija.
|
|
4
4
|
* @param {TDef} def Definicion base de los parametros para la plantilla fija.
|
|
@@ -7,5 +7,5 @@ import { RPAnimControllerDefinition, RPAnimControllerOverride, RPControllersMap
|
|
|
7
7
|
* @author HaJuegos - 27-10-2026
|
|
8
8
|
* @export
|
|
9
9
|
*/
|
|
10
|
-
export declare function createRPAnimController<const TDef extends RPAnimControllerDefinition>(def: TDef): (over?: RPAnimControllerOverride<RPControllersMap<TDef['animControllers']>>) => string;
|
|
10
|
+
export declare function createRPAnimController<const TDef extends RPAnimControllerDefinition>(def: TDef & RPNoExtraStates<TDef>): (over?: RPAnimControllerOverride<RPControllersMap<TDef['animControllers']>>) => string;
|
|
11
11
|
//# sourceMappingURL=AnimControllerTemplateBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimControllerTemplateBuilder.d.ts","sourceRoot":"","sources":["../../../../src/builders/resources/animControllers/AnimControllerTemplateBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAA8B,gBAAgB,EAAE,MAAM,iEAAiE,CAAC;
|
|
1
|
+
{"version":3,"file":"AnimControllerTemplateBuilder.d.ts","sourceRoot":"","sources":["../../../../src/builders/resources/animControllers/AnimControllerTemplateBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAA8B,gBAAgB,EAAE,eAAe,EAAE,MAAM,iEAAiE,CAAC;AA8ItM;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAClC,KAAK,CAAC,IAAI,SAAS,0BAA0B,EAC/C,GAAG,EAAE,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC,WACjB,wBAAwB,CAAC,gBAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,YAGpF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnimationParams, RPAnimationDefinition, RPAnimationOverride, RPAnimationsMap } from "../../../types/resources/animations/AnimationTemplate";
|
|
1
|
+
import { AnimationParams, RPAnimationDefinition, RPAnimationOverride, RPAnimationsMap, RPNoExtraAnimations } from "../../../types/resources/animations/AnimationTemplate";
|
|
2
2
|
import { ResourceAnimationBuilder } from "./AnimationBuilder";
|
|
3
3
|
/**
|
|
4
4
|
* Clase principal final que crea una plantilla definitiva para la creacion de una animacion.
|
|
@@ -35,6 +35,6 @@ export declare class FinalRPAnimationTemplateBuilder extends ResourceAnimationBu
|
|
|
35
35
|
*/
|
|
36
36
|
export declare function createRPAnimation<const TAnims extends readonly AnimationParams[]>(def: {
|
|
37
37
|
formatVersion?: RPAnimationDefinition['formatVersion'];
|
|
38
|
-
animations: TAnims
|
|
38
|
+
animations: TAnims & RPNoExtraAnimations<TAnims>;
|
|
39
39
|
}): (over?: RPAnimationOverride<RPAnimationsMap<TAnims>>) => string;
|
|
40
40
|
//# sourceMappingURL=AnimationTemplateBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationTemplateBuilder.d.ts","sourceRoot":"","sources":["../../../../src/builders/resources/animations/AnimationTemplateBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAC;
|
|
1
|
+
{"version":3,"file":"AnimationTemplateBuilder.d.ts","sourceRoot":"","sources":["../../../../src/builders/resources/animations/AnimationTemplateBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC1K,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE9D;;;;;;GAMG;AACH,qBAAa,+BAAgC,SAAQ,wBAAwB;IACzE;;;;;;;OAOG;IACH,YAAoB,GAAG,EAAE,qBAAqB,EAAE,IAAI,GAAE,mBAAmB,CAAC,GAAG,CAAM,EAgFlF;IAED;;;;;OAKG;IACI,UAAU,IAAI,MAAM,CAE1B;CACJ;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC7B,KAAK,CAAC,MAAM,SAAS,SAAS,eAAe,EAAE,EACjD,GAAG,EAAE;IAAE,aAAa,CAAC,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;CAAE,WAClG,mBAAmB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,YAI7D"}
|
package/dist/index.js
CHANGED
|
@@ -208397,7 +208397,7 @@ var FinalRPAnimControllerBuilderTemplate = class _FinalRPAnimControllerBuilderTe
|
|
|
208397
208397
|
const key = (x) => JSON.stringify(x);
|
|
208398
208398
|
const toRemove = new Set(val.map(key));
|
|
208399
208399
|
target[prop] = target[prop].filter((x) => {
|
|
208400
|
-
!toRemove.has(key(x));
|
|
208400
|
+
return !toRemove.has(key(x));
|
|
208401
208401
|
});
|
|
208402
208402
|
if (target[prop].length == 0) {
|
|
208403
208403
|
delete target[prop];
|