@idosgames/characters 0.1.7 → 0.2.0
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/{PartsManager-CmrzoyJR.d.cts → PartsManager-CjsNhtVp.d.cts} +1 -1
- package/dist/{PartsManager-BpAUMQXw.d.ts → PartsManager-DzJD-pyV.d.ts} +1 -1
- package/dist/{chunk-JZU255IQ.js → chunk-7P4UMCIQ.js} +1 -1
- package/dist/chunk-MNDPJKUD.js +1 -0
- package/dist/chunk-UFZRW76X.js +2 -0
- package/dist/{chunk-CMQ6UYQV.js → chunk-XUQ63CSO.js} +1 -1
- package/dist/{chunk-I7UPBAMR.js → chunk-YXOP7OHP.js} +1 -1
- package/dist/contract-BtI1o_ow.d.cts +49 -0
- package/dist/contract-BtI1o_ow.d.ts +49 -0
- package/dist/gltf/index.cjs +1 -1
- package/dist/gltf/index.d.cts +1 -1
- package/dist/gltf/index.d.ts +1 -1
- package/dist/gltf/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/rig2d/editor/index.cjs +2 -2
- package/dist/rig2d/editor/index.d.cts +3 -3
- package/dist/rig2d/editor/index.d.ts +3 -3
- package/dist/rig2d/editor/index.js +1 -1
- package/dist/rig2d/index.cjs +4 -4
- package/dist/rig2d/index.d.cts +4 -4
- package/dist/rig2d/index.d.ts +4 -4
- package/dist/rig2d/index.js +1 -1
- package/dist/rig2d/phaser/index.cjs +2 -2
- package/dist/rig2d/phaser/index.d.cts +2 -2
- package/dist/rig2d/phaser/index.d.ts +2 -2
- package/dist/rig2d/phaser/index.js +1 -1
- package/dist/rig2d/three/index.cjs +2 -2
- package/dist/rig2d/three/index.d.cts +2 -2
- package/dist/rig2d/three/index.d.ts +2 -2
- package/dist/rig2d/three/index.js +1 -1
- package/dist/{thumbnail-B7wrQe1B.d.ts → thumbnail-BRsomuLZ.d.ts} +1 -1
- package/dist/{thumbnail-B1WjbWcW.d.cts → thumbnail-CTpr-C1A.d.cts} +1 -1
- package/dist/voxel/index.cjs +31 -8
- package/dist/voxel/index.d.cts +1082 -27
- package/dist/voxel/index.d.ts +1082 -27
- package/dist/voxel/index.js +31 -8
- package/package.json +1 -1
- package/dist/chunk-64D567CX.js +0 -1
- package/dist/chunk-UUX4NEC2.js +0 -2
- package/dist/contract-DhZuKNIf.d.cts +0 -24
- package/dist/contract-DhZuKNIf.d.ts +0 -24
package/dist/voxel/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import { V as Viseme, E as Emotion,
|
|
3
|
-
export {
|
|
2
|
+
import { V as Viseme, E as Emotion, e as ActorPose, A as ActorSocket } from '../contract-BtI1o_ow.js';
|
|
3
|
+
export { k as EMOTIONS, p as isEmotion } from '../contract-BtI1o_ow.js';
|
|
4
4
|
import { R as RGBAImage } from '../image-D5NaQeFz.js';
|
|
5
5
|
|
|
6
6
|
type V3 = [number, number, number];
|
|
@@ -35,7 +35,7 @@ interface RigSocket {
|
|
|
35
35
|
at: V3;
|
|
36
36
|
}
|
|
37
37
|
/** Шаблоны, из которых выбирают ИИ и студия игры. */
|
|
38
|
-
declare const RIG_IDS: readonly ["humanoid", "quadruped", "flyer", "blob"];
|
|
38
|
+
declare const RIG_IDS: readonly ["humanoid", "quadruped", "flyer", "blob", "swimmer"];
|
|
39
39
|
/**
|
|
40
40
|
* Скелет аватара аккаунта (эталон voxel-avatar-v1, `avatar/`). Не в RIG_IDS: облик аватара
|
|
41
41
|
* собирают вещи платформы, а не ИИ или студия игры, поэтому в их списках его нет.
|
|
@@ -80,12 +80,13 @@ type FaceName = (typeof FACE_NAMES)[number];
|
|
|
80
80
|
*/
|
|
81
81
|
declare const EXPRESSIONS: readonly ["neutral", "blink", "happy", "sad", "angry", "surprised", "scared", "tired", "hurt", "talk"];
|
|
82
82
|
type Expression = (typeof EXPRESSIONS)[number];
|
|
83
|
-
declare const WALK_STYLES: readonly ["normal", "bouncy", "heavy", "sneaky", "robotic"];
|
|
83
|
+
declare const WALK_STYLES: readonly ["normal", "bouncy", "heavy", "sneaky", "robotic", "swagger", "skip", "ninja", "zombie", "catwalk"];
|
|
84
84
|
type WalkStyle = (typeof WALK_STYLES)[number];
|
|
85
|
-
declare const IDLE_STYLES: readonly ["calm", "fidgety", "proud"];
|
|
85
|
+
declare const IDLE_STYLES: readonly ["calm", "fidgety", "proud", "cool", "shy", "ready", "bored"];
|
|
86
86
|
type IdleStyle = (typeof IDLE_STYLES)[number];
|
|
87
87
|
declare const CHARACTER_LIMITS: {
|
|
88
|
-
|
|
88
|
+
/** 96 с 26.11.2026 (было 64): аватару с вещью в каждом из 10 слотов нужно 74. */
|
|
89
|
+
readonly parts: 96;
|
|
89
90
|
readonly bones: 16;
|
|
90
91
|
readonly palette: 32;
|
|
91
92
|
readonly textures: 48;
|
|
@@ -103,6 +104,18 @@ interface PixelTex {
|
|
|
103
104
|
h: number;
|
|
104
105
|
rows: string[];
|
|
105
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Материал коробки (26.11.2026): стекло (прозрачное, с бликом: линзы, шлем космонавта), металл (блеск:
|
|
109
|
+
* оправа, цепь, лезвие), свечение (не темнеет в тени: нимб, визор, огонь ранца). Нет поля: ткань.
|
|
110
|
+
*/
|
|
111
|
+
declare const PART_MATERIALS: readonly ["glass", "metal", "glow"];
|
|
112
|
+
type PartMaterial = (typeof PART_MATERIALS)[number];
|
|
113
|
+
/**
|
|
114
|
+
* Форма коробки: `cylinder`, скруглённый цилиндр, вписанный в неё (круглая голова аватара, как у Roblox и LEGO:
|
|
115
|
+
* круглая в плане, плоский верх и низ с мягким краем). Нет поля: коробка.
|
|
116
|
+
*/
|
|
117
|
+
declare const PART_SHAPES: readonly ["cylinder"];
|
|
118
|
+
type PartShape = (typeof PART_SHAPES)[number];
|
|
106
119
|
interface CharPart {
|
|
107
120
|
/** Кость, вместе с которой двигается коробка. */
|
|
108
121
|
bone: string;
|
|
@@ -119,6 +132,15 @@ interface CharPart {
|
|
|
119
132
|
/** Ещё одна такая же коробка зеркально по x (на парную кость: armL ↔ armR). */
|
|
120
133
|
mirror?: boolean;
|
|
121
134
|
name?: string;
|
|
135
|
+
/** Скруглённый цилиндр вместо коробки. */
|
|
136
|
+
shape?: PartShape;
|
|
137
|
+
/** Материал (нет: ткань). */
|
|
138
|
+
mat?: PartMaterial;
|
|
139
|
+
/**
|
|
140
|
+
* Облегает эллипсоид своей кости: коробка гнётся по его поверхности (причёска и шапка на круглой
|
|
141
|
+
* голове). Без эллипсоида на кости ничего не меняется.
|
|
142
|
+
*/
|
|
143
|
+
wrap?: boolean;
|
|
122
144
|
}
|
|
123
145
|
/** Своя кость рецепта: хвост, уши, плащ… Или новая точка вращения кости шаблона (то же имя). */
|
|
124
146
|
interface ExtraBone {
|
|
@@ -137,6 +159,20 @@ interface FaceSpec {
|
|
|
137
159
|
rect: [number, number, number, number];
|
|
138
160
|
/** Выражение → id текстуры размером w×h. */
|
|
139
161
|
expressions: Partial<Record<Expression, string>>;
|
|
162
|
+
/**
|
|
163
|
+
* Рисованное лицо, как у аватара (стили из его набора: глаза, брови, рот). Где есть холст, `VoxelActor` рисует
|
|
164
|
+
* его поверх пиксельного (тому остаются сервер и игры без холста). Звери с 26.11.2026. Нет поля: только
|
|
165
|
+
* пиксельное, хэш старых рецептов не меняется.
|
|
166
|
+
*/
|
|
167
|
+
drawn?: FaceDrawn;
|
|
168
|
+
}
|
|
169
|
+
/** Рисованное лицо рецепта: названия стилей аватара (`EYE_STYLES`, `BROW_STYLES`, `MOUTH_STYLES`). */
|
|
170
|
+
interface FaceDrawn {
|
|
171
|
+
eyes: string;
|
|
172
|
+
brows: string;
|
|
173
|
+
mouth: string;
|
|
174
|
+
eyeColor: string;
|
|
175
|
+
cheeks: boolean;
|
|
140
176
|
}
|
|
141
177
|
interface CharStyle {
|
|
142
178
|
walk: WalkStyle;
|
|
@@ -245,10 +281,31 @@ interface BoneGeo {
|
|
|
245
281
|
uvs: Float32Array;
|
|
246
282
|
indices: Uint16Array;
|
|
247
283
|
}
|
|
284
|
+
/** Коробки одного материала на одной кости (стекло, металл, свечение): рисуются своей сеткой. */
|
|
285
|
+
interface MatGeo {
|
|
286
|
+
bone: string;
|
|
287
|
+
mat: PartMaterial;
|
|
288
|
+
positions: Float32Array;
|
|
289
|
+
normals: Float32Array;
|
|
290
|
+
uvs: Float32Array;
|
|
291
|
+
indices: Uint16Array;
|
|
292
|
+
}
|
|
248
293
|
interface FaceDecal {
|
|
249
294
|
bone: string;
|
|
250
295
|
/** 4 угла квада (TL, TR, BR, BL снаружи) относительно pivot кости, пиксели. */
|
|
251
296
|
corners: Float32Array;
|
|
297
|
+
/**
|
|
298
|
+
* Лицо на круглой голове: сетка (cols+1)×(rows+1) точек по поверхности эллипсоида (строки сверху вниз,
|
|
299
|
+
* в строке слева направо у смотрящего), их нормали и доли [0..1] по ширине и высоте лица для UV.
|
|
300
|
+
* Нет: плоский квад `corners`.
|
|
301
|
+
*/
|
|
302
|
+
grid?: {
|
|
303
|
+
cols: number;
|
|
304
|
+
rows: number;
|
|
305
|
+
positions: Float32Array;
|
|
306
|
+
normals: Float32Array;
|
|
307
|
+
t: Float32Array;
|
|
308
|
+
};
|
|
252
309
|
/** Выражение → [u0, v0, u1, v1] в атласе. */
|
|
253
310
|
uv: Partial<Record<Expression, [number, number, number, number]>>;
|
|
254
311
|
}
|
|
@@ -256,6 +313,8 @@ interface CharacterLayout {
|
|
|
256
313
|
hash: string;
|
|
257
314
|
rig: CharacterSpec["rig"];
|
|
258
315
|
bones: BoneGeo[];
|
|
316
|
+
/** Коробки со своим материалом (пусто у всех, где материалов нет). */
|
|
317
|
+
mats: MatGeo[];
|
|
259
318
|
atlas: {
|
|
260
319
|
w: number;
|
|
261
320
|
h: number;
|
|
@@ -287,6 +346,8 @@ interface CharacterAsset {
|
|
|
287
346
|
* (SkinnedMesh) вместо меша на каждую кость. null: коробок нет.
|
|
288
347
|
*/
|
|
289
348
|
readonly skinned: THREE.BufferGeometry | null;
|
|
349
|
+
/** Коробки со своим материалом (стекло, металл, свечение): по геометрии с весами на материал. */
|
|
350
|
+
readonly skinnedMats: ReadonlyMap<PartMaterial, THREE.BufferGeometry>;
|
|
290
351
|
readonly texture: THREE.DataTexture;
|
|
291
352
|
refs: number;
|
|
292
353
|
}
|
|
@@ -367,7 +428,8 @@ type AnimEvent = (typeof ANIM_EVENTS)[number];
|
|
|
367
428
|
*/
|
|
368
429
|
interface FacePainter {
|
|
369
430
|
readonly texture: THREE.Texture;
|
|
370
|
-
|
|
431
|
+
/** Выражение рецепта и эмоция, которую показывает персонаж (её рисует своё лицо, если умеет). */
|
|
432
|
+
paint(e: Expression, emotion?: Emotion): void;
|
|
371
433
|
}
|
|
372
434
|
interface CharacterViewOptions {
|
|
373
435
|
/** Табличка с именем над головой (сетевые игроки, NPC). */
|
|
@@ -378,7 +440,15 @@ interface CharacterViewOptions {
|
|
|
378
440
|
layer?: number;
|
|
379
441
|
/** Своё лицо вместо пиксельного лица рецепта. */
|
|
380
442
|
facePainter?: FacePainter | null;
|
|
443
|
+
/**
|
|
444
|
+
* Мягкий блик на коже и одежде (MeshStandardMaterial, шероховатый: объём и живость без «пластика», владелец 25.11.2026).
|
|
445
|
+
* Для витрин и аватара аккаунта (AvatarActor включает сам); сцене нужен свет аватара (`createAvatarLighting`).
|
|
446
|
+
* По умолчанию матовый Lambert: мобы и NPC в мире, игра освещает их своим светом клетки.
|
|
447
|
+
*/
|
|
448
|
+
gloss?: boolean;
|
|
381
449
|
}
|
|
450
|
+
/** Материал фигуры: матовый (мир игры) или глянцевый (аватар). У обоих color, emissive, map. */
|
|
451
|
+
type CharacterMaterial = THREE.MeshLambertMaterial | THREE.MeshStandardMaterial;
|
|
382
452
|
/**
|
|
383
453
|
* Принт: рисованная картинка на грани тела (логотип на груди футболки). Как рисованное лицо: своя
|
|
384
454
|
* текстура высокого разрешения поверх коробки, а не пиксели атласа. Координаты: пиксели модели.
|
|
@@ -405,6 +475,7 @@ declare class CharacterView {
|
|
|
405
475
|
private meshes;
|
|
406
476
|
private readonly material;
|
|
407
477
|
private readonly decalMat;
|
|
478
|
+
private readonly gloss;
|
|
408
479
|
private decal;
|
|
409
480
|
private expression;
|
|
410
481
|
private readonly sockets;
|
|
@@ -418,6 +489,9 @@ declare class CharacterView {
|
|
|
418
489
|
private prints;
|
|
419
490
|
private printMeshes;
|
|
420
491
|
private readonly printMats;
|
|
492
|
+
/** Материалы коробок со своим материалом: живут, пока жив вид. */
|
|
493
|
+
private readonly partMats;
|
|
494
|
+
private emotion;
|
|
421
495
|
constructor(spec?: CharacterSpec, opts?: CharacterViewOptions);
|
|
422
496
|
/** Рост модели в блоках. */
|
|
423
497
|
get height(): number;
|
|
@@ -439,12 +513,16 @@ declare class CharacterView {
|
|
|
439
513
|
setFacePainter(p: FacePainter | null): void;
|
|
440
514
|
/** Картинка декали: своё лицо (гладкое, с полупрозрачными краями) или атлас рецепта. */
|
|
441
515
|
private useFaceMap;
|
|
442
|
-
|
|
516
|
+
/**
|
|
517
|
+
* Выражение лица; `emotion`: эмоция, которую показывает персонаж (рисованное лицо аватара рисует и
|
|
518
|
+
* новые эмоции, у пиксельного рецепта их заменяет выражение по цепочке).
|
|
519
|
+
*/
|
|
520
|
+
setExpression(e: Expression, emotion?: Emotion): void;
|
|
443
521
|
/**
|
|
444
522
|
* Оба материала фигуры (тело и лицо): для игры, которая освещает её по-своему (voxelcraft: свет
|
|
445
523
|
* клетки, где стоит персонаж, той же формулой, что блоки). Живут, пока жив вид: build их не меняет.
|
|
446
524
|
*/
|
|
447
|
-
materials(): readonly
|
|
525
|
+
materials(): readonly CharacterMaterial[];
|
|
448
526
|
/** Свет места (как у мобов: пещера темнее). */
|
|
449
527
|
setBrightness(b: number): void;
|
|
450
528
|
/** Вспышка урона и прочие подсветки: 0 — без подсветки. */
|
|
@@ -649,6 +727,18 @@ interface StyleParams {
|
|
|
649
727
|
breath: number;
|
|
650
728
|
fidget: number;
|
|
651
729
|
chest: number;
|
|
730
|
+
/** Руки вперёд при ходьбе (зомби), радианы. */
|
|
731
|
+
reach: number;
|
|
732
|
+
/** Присед при ходьбе (ниндзя), пиксели. */
|
|
733
|
+
crouch: number;
|
|
734
|
+
/** Подскок через шаг (вприпрыжку): доля шага в воздухе. */
|
|
735
|
+
skip: number;
|
|
736
|
+
/** Шаг ногой к середине (подиум): сведение ног, радианы. */
|
|
737
|
+
cross: number;
|
|
738
|
+
/** Раскачка плеч и головы на шаге (вразвалочку), радианы. */
|
|
739
|
+
swagger: number;
|
|
740
|
+
/** Поза покоя: руки на поясе, руки за спиной, стойка, скука. */
|
|
741
|
+
pose: "none" | "hips" | "shy" | "ready" | "bored";
|
|
652
742
|
}
|
|
653
743
|
declare function styleParams(s: CharStyle): StyleParams;
|
|
654
744
|
interface ClipCtx {
|
|
@@ -687,6 +777,7 @@ declare const CLIPS: {
|
|
|
687
777
|
drink: ClipFn;
|
|
688
778
|
draw: ClipFn;
|
|
689
779
|
block: ClipFn;
|
|
780
|
+
fin: ClipFn;
|
|
690
781
|
};
|
|
691
782
|
type ClipId = keyof typeof CLIPS;
|
|
692
783
|
/** Подмена клипа состояния для шаблона: у капли ходьба и бег — прыжки. */
|
|
@@ -694,6 +785,13 @@ declare const RIG_CLIPS: Partial<Record<RigId, Partial<Record<ClipId, ClipId>>>>
|
|
|
694
785
|
/** Длительность разовых действий, с. */
|
|
695
786
|
declare const ACTION_TIME: Partial<Record<ClipId, number>>;
|
|
696
787
|
|
|
788
|
+
type Tracks = Record<string, Track>;
|
|
789
|
+
/**
|
|
790
|
+
* Высота сиденья под посадкой SEAT, пиксели модели аватара (низ бедра): ролик ставит стул этой высоты,
|
|
791
|
+
* и персонаж садится ровно на него. В блоках: SEAT_HEIGHT_PX / 16 × масштаб персонажа.
|
|
792
|
+
*/
|
|
793
|
+
declare const SEAT_HEIGHT_PX = 4.1;
|
|
794
|
+
|
|
697
795
|
/** Какое выражение лица искать для эмоции — первое, что есть в рецепте. */
|
|
698
796
|
declare const EXPRESSION_CHAIN: Record<Emotion, Expression[]>;
|
|
699
797
|
interface Posture {
|
|
@@ -751,7 +849,15 @@ declare function emotionFromText(text: string): Emotion | null;
|
|
|
751
849
|
|
|
752
850
|
type Track = [number, number][];
|
|
753
851
|
interface EmoteDef {
|
|
852
|
+
/** Подпись по-русски. */
|
|
754
853
|
label: string;
|
|
854
|
+
/** Подпись по-английски (нет: id). */
|
|
855
|
+
en?: string;
|
|
856
|
+
/**
|
|
857
|
+
* `upper`: жест играет только руки, тело и голову и не прерывается ходьбой: ноги остаются от неё
|
|
858
|
+
* (телефон, кружка, коробка на ходу). Нет: всем телом, прерывается движением.
|
|
859
|
+
*/
|
|
860
|
+
layer?: "upper";
|
|
755
861
|
/** Длительность цикла, с. */
|
|
756
862
|
duration: number;
|
|
757
863
|
/** Повторяется, пока персонаж не двинется. */
|
|
@@ -761,7 +867,872 @@ interface EmoteDef {
|
|
|
761
867
|
/** "роль.канал" → ключи. */
|
|
762
868
|
tracks: Record<string, Track>;
|
|
763
869
|
}
|
|
870
|
+
/** Все жесты: прежние, жесты общения и танцы (gestures.ts), бытовые позы (everyday.ts). */
|
|
764
871
|
declare const EMOTES: {
|
|
872
|
+
tiptoe: {
|
|
873
|
+
label: string;
|
|
874
|
+
en: string;
|
|
875
|
+
duration: number;
|
|
876
|
+
loop: true;
|
|
877
|
+
tracks: Tracks;
|
|
878
|
+
};
|
|
879
|
+
limp: {
|
|
880
|
+
label: string;
|
|
881
|
+
en: string;
|
|
882
|
+
duration: number;
|
|
883
|
+
loop: true;
|
|
884
|
+
emotion: "hurt";
|
|
885
|
+
tracks: {
|
|
886
|
+
"legL.rx": Track;
|
|
887
|
+
"legR.rx": Track;
|
|
888
|
+
"shinL.rx": Track;
|
|
889
|
+
"root.py": Track;
|
|
890
|
+
"body.rz": Track;
|
|
891
|
+
"armR.rz": Track;
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
crawl: {
|
|
895
|
+
label: string;
|
|
896
|
+
en: string;
|
|
897
|
+
duration: number;
|
|
898
|
+
loop: true;
|
|
899
|
+
tracks: Tracks;
|
|
900
|
+
};
|
|
901
|
+
climb: {
|
|
902
|
+
label: string;
|
|
903
|
+
en: string;
|
|
904
|
+
duration: number;
|
|
905
|
+
loop: true;
|
|
906
|
+
tracks: Tracks;
|
|
907
|
+
};
|
|
908
|
+
jog: {
|
|
909
|
+
label: string;
|
|
910
|
+
en: string;
|
|
911
|
+
duration: number;
|
|
912
|
+
loop: true;
|
|
913
|
+
tracks: Tracks;
|
|
914
|
+
};
|
|
915
|
+
carry: {
|
|
916
|
+
label: string;
|
|
917
|
+
en: string;
|
|
918
|
+
duration: number;
|
|
919
|
+
loop: true;
|
|
920
|
+
layer: "upper";
|
|
921
|
+
tracks: Tracks;
|
|
922
|
+
};
|
|
923
|
+
push: {
|
|
924
|
+
label: string;
|
|
925
|
+
en: string;
|
|
926
|
+
duration: number;
|
|
927
|
+
loop: true;
|
|
928
|
+
emotion: "determined";
|
|
929
|
+
tracks: Tracks;
|
|
930
|
+
};
|
|
931
|
+
pull: {
|
|
932
|
+
label: string;
|
|
933
|
+
en: string;
|
|
934
|
+
duration: number;
|
|
935
|
+
loop: true;
|
|
936
|
+
emotion: "determined";
|
|
937
|
+
tracks: Tracks;
|
|
938
|
+
};
|
|
939
|
+
sitChair: {
|
|
940
|
+
label: string;
|
|
941
|
+
en: string;
|
|
942
|
+
duration: number;
|
|
943
|
+
loop: true;
|
|
944
|
+
tracks: Tracks;
|
|
945
|
+
};
|
|
946
|
+
sitFloor: {
|
|
947
|
+
label: string;
|
|
948
|
+
en: string;
|
|
949
|
+
duration: number;
|
|
950
|
+
loop: true;
|
|
951
|
+
tracks: Tracks;
|
|
952
|
+
};
|
|
953
|
+
sitKneel: {
|
|
954
|
+
label: string;
|
|
955
|
+
en: string;
|
|
956
|
+
duration: number;
|
|
957
|
+
loop: true;
|
|
958
|
+
tracks: Tracks;
|
|
959
|
+
};
|
|
960
|
+
sitEdge: {
|
|
961
|
+
label: string;
|
|
962
|
+
en: string;
|
|
963
|
+
duration: number;
|
|
964
|
+
loop: true;
|
|
965
|
+
tracks: Tracks;
|
|
966
|
+
};
|
|
967
|
+
sitLounge: {
|
|
968
|
+
label: string;
|
|
969
|
+
en: string;
|
|
970
|
+
duration: number;
|
|
971
|
+
loop: true;
|
|
972
|
+
emotion: "cool";
|
|
973
|
+
tracks: Tracks;
|
|
974
|
+
};
|
|
975
|
+
sitHug: {
|
|
976
|
+
label: string;
|
|
977
|
+
en: string;
|
|
978
|
+
duration: number;
|
|
979
|
+
loop: true;
|
|
980
|
+
emotion: "sad";
|
|
981
|
+
tracks: Tracks;
|
|
982
|
+
};
|
|
983
|
+
squat: {
|
|
984
|
+
label: string;
|
|
985
|
+
en: string;
|
|
986
|
+
duration: number;
|
|
987
|
+
loop: true;
|
|
988
|
+
tracks: Tracks;
|
|
989
|
+
};
|
|
990
|
+
sitEat: {
|
|
991
|
+
label: string;
|
|
992
|
+
en: string;
|
|
993
|
+
duration: number;
|
|
994
|
+
loop: true;
|
|
995
|
+
tracks: Tracks;
|
|
996
|
+
};
|
|
997
|
+
sitDrink: {
|
|
998
|
+
label: string;
|
|
999
|
+
en: string;
|
|
1000
|
+
duration: number;
|
|
1001
|
+
loop: true;
|
|
1002
|
+
tracks: Tracks;
|
|
1003
|
+
};
|
|
1004
|
+
sitRead: {
|
|
1005
|
+
label: string;
|
|
1006
|
+
en: string;
|
|
1007
|
+
duration: number;
|
|
1008
|
+
loop: true;
|
|
1009
|
+
tracks: Tracks;
|
|
1010
|
+
};
|
|
1011
|
+
sitLaptop: {
|
|
1012
|
+
label: string;
|
|
1013
|
+
en: string;
|
|
1014
|
+
duration: number;
|
|
1015
|
+
loop: true;
|
|
1016
|
+
tracks: Tracks;
|
|
1017
|
+
};
|
|
1018
|
+
sitWrite: {
|
|
1019
|
+
label: string;
|
|
1020
|
+
en: string;
|
|
1021
|
+
duration: number;
|
|
1022
|
+
loop: true;
|
|
1023
|
+
tracks: Tracks;
|
|
1024
|
+
};
|
|
1025
|
+
sitTalk: {
|
|
1026
|
+
label: string;
|
|
1027
|
+
en: string;
|
|
1028
|
+
duration: number;
|
|
1029
|
+
loop: true;
|
|
1030
|
+
tracks: Tracks;
|
|
1031
|
+
};
|
|
1032
|
+
sitLaugh: {
|
|
1033
|
+
label: string;
|
|
1034
|
+
en: string;
|
|
1035
|
+
duration: number;
|
|
1036
|
+
loop: true;
|
|
1037
|
+
emotion: "happy";
|
|
1038
|
+
tracks: Tracks;
|
|
1039
|
+
};
|
|
1040
|
+
sitCry: {
|
|
1041
|
+
label: string;
|
|
1042
|
+
en: string;
|
|
1043
|
+
duration: number;
|
|
1044
|
+
loop: true;
|
|
1045
|
+
emotion: "crying";
|
|
1046
|
+
tracks: Tracks;
|
|
1047
|
+
};
|
|
1048
|
+
sitDoze: {
|
|
1049
|
+
label: string;
|
|
1050
|
+
en: string;
|
|
1051
|
+
duration: number;
|
|
1052
|
+
loop: true;
|
|
1053
|
+
emotion: "sleepy";
|
|
1054
|
+
tracks: Tracks;
|
|
1055
|
+
};
|
|
1056
|
+
sitDrive: {
|
|
1057
|
+
label: string;
|
|
1058
|
+
en: string;
|
|
1059
|
+
duration: number;
|
|
1060
|
+
loop: true;
|
|
1061
|
+
tracks: Tracks;
|
|
1062
|
+
};
|
|
1063
|
+
sitGamepad: {
|
|
1064
|
+
label: string;
|
|
1065
|
+
en: string;
|
|
1066
|
+
duration: number;
|
|
1067
|
+
loop: true;
|
|
1068
|
+
emotion: "determined";
|
|
1069
|
+
tracks: Tracks;
|
|
1070
|
+
};
|
|
1071
|
+
sitClap: {
|
|
1072
|
+
label: string;
|
|
1073
|
+
en: string;
|
|
1074
|
+
duration: number;
|
|
1075
|
+
loop: true;
|
|
1076
|
+
emotion: "happy";
|
|
1077
|
+
tracks: Tracks;
|
|
1078
|
+
};
|
|
1079
|
+
lieBack: {
|
|
1080
|
+
label: string;
|
|
1081
|
+
en: string;
|
|
1082
|
+
duration: number;
|
|
1083
|
+
loop: true;
|
|
1084
|
+
tracks: Tracks;
|
|
1085
|
+
};
|
|
1086
|
+
lieSide: {
|
|
1087
|
+
label: string;
|
|
1088
|
+
en: string;
|
|
1089
|
+
duration: number;
|
|
1090
|
+
loop: true;
|
|
1091
|
+
emotion: "sleepy";
|
|
1092
|
+
tracks: Tracks;
|
|
1093
|
+
};
|
|
1094
|
+
lieFront: {
|
|
1095
|
+
label: string;
|
|
1096
|
+
en: string;
|
|
1097
|
+
duration: number;
|
|
1098
|
+
loop: true;
|
|
1099
|
+
tracks: Tracks;
|
|
1100
|
+
};
|
|
1101
|
+
getUp: {
|
|
1102
|
+
label: string;
|
|
1103
|
+
en: string;
|
|
1104
|
+
duration: number;
|
|
1105
|
+
tracks: {
|
|
1106
|
+
"root.rx": Track;
|
|
1107
|
+
"root.py": Track;
|
|
1108
|
+
"legL.rx": Track;
|
|
1109
|
+
"legR.rx": Track;
|
|
1110
|
+
"shinL.rx": Track;
|
|
1111
|
+
"shinR.rx": Track;
|
|
1112
|
+
"armL.rx": Track;
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
phone: {
|
|
1116
|
+
label: string;
|
|
1117
|
+
en: string;
|
|
1118
|
+
duration: number;
|
|
1119
|
+
loop: true;
|
|
1120
|
+
layer: "upper";
|
|
1121
|
+
tracks: Tracks;
|
|
1122
|
+
};
|
|
1123
|
+
phoneScroll: {
|
|
1124
|
+
label: string;
|
|
1125
|
+
en: string;
|
|
1126
|
+
duration: number;
|
|
1127
|
+
loop: true;
|
|
1128
|
+
layer: "upper";
|
|
1129
|
+
tracks: Tracks;
|
|
1130
|
+
};
|
|
1131
|
+
selfie: {
|
|
1132
|
+
label: string;
|
|
1133
|
+
en: string;
|
|
1134
|
+
duration: number;
|
|
1135
|
+
loop: true;
|
|
1136
|
+
emotion: "happy";
|
|
1137
|
+
layer: "upper";
|
|
1138
|
+
tracks: Tracks;
|
|
1139
|
+
};
|
|
1140
|
+
photo: {
|
|
1141
|
+
label: string;
|
|
1142
|
+
en: string;
|
|
1143
|
+
duration: number;
|
|
1144
|
+
loop: true;
|
|
1145
|
+
layer: "upper";
|
|
1146
|
+
tracks: Tracks;
|
|
1147
|
+
};
|
|
1148
|
+
drinkCup: {
|
|
1149
|
+
label: string;
|
|
1150
|
+
en: string;
|
|
1151
|
+
duration: number;
|
|
1152
|
+
loop: true;
|
|
1153
|
+
layer: "upper";
|
|
1154
|
+
tracks: {
|
|
1155
|
+
"armR.rx": Track;
|
|
1156
|
+
"foreArmR.rx": Track;
|
|
1157
|
+
"head.rx": Track;
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
1160
|
+
eat: {
|
|
1161
|
+
label: string;
|
|
1162
|
+
en: string;
|
|
1163
|
+
duration: number;
|
|
1164
|
+
loop: true;
|
|
1165
|
+
layer: "upper";
|
|
1166
|
+
tracks: Tracks;
|
|
1167
|
+
};
|
|
1168
|
+
read: {
|
|
1169
|
+
label: string;
|
|
1170
|
+
en: string;
|
|
1171
|
+
duration: number;
|
|
1172
|
+
loop: true;
|
|
1173
|
+
layer: "upper";
|
|
1174
|
+
tracks: Tracks;
|
|
1175
|
+
};
|
|
1176
|
+
board: {
|
|
1177
|
+
label: string;
|
|
1178
|
+
en: string;
|
|
1179
|
+
duration: number;
|
|
1180
|
+
loop: true;
|
|
1181
|
+
tracks: Tracks;
|
|
1182
|
+
};
|
|
1183
|
+
cook: {
|
|
1184
|
+
label: string;
|
|
1185
|
+
en: string;
|
|
1186
|
+
duration: number;
|
|
1187
|
+
loop: true;
|
|
1188
|
+
layer: "upper";
|
|
1189
|
+
tracks: Tracks;
|
|
1190
|
+
};
|
|
1191
|
+
dishes: {
|
|
1192
|
+
label: string;
|
|
1193
|
+
en: string;
|
|
1194
|
+
duration: number;
|
|
1195
|
+
loop: true;
|
|
1196
|
+
tracks: Tracks;
|
|
1197
|
+
};
|
|
1198
|
+
sweep: {
|
|
1199
|
+
label: string;
|
|
1200
|
+
en: string;
|
|
1201
|
+
duration: number;
|
|
1202
|
+
loop: true;
|
|
1203
|
+
tracks: Tracks;
|
|
1204
|
+
};
|
|
1205
|
+
water: {
|
|
1206
|
+
label: string;
|
|
1207
|
+
en: string;
|
|
1208
|
+
duration: number;
|
|
1209
|
+
loop: true;
|
|
1210
|
+
tracks: Tracks;
|
|
1211
|
+
};
|
|
1212
|
+
dig: {
|
|
1213
|
+
label: string;
|
|
1214
|
+
en: string;
|
|
1215
|
+
duration: number;
|
|
1216
|
+
loop: true;
|
|
1217
|
+
emotion: "determined";
|
|
1218
|
+
tracks: {
|
|
1219
|
+
"body.rx": Track;
|
|
1220
|
+
"armL.rx": Track;
|
|
1221
|
+
"armR.rx": Track;
|
|
1222
|
+
"foreArmL.rx": Track;
|
|
1223
|
+
"foreArmR.rx": Track;
|
|
1224
|
+
"shinL.rx": Track;
|
|
1225
|
+
"shinR.rx": Track;
|
|
1226
|
+
"root.py": Track;
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
fish: {
|
|
1230
|
+
label: string;
|
|
1231
|
+
en: string;
|
|
1232
|
+
duration: number;
|
|
1233
|
+
loop: true;
|
|
1234
|
+
tracks: Tracks;
|
|
1235
|
+
};
|
|
1236
|
+
paint: {
|
|
1237
|
+
label: string;
|
|
1238
|
+
en: string;
|
|
1239
|
+
duration: number;
|
|
1240
|
+
loop: true;
|
|
1241
|
+
layer: "upper";
|
|
1242
|
+
tracks: Tracks;
|
|
1243
|
+
};
|
|
1244
|
+
brushTeeth: {
|
|
1245
|
+
label: string;
|
|
1246
|
+
en: string;
|
|
1247
|
+
duration: number;
|
|
1248
|
+
loop: true;
|
|
1249
|
+
layer: "upper";
|
|
1250
|
+
tracks: Tracks;
|
|
1251
|
+
};
|
|
1252
|
+
washFace: {
|
|
1253
|
+
label: string;
|
|
1254
|
+
en: string;
|
|
1255
|
+
duration: number;
|
|
1256
|
+
loop: true;
|
|
1257
|
+
tracks: Tracks;
|
|
1258
|
+
};
|
|
1259
|
+
openDoor: {
|
|
1260
|
+
label: string;
|
|
1261
|
+
en: string;
|
|
1262
|
+
duration: number;
|
|
1263
|
+
layer: "upper";
|
|
1264
|
+
tracks: {
|
|
1265
|
+
"armR.rx": Track;
|
|
1266
|
+
"foreArmR.rx": Track;
|
|
1267
|
+
"armR.ry": Track;
|
|
1268
|
+
"body.ry": Track;
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
knock: {
|
|
1272
|
+
label: string;
|
|
1273
|
+
en: string;
|
|
1274
|
+
duration: number;
|
|
1275
|
+
layer: "upper";
|
|
1276
|
+
tracks: Tracks;
|
|
1277
|
+
};
|
|
1278
|
+
checkWatch: {
|
|
1279
|
+
label: string;
|
|
1280
|
+
en: string;
|
|
1281
|
+
duration: number;
|
|
1282
|
+
layer: "upper";
|
|
1283
|
+
tracks: {
|
|
1284
|
+
"armL.rx": Track;
|
|
1285
|
+
"foreArmL.rx": Track;
|
|
1286
|
+
"armL.rz": Track;
|
|
1287
|
+
"head.rx": Track;
|
|
1288
|
+
"head.ry": Track;
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1291
|
+
wait: {
|
|
1292
|
+
label: string;
|
|
1293
|
+
en: string;
|
|
1294
|
+
duration: number;
|
|
1295
|
+
loop: true;
|
|
1296
|
+
emotion: "tired";
|
|
1297
|
+
tracks: Tracks;
|
|
1298
|
+
};
|
|
1299
|
+
pockets: {
|
|
1300
|
+
label: string;
|
|
1301
|
+
en: string;
|
|
1302
|
+
duration: number;
|
|
1303
|
+
loop: true;
|
|
1304
|
+
emotion: "cool";
|
|
1305
|
+
layer: "upper";
|
|
1306
|
+
tracks: Tracks;
|
|
1307
|
+
};
|
|
1308
|
+
armsCrossed: {
|
|
1309
|
+
label: string;
|
|
1310
|
+
en: string;
|
|
1311
|
+
duration: number;
|
|
1312
|
+
loop: true;
|
|
1313
|
+
layer: "upper";
|
|
1314
|
+
tracks: Tracks;
|
|
1315
|
+
};
|
|
1316
|
+
lean: {
|
|
1317
|
+
label: string;
|
|
1318
|
+
en: string;
|
|
1319
|
+
duration: number;
|
|
1320
|
+
loop: true;
|
|
1321
|
+
emotion: "cool";
|
|
1322
|
+
tracks: Tracks;
|
|
1323
|
+
};
|
|
1324
|
+
shiver: {
|
|
1325
|
+
label: string;
|
|
1326
|
+
en: string;
|
|
1327
|
+
duration: number;
|
|
1328
|
+
loop: true;
|
|
1329
|
+
emotion: "scared";
|
|
1330
|
+
layer: "upper";
|
|
1331
|
+
tracks: Tracks;
|
|
1332
|
+
};
|
|
1333
|
+
fan: {
|
|
1334
|
+
label: string;
|
|
1335
|
+
en: string;
|
|
1336
|
+
duration: number;
|
|
1337
|
+
loop: true;
|
|
1338
|
+
emotion: "tired";
|
|
1339
|
+
layer: "upper";
|
|
1340
|
+
tracks: Tracks;
|
|
1341
|
+
};
|
|
1342
|
+
sneeze: {
|
|
1343
|
+
label: string;
|
|
1344
|
+
en: string;
|
|
1345
|
+
duration: number;
|
|
1346
|
+
tracks: {
|
|
1347
|
+
"head.rx": Track;
|
|
1348
|
+
"body.rx": Track;
|
|
1349
|
+
"armR.rx": Track;
|
|
1350
|
+
"foreArmR.rx": Track;
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1353
|
+
cough: {
|
|
1354
|
+
label: string;
|
|
1355
|
+
en: string;
|
|
1356
|
+
duration: number;
|
|
1357
|
+
layer: "upper";
|
|
1358
|
+
tracks: Tracks;
|
|
1359
|
+
};
|
|
1360
|
+
hug: {
|
|
1361
|
+
label: string;
|
|
1362
|
+
en: string;
|
|
1363
|
+
duration: number;
|
|
1364
|
+
loop: true;
|
|
1365
|
+
emotion: "love";
|
|
1366
|
+
layer: "upper";
|
|
1367
|
+
tracks: Tracks;
|
|
1368
|
+
};
|
|
1369
|
+
handshake: {
|
|
1370
|
+
label: string;
|
|
1371
|
+
en: string;
|
|
1372
|
+
duration: number;
|
|
1373
|
+
loop: true;
|
|
1374
|
+
emotion: "happy";
|
|
1375
|
+
layer: "upper";
|
|
1376
|
+
tracks: Tracks;
|
|
1377
|
+
};
|
|
1378
|
+
highFive: {
|
|
1379
|
+
label: string;
|
|
1380
|
+
en: string;
|
|
1381
|
+
duration: number;
|
|
1382
|
+
emotion: "excited";
|
|
1383
|
+
layer: "upper";
|
|
1384
|
+
tracks: {
|
|
1385
|
+
"armR.rz": Track;
|
|
1386
|
+
"armR.rx": Track;
|
|
1387
|
+
"body.ry": Track;
|
|
1388
|
+
};
|
|
1389
|
+
};
|
|
1390
|
+
throw: {
|
|
1391
|
+
label: string;
|
|
1392
|
+
en: string;
|
|
1393
|
+
duration: number;
|
|
1394
|
+
layer: "upper";
|
|
1395
|
+
tracks: {
|
|
1396
|
+
"armR.rx": Track;
|
|
1397
|
+
"armR.rz": Track;
|
|
1398
|
+
"body.ry": Track;
|
|
1399
|
+
"armL.rx": Track;
|
|
1400
|
+
};
|
|
1401
|
+
};
|
|
1402
|
+
catch: {
|
|
1403
|
+
label: string;
|
|
1404
|
+
en: string;
|
|
1405
|
+
duration: number;
|
|
1406
|
+
emotion: "surprised";
|
|
1407
|
+
layer: "upper";
|
|
1408
|
+
tracks: {
|
|
1409
|
+
"armL.rx": Track;
|
|
1410
|
+
"armR.rx": Track;
|
|
1411
|
+
"foreArmL.rx": Track;
|
|
1412
|
+
"foreArmR.rx": Track;
|
|
1413
|
+
"body.rx": Track;
|
|
1414
|
+
};
|
|
1415
|
+
};
|
|
1416
|
+
juggle: {
|
|
1417
|
+
label: string;
|
|
1418
|
+
en: string;
|
|
1419
|
+
duration: number;
|
|
1420
|
+
loop: true;
|
|
1421
|
+
layer: "upper";
|
|
1422
|
+
tracks: Tracks;
|
|
1423
|
+
};
|
|
1424
|
+
clap: {
|
|
1425
|
+
label: string;
|
|
1426
|
+
en: string;
|
|
1427
|
+
duration: number;
|
|
1428
|
+
emotion: "happy";
|
|
1429
|
+
layer: "upper";
|
|
1430
|
+
tracks: Tracks;
|
|
1431
|
+
};
|
|
1432
|
+
salute: {
|
|
1433
|
+
label: string;
|
|
1434
|
+
en: string;
|
|
1435
|
+
duration: number;
|
|
1436
|
+
layer: "upper";
|
|
1437
|
+
tracks: Tracks;
|
|
1438
|
+
};
|
|
1439
|
+
thumbsUp: {
|
|
1440
|
+
label: string;
|
|
1441
|
+
en: string;
|
|
1442
|
+
duration: number;
|
|
1443
|
+
emotion: "happy";
|
|
1444
|
+
layer: "upper";
|
|
1445
|
+
tracks: Tracks;
|
|
1446
|
+
};
|
|
1447
|
+
heartHands: {
|
|
1448
|
+
label: string;
|
|
1449
|
+
en: string;
|
|
1450
|
+
duration: number;
|
|
1451
|
+
emotion: "love";
|
|
1452
|
+
layer: "upper";
|
|
1453
|
+
tracks: Tracks;
|
|
1454
|
+
};
|
|
1455
|
+
think: {
|
|
1456
|
+
label: string;
|
|
1457
|
+
en: string;
|
|
1458
|
+
duration: number;
|
|
1459
|
+
emotion: "confused";
|
|
1460
|
+
layer: "upper";
|
|
1461
|
+
tracks: Tracks;
|
|
1462
|
+
};
|
|
1463
|
+
nod: {
|
|
1464
|
+
label: string;
|
|
1465
|
+
en: string;
|
|
1466
|
+
duration: number;
|
|
1467
|
+
layer: "upper";
|
|
1468
|
+
tracks: Tracks;
|
|
1469
|
+
};
|
|
1470
|
+
headShake: {
|
|
1471
|
+
label: string;
|
|
1472
|
+
en: string;
|
|
1473
|
+
duration: number;
|
|
1474
|
+
layer: "upper";
|
|
1475
|
+
tracks: Tracks;
|
|
1476
|
+
};
|
|
1477
|
+
beckon: {
|
|
1478
|
+
label: string;
|
|
1479
|
+
en: string;
|
|
1480
|
+
duration: number;
|
|
1481
|
+
layer: "upper";
|
|
1482
|
+
tracks: Tracks;
|
|
1483
|
+
};
|
|
1484
|
+
stop: {
|
|
1485
|
+
label: string;
|
|
1486
|
+
en: string;
|
|
1487
|
+
duration: number;
|
|
1488
|
+
emotion: "determined";
|
|
1489
|
+
layer: "upper";
|
|
1490
|
+
tracks: Tracks;
|
|
1491
|
+
};
|
|
1492
|
+
yawn: {
|
|
1493
|
+
label: string;
|
|
1494
|
+
en: string;
|
|
1495
|
+
duration: number;
|
|
1496
|
+
emotion: "sleepy";
|
|
1497
|
+
layer: "upper";
|
|
1498
|
+
tracks: Tracks;
|
|
1499
|
+
};
|
|
1500
|
+
stretch: {
|
|
1501
|
+
label: string;
|
|
1502
|
+
en: string;
|
|
1503
|
+
duration: number;
|
|
1504
|
+
emotion: "sleepy";
|
|
1505
|
+
tracks: Tracks;
|
|
1506
|
+
};
|
|
1507
|
+
flex: {
|
|
1508
|
+
label: string;
|
|
1509
|
+
en: string;
|
|
1510
|
+
duration: number;
|
|
1511
|
+
emotion: "determined";
|
|
1512
|
+
layer: "upper";
|
|
1513
|
+
tracks: Tracks;
|
|
1514
|
+
};
|
|
1515
|
+
jumpJoy: {
|
|
1516
|
+
label: string;
|
|
1517
|
+
en: string;
|
|
1518
|
+
duration: number;
|
|
1519
|
+
emotion: "excited";
|
|
1520
|
+
tracks: {
|
|
1521
|
+
"root.py": Track;
|
|
1522
|
+
"armL.rz": Track;
|
|
1523
|
+
"armR.rz": Track;
|
|
1524
|
+
"shinL.rx": Track;
|
|
1525
|
+
"shinR.rx": Track;
|
|
1526
|
+
};
|
|
1527
|
+
};
|
|
1528
|
+
spin: {
|
|
1529
|
+
label: string;
|
|
1530
|
+
en: string;
|
|
1531
|
+
duration: number;
|
|
1532
|
+
emotion: "happy";
|
|
1533
|
+
tracks: {
|
|
1534
|
+
"root.ry": Track;
|
|
1535
|
+
"armL.rz": Track;
|
|
1536
|
+
"armR.rz": Track;
|
|
1537
|
+
};
|
|
1538
|
+
};
|
|
1539
|
+
victory: {
|
|
1540
|
+
label: string;
|
|
1541
|
+
en: string;
|
|
1542
|
+
duration: number;
|
|
1543
|
+
emotion: "excited";
|
|
1544
|
+
tracks: Tracks;
|
|
1545
|
+
};
|
|
1546
|
+
airGuitar: {
|
|
1547
|
+
label: string;
|
|
1548
|
+
en: string;
|
|
1549
|
+
duration: number;
|
|
1550
|
+
loop: true;
|
|
1551
|
+
emotion: "excited";
|
|
1552
|
+
tracks: Tracks;
|
|
1553
|
+
};
|
|
1554
|
+
drum: {
|
|
1555
|
+
label: string;
|
|
1556
|
+
en: string;
|
|
1557
|
+
duration: number;
|
|
1558
|
+
loop: true;
|
|
1559
|
+
emotion: "excited";
|
|
1560
|
+
tracks: Tracks;
|
|
1561
|
+
};
|
|
1562
|
+
pushups: {
|
|
1563
|
+
label: string;
|
|
1564
|
+
en: string;
|
|
1565
|
+
duration: number;
|
|
1566
|
+
loop: true;
|
|
1567
|
+
emotion: "determined";
|
|
1568
|
+
tracks: Tracks;
|
|
1569
|
+
};
|
|
1570
|
+
kneel: {
|
|
1571
|
+
label: string;
|
|
1572
|
+
en: string;
|
|
1573
|
+
duration: number;
|
|
1574
|
+
tracks: Tracks;
|
|
1575
|
+
};
|
|
1576
|
+
curtsy: {
|
|
1577
|
+
label: string;
|
|
1578
|
+
en: string;
|
|
1579
|
+
duration: number;
|
|
1580
|
+
tracks: Tracks;
|
|
1581
|
+
};
|
|
1582
|
+
scratchHead: {
|
|
1583
|
+
label: string;
|
|
1584
|
+
en: string;
|
|
1585
|
+
duration: number;
|
|
1586
|
+
emotion: "confused";
|
|
1587
|
+
layer: "upper";
|
|
1588
|
+
tracks: Tracks;
|
|
1589
|
+
};
|
|
1590
|
+
hide: {
|
|
1591
|
+
label: string;
|
|
1592
|
+
en: string;
|
|
1593
|
+
duration: number;
|
|
1594
|
+
emotion: "scared";
|
|
1595
|
+
tracks: Tracks;
|
|
1596
|
+
};
|
|
1597
|
+
stomp: {
|
|
1598
|
+
label: string;
|
|
1599
|
+
en: string;
|
|
1600
|
+
duration: number;
|
|
1601
|
+
emotion: "angry";
|
|
1602
|
+
tracks: Tracks;
|
|
1603
|
+
};
|
|
1604
|
+
slump: {
|
|
1605
|
+
label: string;
|
|
1606
|
+
en: string;
|
|
1607
|
+
duration: number;
|
|
1608
|
+
emotion: "sad";
|
|
1609
|
+
tracks: Tracks;
|
|
1610
|
+
};
|
|
1611
|
+
rollLaugh: {
|
|
1612
|
+
label: string;
|
|
1613
|
+
en: string;
|
|
1614
|
+
duration: number;
|
|
1615
|
+
loop: true;
|
|
1616
|
+
emotion: "happy";
|
|
1617
|
+
tracks: Tracks;
|
|
1618
|
+
};
|
|
1619
|
+
blowKiss: {
|
|
1620
|
+
label: string;
|
|
1621
|
+
en: string;
|
|
1622
|
+
duration: number;
|
|
1623
|
+
emotion: "love";
|
|
1624
|
+
layer: "upper";
|
|
1625
|
+
tracks: {
|
|
1626
|
+
"armR.rx": Track;
|
|
1627
|
+
"foreArmR.rx": Track;
|
|
1628
|
+
"armR.rz": Track;
|
|
1629
|
+
"head.rz": Track;
|
|
1630
|
+
};
|
|
1631
|
+
};
|
|
1632
|
+
phew: {
|
|
1633
|
+
label: string;
|
|
1634
|
+
en: string;
|
|
1635
|
+
duration: number;
|
|
1636
|
+
emotion: "tired";
|
|
1637
|
+
layer: "upper";
|
|
1638
|
+
tracks: {
|
|
1639
|
+
"armR.rz": Track;
|
|
1640
|
+
"foreArmR.rz": Track;
|
|
1641
|
+
"head.rx": Track;
|
|
1642
|
+
"body.rx": Track;
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
lookAround: {
|
|
1646
|
+
label: string;
|
|
1647
|
+
en: string;
|
|
1648
|
+
duration: number;
|
|
1649
|
+
layer: "upper";
|
|
1650
|
+
tracks: {
|
|
1651
|
+
"head.ry": Track;
|
|
1652
|
+
"body.ry": Track;
|
|
1653
|
+
"armR.rx": Track;
|
|
1654
|
+
"foreArmR.rx": Track;
|
|
1655
|
+
};
|
|
1656
|
+
};
|
|
1657
|
+
karate: {
|
|
1658
|
+
label: string;
|
|
1659
|
+
en: string;
|
|
1660
|
+
duration: number;
|
|
1661
|
+
emotion: "determined";
|
|
1662
|
+
tracks: {
|
|
1663
|
+
"armR.rx": Track;
|
|
1664
|
+
"foreArmR.rx": Track;
|
|
1665
|
+
"armL.rx": Track;
|
|
1666
|
+
"foreArmL.rx": Track;
|
|
1667
|
+
"legR.rx": Track;
|
|
1668
|
+
"body.ry": Track;
|
|
1669
|
+
"root.py": Track;
|
|
1670
|
+
};
|
|
1671
|
+
};
|
|
1672
|
+
nap: {
|
|
1673
|
+
label: string;
|
|
1674
|
+
en: string;
|
|
1675
|
+
duration: number;
|
|
1676
|
+
loop: true;
|
|
1677
|
+
emotion: "sleepy";
|
|
1678
|
+
tracks: Tracks;
|
|
1679
|
+
};
|
|
1680
|
+
danceRobot: {
|
|
1681
|
+
label: string;
|
|
1682
|
+
en: string;
|
|
1683
|
+
duration: number;
|
|
1684
|
+
loop: true;
|
|
1685
|
+
emotion: "cool";
|
|
1686
|
+
tracks: {
|
|
1687
|
+
"armL.rx": Track;
|
|
1688
|
+
"foreArmL.rx": Track;
|
|
1689
|
+
"armR.rx": Track;
|
|
1690
|
+
"foreArmR.rx": Track;
|
|
1691
|
+
"head.ry": Track;
|
|
1692
|
+
"root.py": Track;
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
danceHop: {
|
|
1696
|
+
label: string;
|
|
1697
|
+
en: string;
|
|
1698
|
+
duration: number;
|
|
1699
|
+
loop: true;
|
|
1700
|
+
emotion: "excited";
|
|
1701
|
+
tracks: Tracks;
|
|
1702
|
+
};
|
|
1703
|
+
danceSway: {
|
|
1704
|
+
label: string;
|
|
1705
|
+
en: string;
|
|
1706
|
+
duration: number;
|
|
1707
|
+
loop: true;
|
|
1708
|
+
emotion: "happy";
|
|
1709
|
+
tracks: Tracks;
|
|
1710
|
+
};
|
|
1711
|
+
danceDisco: {
|
|
1712
|
+
label: string;
|
|
1713
|
+
en: string;
|
|
1714
|
+
duration: number;
|
|
1715
|
+
loop: true;
|
|
1716
|
+
emotion: "cool";
|
|
1717
|
+
tracks: {
|
|
1718
|
+
"armR.rz": Track;
|
|
1719
|
+
"armR.rx": Track;
|
|
1720
|
+
"armL.rz": Track;
|
|
1721
|
+
"armL.rx": Track;
|
|
1722
|
+
"foreArmL.rx": Track;
|
|
1723
|
+
"body.ry": Track;
|
|
1724
|
+
"root.py": Track;
|
|
1725
|
+
"legL.rz": Track;
|
|
1726
|
+
};
|
|
1727
|
+
};
|
|
1728
|
+
danceWave: {
|
|
1729
|
+
label: string;
|
|
1730
|
+
en: string;
|
|
1731
|
+
duration: number;
|
|
1732
|
+
loop: true;
|
|
1733
|
+
emotion: "happy";
|
|
1734
|
+
tracks: Tracks;
|
|
1735
|
+
};
|
|
765
1736
|
wave: {
|
|
766
1737
|
label: string;
|
|
767
1738
|
duration: number;
|
|
@@ -869,8 +1840,13 @@ declare const EMOTES: {
|
|
|
869
1840
|
};
|
|
870
1841
|
};
|
|
871
1842
|
type EmoteId = keyof typeof EMOTES;
|
|
1843
|
+
/** Жесты общения и танцы (колесо жестов, редактор аватара); бытовые позы отдельно: EVERYDAY_IDS. */
|
|
1844
|
+
declare const GESTURE_IDS: EmoteId[];
|
|
1845
|
+
declare const EVERYDAY_IDS: EmoteId[];
|
|
872
1846
|
declare const EMOTE_IDS: EmoteId[];
|
|
873
1847
|
declare function isEmote(v: unknown): v is EmoteId;
|
|
1848
|
+
/** Подпись жеста на языке (ru / en). */
|
|
1849
|
+
declare function emoteLabelOf(id: EmoteId, ru: boolean): string;
|
|
874
1850
|
/** Значение дорожки в момент t (между ключами — smoothstep). */
|
|
875
1851
|
declare function sampleTrack(track: Track, t: number): number;
|
|
876
1852
|
/** Поза жеста в момент t (у повторяющегося — по модулю длительности). */
|
|
@@ -952,6 +1928,10 @@ declare class VoxelActor {
|
|
|
952
1928
|
protected animator: Animator;
|
|
953
1929
|
private readonly input;
|
|
954
1930
|
private readonly seed;
|
|
1931
|
+
/** Лицо рисует сам актёр по рецепту (не передано снаружи). */
|
|
1932
|
+
private readonly ownFace;
|
|
1933
|
+
/** Своё рисованное лицо (`face.drawn` рецепта). */
|
|
1934
|
+
private drawn;
|
|
955
1935
|
private pose;
|
|
956
1936
|
private jumpT;
|
|
957
1937
|
constructor(spec?: CharacterSpec, opts?: VoxelActorOptions);
|
|
@@ -965,6 +1945,8 @@ declare class VoxelActor {
|
|
|
965
1945
|
/** Поза контракта: состояние движения держится, жест играется один раз. */
|
|
966
1946
|
setPose(pose: ActorPose): void;
|
|
967
1947
|
playEmote(id: EmoteId): void;
|
|
1948
|
+
/** Снять жест (повторяющийся, сидя, лёжа) и вернуться к позе. */
|
|
1949
|
+
stopEmote(): void;
|
|
968
1950
|
/** Разовое движение поверх позы: удар ("swing"), получил удар ("hurt"), бросок, приземление. */
|
|
969
1951
|
trigger(ev: AnimEvent): void;
|
|
970
1952
|
/** Повесить пропс на сокет; null — снять. */
|
|
@@ -976,7 +1958,7 @@ declare class VoxelActor {
|
|
|
976
1958
|
|
|
977
1959
|
declare const VOXEL_CHARACTER_SYSTEM_PROMPT: string;
|
|
978
1960
|
|
|
979
|
-
declare const CREATURE_KINDS: readonly ["cat", "dog", "fox", "bear", "rabbit", "bird", "dragon", "slime", "ghost", "robot"];
|
|
1961
|
+
declare const CREATURE_KINDS: readonly ["cat", "dog", "fox", "bear", "rabbit", "bird", "dragon", "slime", "ghost", "robot", "wolf", "lion", "tiger", "panda", "pig", "cow", "sheep", "horse", "deer", "mouse", "raccoon", "elephant", "hedgehog", "turtle", "frog", "duck", "chicken", "owl", "penguin", "bat", "bee", "eagle", "fish", "shark"];
|
|
980
1962
|
type CreatureKind = (typeof CREATURE_KINDS)[number];
|
|
981
1963
|
interface CreatureLook {
|
|
982
1964
|
kind: CreatureKind;
|
|
@@ -1001,8 +1983,15 @@ declare function creatureSource(look: CreatureLook): {
|
|
|
1001
1983
|
};
|
|
1002
1984
|
parts: Part[];
|
|
1003
1985
|
face: {
|
|
1004
|
-
bone: string;
|
|
1005
1986
|
rect: [number, number, number, number];
|
|
1987
|
+
drawn: {
|
|
1988
|
+
eyeColor: string;
|
|
1989
|
+
eyes: string;
|
|
1990
|
+
brows: string;
|
|
1991
|
+
mouth: string;
|
|
1992
|
+
cheeks: boolean;
|
|
1993
|
+
};
|
|
1994
|
+
bone: string;
|
|
1006
1995
|
expressions: {
|
|
1007
1996
|
neutral: string;
|
|
1008
1997
|
blink: string;
|
|
@@ -1022,10 +2011,11 @@ declare function creatureSource(look: CreatureLook): {
|
|
|
1022
2011
|
energy: number;
|
|
1023
2012
|
};
|
|
1024
2013
|
finish: {
|
|
1025
|
-
noise:
|
|
1026
|
-
outline:
|
|
1027
|
-
shade:
|
|
1028
|
-
density:
|
|
2014
|
+
readonly noise: 0;
|
|
2015
|
+
readonly outline: 0;
|
|
2016
|
+
readonly shade: 0.12;
|
|
2017
|
+
readonly density: 4;
|
|
2018
|
+
readonly round: 0.35;
|
|
1029
2019
|
};
|
|
1030
2020
|
tags: string[];
|
|
1031
2021
|
};
|
|
@@ -1036,7 +2026,7 @@ declare function creatureCharacter(look: CreatureLook): CharacterSpec;
|
|
|
1036
2026
|
declare const AVATAR_STYLE: "voxel-v1";
|
|
1037
2027
|
declare const AVATAR_SPEC_VERSION: 1;
|
|
1038
2028
|
/** Слоты вещей; порядок: порядок сборки (позже надетое красит поверх раньше надетого). */
|
|
1039
|
-
declare const AVATAR_SLOTS: readonly ["hair", "top", "bottom", "shoes", "hands", "waist", "back", "faceAcc", "hat"];
|
|
2029
|
+
declare const AVATAR_SLOTS: readonly ["hair", "top", "bottom", "shoes", "hands", "waist", "back", "neck", "faceAcc", "hat"];
|
|
1040
2030
|
type AvatarSlot = (typeof AVATAR_SLOTS)[number];
|
|
1041
2031
|
/**
|
|
1042
2032
|
* Области тела: коробки тела скелета `avatar` с этими именами. У области может быть несколько коробок
|
|
@@ -1066,8 +2056,9 @@ interface SlotRule {
|
|
|
1066
2056
|
}
|
|
1067
2057
|
/**
|
|
1068
2058
|
* Правила слотов. Сумма коробок всех слотов + 16 коробок тела укладывается в лимит деталей
|
|
1069
|
-
* рецепта (CHARACTER_LIMITS.parts =
|
|
2059
|
+
* рецепта (CHARACTER_LIMITS.parts = 96), поэтому любой полный набор собирается без потерь. Рамки:
|
|
1070
2060
|
* пиксели модели тела B1 (rigs/avatar), голова x ±4.25, y 22.75..30.25, z ±4 (лицо в −z).
|
|
2061
|
+
* Слоты `hat`, `faceAcc`, `neck`, `back`, `waist` только ставят предметы (коробки), тело не красят.
|
|
1071
2062
|
*/
|
|
1072
2063
|
declare const SLOT_RULES: Record<AvatarSlot, SlotRule>;
|
|
1073
2064
|
declare const AVATAR_ITEM_LIMITS: {
|
|
@@ -1106,13 +2097,32 @@ interface AvatarItem {
|
|
|
1106
2097
|
/** Коробки на костях слота; цвета и грани: символы палитры и id текстур вещи. */
|
|
1107
2098
|
parts: CharPart[];
|
|
1108
2099
|
}
|
|
1109
|
-
/** Стили слоёв лица; рисует их avatar/face.ts. */
|
|
1110
|
-
declare const EYE_STYLES: readonly ["round", "sparkle", "wide", "cat", "sleepy", "dot"];
|
|
2100
|
+
/** Стили слоёв лица; рисует их avatar/face.ts. Новые дописываются в конец (порядок: порядок в редакторе). */
|
|
2101
|
+
declare const EYE_STYLES: readonly ["round", "sparkle", "wide", "cat", "sleepy", "dot", "anime", "almond", "button", "narrow", "starry", "glam"];
|
|
1111
2102
|
type EyeStyle = (typeof EYE_STYLES)[number];
|
|
1112
|
-
declare const BROW_STYLES: readonly ["soft", "thick", "arched", "none"];
|
|
2103
|
+
declare const BROW_STYLES: readonly ["soft", "thick", "arched", "none", "straight", "angled", "bushy", "thin"];
|
|
1113
2104
|
type BrowStyle = (typeof BROW_STYLES)[number];
|
|
1114
|
-
declare const MOUTH_STYLES: readonly ["smile", "grin", "cat", "small"];
|
|
2105
|
+
declare const MOUTH_STYLES: readonly ["smile", "grin", "cat", "small", "smirk", "open", "teeth", "fang", "tongue", "pout"];
|
|
1115
2106
|
type MouthStyle = (typeof MOUTH_STYLES)[number];
|
|
2107
|
+
/** Отметины на лице (рисует face.ts под глазами): веснушки, родинка, шрам, пластырь, усики, звёздочка. */
|
|
2108
|
+
declare const MARK_STYLES: readonly ["none", "freckles", "mole", "scar", "plaster", "whiskers", "star"];
|
|
2109
|
+
type MarkStyle = (typeof MARK_STYLES)[number];
|
|
2110
|
+
/** Форма головы: кубическая или круглая (скруглённый цилиндр в той же коробке, причёски и шапки облегают его). */
|
|
2111
|
+
declare const AVATAR_HEADS: readonly ["block", "round"];
|
|
2112
|
+
type AvatarHead = (typeof AVATAR_HEADS)[number];
|
|
2113
|
+
/**
|
|
2114
|
+
* Голова, пока человек не выбрал (поля нет): круглая (владелец 26.11.2026: «по умолчанию круглая голова»).
|
|
2115
|
+
* Кубическая остаётся у того, кто выбрал её явно.
|
|
2116
|
+
*/
|
|
2117
|
+
declare const DEFAULT_AVATAR_HEAD: AvatarHead;
|
|
2118
|
+
/** Походка и поза покоя аватара (набор анимаций): любые стили рецепта. */
|
|
2119
|
+
declare const AVATAR_WALKS: readonly ["normal", "bouncy", "heavy", "sneaky", "robotic", "swagger", "skip", "ninja", "zombie", "catwalk"];
|
|
2120
|
+
declare const AVATAR_IDLES: readonly ["calm", "fidgety", "proud", "cool", "shy", "ready", "bored"];
|
|
2121
|
+
/** Как ходит и стоит аватар, пока человек не выбрал (облики до 26.11.2026). */
|
|
2122
|
+
declare const DEFAULT_AVATAR_ANIM: {
|
|
2123
|
+
walk: WalkStyle;
|
|
2124
|
+
idle: IdleStyle;
|
|
2125
|
+
};
|
|
1116
2126
|
interface AvatarFace {
|
|
1117
2127
|
eyes: EyeStyle;
|
|
1118
2128
|
eyeColor: string;
|
|
@@ -1121,6 +2131,8 @@ interface AvatarFace {
|
|
|
1121
2131
|
mouth: MouthStyle;
|
|
1122
2132
|
/** Румянец на щеках. */
|
|
1123
2133
|
cheeks: boolean;
|
|
2134
|
+
/** Отметина на лице. Нет поля: `none` (облики до 26.11.2026). */
|
|
2135
|
+
marks?: MarkStyle;
|
|
1124
2136
|
/**
|
|
1125
2137
|
* Выбранная человеком эмоция: лицо аватара, когда с ним ничего не происходит. Её показывают фото профиля,
|
|
1126
2138
|
* профиль и игры; `neutral`: спокойное лицо (облики до 23.11.2026, где поля не было).
|
|
@@ -1140,8 +2152,15 @@ interface AvatarSpec {
|
|
|
1140
2152
|
skin: string;
|
|
1141
2153
|
/** Рост: 0.9, 1.1 от эталона. */
|
|
1142
2154
|
height: number;
|
|
2155
|
+
/** Форма головы. Нет поля: `DEFAULT_AVATAR_HEAD`. */
|
|
2156
|
+
head?: AvatarHead;
|
|
1143
2157
|
};
|
|
1144
2158
|
face: AvatarFace;
|
|
2159
|
+
/** Набор анимаций: походка и поза покоя. Нет поля: `DEFAULT_AVATAR_ANIM`. */
|
|
2160
|
+
anim?: {
|
|
2161
|
+
walk: WalkStyle;
|
|
2162
|
+
idle: IdleStyle;
|
|
2163
|
+
};
|
|
1145
2164
|
/** Надетое: слот → id вещи. */
|
|
1146
2165
|
wear: Partial<Record<AvatarSlot, string>>;
|
|
1147
2166
|
/** Перекраска надетого: слот → "#rrggbb" (символ `tint` вещи). */
|
|
@@ -1181,12 +2200,14 @@ declare const AVATAR_BASE_COLORS: {
|
|
|
1181
2200
|
declare function composeAvatar(spec: AvatarSpec, items: AvatarItemSource): CharacterSpec;
|
|
1182
2201
|
|
|
1183
2202
|
type Ctx2D = CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D;
|
|
2203
|
+
/** Что рисует лицо: эмоция (все 21) или слой поверх неё: моргание, разговор. Выражения рецепта сюда входят. */
|
|
2204
|
+
type FaceState = Emotion | "blink" | "talk";
|
|
1184
2205
|
/**
|
|
1185
2206
|
* Нарисовать лицо выражения e на холсте W×H (прозрачный фон). Моргание и разговор меняют только
|
|
1186
2207
|
* свой слой: при «blink» глаза закрыты, а брови и рот остаются от `base` (выражения до моргания),
|
|
1187
2208
|
* при «talk» открыт рот, остальное: от `base`.
|
|
1188
2209
|
*/
|
|
1189
|
-
declare function drawAvatarFace(g: Ctx2D, W: number, H: number, face: AvatarFace, e:
|
|
2210
|
+
declare function drawAvatarFace(g: Ctx2D, W: number, H: number, face: AvatarFace, e: FaceState, base?: FaceState): void;
|
|
1190
2211
|
|
|
1191
2212
|
/** Текселей рисованного лица на пиксель модели. */
|
|
1192
2213
|
declare const FACE_TEXELS = 16;
|
|
@@ -1197,10 +2218,16 @@ declare class DrawnFace implements FacePainter {
|
|
|
1197
2218
|
private readonly h;
|
|
1198
2219
|
private face;
|
|
1199
2220
|
private current;
|
|
1200
|
-
/**
|
|
2221
|
+
/** Эмоция под морганием и разговором. */
|
|
1201
2222
|
private base;
|
|
1202
|
-
|
|
1203
|
-
|
|
2223
|
+
/** `rect`: место лица на модели (у аватара AVATAR_FACE_RECT, у зверя своё): холст в его пропорциях. */
|
|
2224
|
+
constructor(face: AvatarFace, rect?: readonly number[]);
|
|
2225
|
+
/**
|
|
2226
|
+
* Нарисовать выражение `e` рецепта. `emotion`: эмоция персонажа; у рисованного лица она своя (21 штука),
|
|
2227
|
+
* поэтому рисуется она, если `e` её замена по цепочке (любовь → «радость» рецепта), иначе само `e`
|
|
2228
|
+
* (лёжа и при смерти аниматор даёт своё выражение).
|
|
2229
|
+
*/
|
|
2230
|
+
paint(e: Expression, emotion?: Emotion): void;
|
|
1204
2231
|
/** Сменить лицо (редактор): перерисовать текущее выражение. */
|
|
1205
2232
|
setFace(face: AvatarFace): void;
|
|
1206
2233
|
dispose(): void;
|
|
@@ -1277,6 +2304,15 @@ interface AvatarImageOptions {
|
|
|
1277
2304
|
background?: readonly [string, string] | string | null;
|
|
1278
2305
|
/** Чёткие края без сглаживания (пиксель-арт в 2D-игре). */
|
|
1279
2306
|
pixelated?: boolean;
|
|
2307
|
+
/**
|
|
2308
|
+
* Кадр движения вместо ровной стойки (карточки жестов, походок и поз покоя в редакторе): жест пакета (`EMOTE_IDS`),
|
|
2309
|
+
* `walk` (шаг походки облика) или `idle` (поза покоя облика). Лицо: то, что ставит жест, если `expression` не задано.
|
|
2310
|
+
*/
|
|
2311
|
+
motion?: EmoteId | "walk" | "idle";
|
|
2312
|
+
/**
|
|
2313
|
+
* Момент движения, секунды. По умолчанию: 40% разового жеста, 1 с повторяющегося, полшага ходьбы, 1,2 с покоя.
|
|
2314
|
+
*/
|
|
2315
|
+
at?: number;
|
|
1280
2316
|
}
|
|
1281
2317
|
type AvatarFrame = "portrait" | "full" | "torso" | "legs" | "feet" | "head" | "face";
|
|
1282
2318
|
/** Фон бренда для фото профиля. */
|
|
@@ -1318,6 +2354,18 @@ declare function avatarFromServer(player: {
|
|
|
1318
2354
|
items: Record<string, AvatarItem>;
|
|
1319
2355
|
} | null;
|
|
1320
2356
|
|
|
2357
|
+
interface AvatarLighting {
|
|
2358
|
+
/** Поставить свет и окружение в сцену (сцен может быть много: снимки по одной на кадр). */
|
|
2359
|
+
light(scene: THREE.Scene): void;
|
|
2360
|
+
/** Освободить окружение (карту отражений на GPU). Свет в сценах уходит вместе со сценами. */
|
|
2361
|
+
dispose(): void;
|
|
2362
|
+
}
|
|
2363
|
+
/**
|
|
2364
|
+
* Свет аватара для рендерера: настраивает цвет и тени рендерера и один раз готовит карту отражений (её делит
|
|
2365
|
+
* каждая сцена этого рендерера). Модель смотрит в −z, камера витрины стоит перед ней (−z), аватар в начале координат.
|
|
2366
|
+
*/
|
|
2367
|
+
declare function createAvatarLighting(renderer: THREE.WebGLRenderer): AvatarLighting;
|
|
2368
|
+
|
|
1321
2369
|
/** Что снять: облик, вещи и кадр. */
|
|
1322
2370
|
interface AvatarThumbJob {
|
|
1323
2371
|
spec: AvatarSpec;
|
|
@@ -1358,7 +2406,7 @@ declare function createAvatarThumbQueue(opts?: {
|
|
|
1358
2406
|
budgetMs?: number;
|
|
1359
2407
|
}): AvatarThumbQueue;
|
|
1360
2408
|
|
|
1361
|
-
/** Все официальные вещи: бесплатные стартовые,
|
|
2409
|
+
/** Все официальные вещи: бесплатные стартовые, платные (shop.ts), затем наборы 26.11.2026 (sets/). */
|
|
1362
2410
|
declare const AVATAR_ITEM_LIST: readonly AvatarItem[];
|
|
1363
2411
|
/** Официальные вещи по id: источник вещей для composeAvatar. */
|
|
1364
2412
|
declare const AVATAR_ITEMS: Readonly<Record<string, AvatarItem>>;
|
|
@@ -1392,6 +2440,11 @@ interface AvatarCatalogExport {
|
|
|
1392
2440
|
mouths: string[];
|
|
1393
2441
|
/** Эмоции, которые можно выбрать аватару. */
|
|
1394
2442
|
emotions: string[];
|
|
2443
|
+
/** С 26.11.2026: форма головы, отметины лица, походка и поза покоя (нет поля в облике: по умолчанию). */
|
|
2444
|
+
heads: string[];
|
|
2445
|
+
marks: string[];
|
|
2446
|
+
walks: string[];
|
|
2447
|
+
idles: string[];
|
|
1395
2448
|
height: {
|
|
1396
2449
|
min: number;
|
|
1397
2450
|
max: number;
|
|
@@ -1410,6 +2463,8 @@ interface AvatarCatalogExport {
|
|
|
1410
2463
|
regionPairs: Record<string, string[]>;
|
|
1411
2464
|
faces: string[];
|
|
1412
2465
|
skinColor: string;
|
|
2466
|
+
/** Материалы коробки вещи (`mat`). */
|
|
2467
|
+
materials: string[];
|
|
1413
2468
|
};
|
|
1414
2469
|
}
|
|
1415
2470
|
/** Эталон и официальные вещи для сервера. */
|
|
@@ -1442,4 +2497,4 @@ declare function pixelTextureFromImage(img: RgbaImage, opts: PixelTextureImportO
|
|
|
1442
2497
|
declare const AVATAR_AUTHOR_ITEM_PREFIX = "ugc.";
|
|
1443
2498
|
declare const isAuthorAvatarItem: (id: string) => boolean;
|
|
1444
2499
|
|
|
1445
|
-
export { ACTION_TIME, ANIM_EVENTS, AVATAR_AUTHOR_ITEM_PREFIX, AVATAR_BASE_COLORS, AVATAR_FACE_RECT, AVATAR_HEIGHT, AVATAR_ITEMS, AVATAR_ITEM_LIMITS, AVATAR_ITEM_LIST, AVATAR_ITEM_PRINTS, AVATAR_ITEM_SHOTS, AVATAR_PORTRAIT_BACKGROUND, AVATAR_RIG_ID, AVATAR_SHOP_DEFAULT_PRICES, AVATAR_SHOP_ITEM_LIST, AVATAR_SLOTS, AVATAR_SPEC_VERSION, AVATAR_STANDARD_ID, AVATAR_STYLE, type AnimEvent, type AnimInput, Animator, Art, AvatarActor, type AvatarCatalogExport, type AvatarFace, type AvatarFrame, type AvatarImageOptions, type AvatarItem, type AvatarItemResult, type AvatarItemSource, type AvatarPaint, type AvatarSlot, type AvatarSnapshotter, type AvatarSpec, type AvatarThumbJob, type AvatarThumbQueue, type AvatarThumbShot, BODY_REGIONS, BONE_ROLES, BROW_STYLES, type BodyRegion, type BoneGeo, type BoneRole, type BrowStyle, CH, CHANNELS, CHARACTER_LIMITS, CHARACTER_SPEC_VERSION, CLEAR, CLIPS, CLOTH_COLORS, CREATURE_KINDS, type Channel, type CharFinish, type CharPart, type CharStyle, type CharacterAsset, type CharacterLayout, type CharacterParseResult, type CharacterSpec, CharacterView, type CharacterViewOptions, type ClipCtx, type ClipFn, type ClipId, type CreatureKind, type CreatureLook, type Ctx2D, DEFAULT_AVATAR, DEFAULT_AVATAR_FACE, DEFAULT_CHARACTER_SOURCE, DEFAULT_COLORS, DEFAULT_FINISH, DrawnFace, EMOTES, EMOTE_IDS, EMOTION_EVENTS, EXPRESSIONS, EXPRESSION_CHAIN, EXTRA_BONE_ROLES, EYE_COLORS, EYE_STYLES, type EmoteDef, type EmoteId, Emotion, type EmotionEvent, type Expression, type ExtraBone, type ExtraBoneRole, type EyeStyle, FACE_NAMES, FACE_TEXELS, type FaceDecal, type FaceName, type FacePainter, type FaceSpec, HAIR_COLORS, HELD_KINDS, HUMAN_BOTTOMS, HUMAN_HAIR, HUMAN_SHOES, HUMAN_TOPS, type HeldKind, type HumanLook, IDLE_STYLES, type IdleStyle, LOCOMOTION, type LocoState, type LookColors, MOUTH_STYLES, type MouthStyle, POSTURE, type PixelTex, type PixelTextureImport, type PixelTextureImportOptions, type Pose, type Posture, type PrintDecal, REGION_PAIRS, REST, RIGS, RIG_CLIPS, RIG_IDS, type RgbaImage, type RigBone, type RigId, type RigSocket, type RigTemplate, SKIN_COLOR, SKIN_TONES, SLOT_RULES, SOCKETS, type SlotRule, type SocketName, type StyleParams, type Track, type UseAction, type V3, VOXEL_CHARACTER_SYSTEM_PROMPT, VoxelActor, type VoxelActorOptions, WALK_STYLES, type WalkStyle, acquireCharacter, add, applyPosture, avatarCatalogExport, avatarFromServer, avatarItemShot, avatarItemsForSlot, avatarMannequinWith, avatarPrints, bandColors, bone, bonesOf, characterFromImage, characterOf, characterSpecs, clearPose, composeAvatar, copyPose, createAvatarSnapshotter, createAvatarThumbQueue, creatureCharacter, creatureSource, defaultCharacter, defaultCharacterName, disposeNameplate, drawAvatarFace, emotionFromText, freeAvatarItemsForSlot, humanSource, isAuthorAvatarItem, isAvatarShopItem, isDefaultCharacterName, isEmote, isObj, layoutCharacter, lerpPose, mirrorBone, nameplate, newAnimInput, normColor, npcCharacter, num, onCharacterKnown, parseAvatarSpec, parseCharacterSpec, pick, pixelTextureFromImage, randomAvatar, recolor, registerCharacter, releaseCharacter, renderAvatarCanvas, renderAvatarImage, rigOfSpec, sampleEmote, sampleTrack, setCh, specHash, stableStringify, standardFace, styleParams, validateAvatarItem, vec3 };
|
|
2500
|
+
export { ACTION_TIME, ANIM_EVENTS, AVATAR_AUTHOR_ITEM_PREFIX, AVATAR_BASE_COLORS, AVATAR_FACE_RECT, AVATAR_HEADS, AVATAR_HEIGHT, AVATAR_IDLES, AVATAR_ITEMS, AVATAR_ITEM_LIMITS, AVATAR_ITEM_LIST, AVATAR_ITEM_PRINTS, AVATAR_ITEM_SHOTS, AVATAR_PORTRAIT_BACKGROUND, AVATAR_RIG_ID, AVATAR_SHOP_DEFAULT_PRICES, AVATAR_SHOP_ITEM_LIST, AVATAR_SLOTS, AVATAR_SPEC_VERSION, AVATAR_STANDARD_ID, AVATAR_STYLE, AVATAR_WALKS, type AnimEvent, type AnimInput, Animator, Art, AvatarActor, type AvatarCatalogExport, type AvatarFace, type AvatarFrame, type AvatarHead, type AvatarImageOptions, type AvatarItem, type AvatarItemResult, type AvatarItemSource, type AvatarLighting, type AvatarPaint, type AvatarSlot, type AvatarSnapshotter, type AvatarSpec, type AvatarThumbJob, type AvatarThumbQueue, type AvatarThumbShot, BODY_REGIONS, BONE_ROLES, BROW_STYLES, type BodyRegion, type BoneGeo, type BoneRole, type BrowStyle, CH, CHANNELS, CHARACTER_LIMITS, CHARACTER_SPEC_VERSION, CLEAR, CLIPS, CLOTH_COLORS, CREATURE_KINDS, type Channel, type CharFinish, type CharPart, type CharStyle, type CharacterAsset, type CharacterLayout, type CharacterMaterial, type CharacterParseResult, type CharacterSpec, CharacterView, type CharacterViewOptions, type ClipCtx, type ClipFn, type ClipId, type CreatureKind, type CreatureLook, type Ctx2D, DEFAULT_AVATAR, DEFAULT_AVATAR_ANIM, DEFAULT_AVATAR_FACE, DEFAULT_AVATAR_HEAD, DEFAULT_CHARACTER_SOURCE, DEFAULT_COLORS, DEFAULT_FINISH, DrawnFace, EMOTES, EMOTE_IDS, EMOTION_EVENTS, EVERYDAY_IDS, EXPRESSIONS, EXPRESSION_CHAIN, EXTRA_BONE_ROLES, EYE_COLORS, EYE_STYLES, type EmoteDef, type EmoteId, Emotion, type EmotionEvent, type Expression, type ExtraBone, type ExtraBoneRole, type EyeStyle, FACE_NAMES, FACE_TEXELS, type FaceDecal, type FaceDrawn, type FaceName, type FacePainter, type FaceSpec, type FaceState, GESTURE_IDS, HAIR_COLORS, HELD_KINDS, HUMAN_BOTTOMS, HUMAN_HAIR, HUMAN_SHOES, HUMAN_TOPS, type HeldKind, type HumanLook, IDLE_STYLES, type IdleStyle, LOCOMOTION, type LocoState, type LookColors, MARK_STYLES, MOUTH_STYLES, type MarkStyle, type MatGeo, type MouthStyle, PART_MATERIALS, PART_SHAPES, POSTURE, type PartMaterial, type PartShape, type PixelTex, type PixelTextureImport, type PixelTextureImportOptions, type Pose, type Posture, type PrintDecal, REGION_PAIRS, REST, RIGS, RIG_CLIPS, RIG_IDS, type RgbaImage, type RigBone, type RigId, type RigSocket, type RigTemplate, SEAT_HEIGHT_PX, SKIN_COLOR, SKIN_TONES, SLOT_RULES, SOCKETS, type SlotRule, type SocketName, type StyleParams, type Track, type UseAction, type V3, VOXEL_CHARACTER_SYSTEM_PROMPT, VoxelActor, type VoxelActorOptions, WALK_STYLES, type WalkStyle, acquireCharacter, add, applyPosture, avatarCatalogExport, avatarFromServer, avatarItemShot, avatarItemsForSlot, avatarMannequinWith, avatarPrints, bandColors, bone, bonesOf, characterFromImage, characterOf, characterSpecs, clearPose, composeAvatar, copyPose, createAvatarLighting, createAvatarSnapshotter, createAvatarThumbQueue, creatureCharacter, creatureSource, defaultCharacter, defaultCharacterName, disposeNameplate, drawAvatarFace, emoteLabelOf, emotionFromText, freeAvatarItemsForSlot, humanSource, isAuthorAvatarItem, isAvatarShopItem, isDefaultCharacterName, isEmote, isObj, layoutCharacter, lerpPose, mirrorBone, nameplate, newAnimInput, normColor, npcCharacter, num, onCharacterKnown, parseAvatarSpec, parseCharacterSpec, pick, pixelTextureFromImage, randomAvatar, recolor, registerCharacter, releaseCharacter, renderAvatarCanvas, renderAvatarImage, rigOfSpec, sampleEmote, sampleTrack, setCh, specHash, stableStringify, standardFace, styleParams, validateAvatarItem, vec3 };
|