Esempio n. 1
0
 public void AddEventRecord(EventDTO newEvent)
 {
     _rpcAsset.AddEventRecord(newEvent);
     Events.DataSource = _rpcAsset.EventRecords.ToList();
     Events.Refresh();
     _mainForm.SetModified();
 }
Esempio n. 2
0
        public void AddEmotion(EmotionDTO newEmotion)
        {
            var resultingEmotion = _rpcAsset.AddActiveEmotion(newEmotion);

            Emotions.DataSource.Add(resultingEmotion);
            Emotions.Refresh();
            _mainForm.SetModified();
        }
Esempio n. 3
0
 public void AddBelief(BeliefDTO belief)
 {
     //This step is required to avoid storing beliefs with the SELF Keyword in their value or name
     belief.Name  = ((Name)belief.Name).RemoveSelfPerspective(_rpcAsset.CharacterName).ToString();
     belief.Value = ((Name)belief.Value).RemoveSelfPerspective(_rpcAsset.CharacterName).ToString();
     _rpcAsset.UpdateBelief(belief.Name, belief.Value, belief.Certainty, belief.Perspective);
     Beliefs.DataSource.Add(belief);
     Beliefs.Refresh();
     _mainForm.SetModified();
 }