Skip to content

Commit

Permalink
Merge pull request #242 from knifhen/EventData_audio
Browse files Browse the repository at this point in the history
Added audio property to EventData, this was introduced in spine 3.7
  • Loading branch information
ivanpopelyshev committed Apr 26, 2018
2 parents 2a76865 + 1cebcae commit c3ce3a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/EventData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ namespace pixi_spine.core {
intValue: number;
floatValue: number;
stringValue: string;
audio: string;

constructor (name: string) {
this.name = name;
Expand Down
1 change: 1 addition & 0 deletions src/core/SkeletonJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ namespace pixi_spine.core {
data.intValue = this.getValue(eventMap, "int", 0);
data.floatValue = this.getValue(eventMap, "float", 0);
data.stringValue = this.getValue(eventMap, "string", "");
data.audio = this.getValue(eventMap, "audio", null);
skeletonData.events.push(data);
}
}
Expand Down

0 comments on commit c3ce3a8

Please sign in to comment.