@inworld/web-core
Version:
15 lines (14 loc) • 529 B
JavaScript
import { EmotionBehavior } from './emotion_behavior.entity.js';
import { EmotionStrength } from './emotion_strength.entity.js';
export class EmotionEvent {
constructor({ behavior, strength, }) {
this.behavior = behavior;
this.strength = strength;
}
static fromProto(proto) {
return new EmotionEvent({
behavior: new EmotionBehavior(EmotionBehavior.fromProto(proto.behavior)),
strength: new EmotionStrength(EmotionStrength.fromProto(proto.strength)),
});
}
}