Skip to content

Commit

Permalink
feat: add emotes to avatar shape (#256)
Browse files Browse the repository at this point in the history
* feat: add emotes to avatar shape

* update files
  • Loading branch information
menduz authored Sep 13, 2022
1 parent 240e52f commit 8559993
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/@dcl/legacy-ecs/src/decentraland/AvatarShape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export class AvatarShape extends ObservableComponent {
@ObservableComponent.field
wearables!: WearableId[]

@ObservableComponent.field
emotes!: string[]

@ObservableComponent.field
skinColor!: ReadOnlyColor4

Expand Down
29 changes: 29 additions & 0 deletions packages/decentraland-ecs/types/dcl/decentraland-ecs.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -3218,6 +3218,35 @@
"isOptional": false,
"name": "Dummy"
},
{
"kind": "Property",
"canonicalReference": "@dcl/legacy-ecs!AvatarShape#emotes:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "emotes: "
},
{
"kind": "Content",
"text": "string[]"
},
{
"kind": "Content",
"text": ";"
}
],
"isReadonly": false,
"isOptional": false,
"releaseTag": "Public",
"name": "emotes",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
},
"isStatic": false,
"isProtected": false
},
{
"kind": "Property",
"canonicalReference": "@dcl/legacy-ecs!AvatarShape#expressionTriggerId:member",
Expand Down
2 changes: 2 additions & 0 deletions packages/decentraland-ecs/types/dcl/decentraland-ecs.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ export class AvatarShape extends ObservableComponent {
// (undocumented)
static Dummy(): AvatarShape;
// (undocumented)
emotes: string[];
// (undocumented)
expressionTriggerId: string;
// (undocumented)
expressionTriggerTimestamp: number;
Expand Down
1 change: 1 addition & 0 deletions packages/decentraland-ecs/types/dcl/index-beta.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ export declare class AvatarShape extends ObservableComponent {
expressionTriggerTimestamp: number;
bodyShape: WearableId;
wearables: WearableId[];
emotes: string[];
skinColor: ReadOnlyColor4;
hairColor: ReadOnlyColor4;
eyeColor: ReadOnlyColor4;
Expand Down
1 change: 1 addition & 0 deletions packages/decentraland-ecs/types/dcl/index-full.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ export declare class AvatarShape extends ObservableComponent {
expressionTriggerTimestamp: number;
bodyShape: WearableId;
wearables: WearableId[];
emotes: string[];
skinColor: ReadOnlyColor4;
hairColor: ReadOnlyColor4;
eyeColor: ReadOnlyColor4;
Expand Down
1 change: 1 addition & 0 deletions packages/decentraland-ecs/types/dcl/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ declare class AvatarShape extends ObservableComponent {
expressionTriggerTimestamp: number;
bodyShape: WearableId;
wearables: WearableId[];
emotes: string[];
skinColor: ReadOnlyColor4;
hairColor: ReadOnlyColor4;
eyeColor: ReadOnlyColor4;
Expand Down

0 comments on commit 8559993

Please sign in to comment.