コード例 #1
0
        public void CreateEmotion(EmotionType type, Agent agent)
        {
            Emotion emotion = new Emotion(type, DetermineEmotionIntensity(agent), DetermineEmotionDuration(agent));

            GlobalMessageBus.Instance.PublishEvent(new NewEmotionCreatedMessage(emotion, agent));
        }
コード例 #2
0
 public NewEmotionCreatedMessage(Emotion emotion, Agent agent)
 {
     Emotion = emotion;
     Agent   = agent;
 }