public void CreateEmotion(EmotionType type, Agent agent) { Emotion emotion = new Emotion(type, DetermineEmotionIntensity(agent), DetermineEmotionDuration(agent)); GlobalMessageBus.Instance.PublishEvent(new NewEmotionCreatedMessage(emotion, agent)); }
public NewEmotionCreatedMessage(Emotion emotion, Agent agent) { Emotion = emotion; Agent = agent; }