UNPKG

@inworld/web-core

Version:
26 lines (25 loc) 962 B
import { EmotionEventStrength } from '../../../../proto/ai/inworld/packets/packets.pb.js'; export var EmotionStrengthCode; (function (EmotionStrengthCode) { EmotionStrengthCode["UNSPECIFIED"] = "UNSPECIFIED"; EmotionStrengthCode["WEAK"] = "WEAK"; EmotionStrengthCode["STRONG"] = "STRONG"; EmotionStrengthCode["NORMAL"] = "NORMAL"; })(EmotionStrengthCode || (EmotionStrengthCode = {})); export class EmotionStrength { constructor(strength) { this.code = strength; } static fromProto(code) { switch (code) { case EmotionEventStrength.UNSPECIFIED: return EmotionStrengthCode.UNSPECIFIED; case EmotionEventStrength.WEAK: return EmotionStrengthCode.WEAK; case EmotionEventStrength.STRONG: return EmotionStrengthCode.STRONG; case EmotionEventStrength.NORMAL: return EmotionStrengthCode.NORMAL; } } }