示例#1
0
        protected Humanoid(HumanInformations human)
        {
            if (human == null) throw new ArgumentNullException("human");

            m_followingCharactersLook = new ObservableCollection<EntityLook>(human.followingCharactersLook);
            Emote = human.emoteId > 0 ?
                DataProvider.Instance.Get<Emoticon>(human.emoteId) : null;
            EmoteStartTime = human.emoteStartTime > 0 ?
                new DateTime?(human.emoteStartTime.UnixTimestampToDateTime()) : null;
            Restrictions = human.restrictions;
            Title = human.titleId > 0 ?
                DataProvider.Instance.Get<Title>(human.titleId) : null;
            TitleParam = human.titleParam;
        }
示例#2
0
        protected Humanoid(HumanInformations human)
        {
            if (human == null) throw new ArgumentNullException("human");

            Update(human);
        }
示例#3
0
 public void Update(HumanInformations human)
 {
     m_followingCharactersLook = new ObservableCollection<EntityLook>(human.followingCharactersLook);
     Emote = human.emoteId > 0 ?
         DataProvider.Instance.Get<Emoticon>(human.emoteId) : null;
     EmoteStartTime = human.emoteStartTime > 0 ?
         new DateTime?(human.emoteStartTime.UnixTimestampToDateTime()) : null;
     Restrictions = human.restrictions;
     Title = human.titleId > 0 ?
         DataProvider.Instance.Get<Title>(human.titleId) : null;
     TitleParam = human.titleParam;
 }
示例#4
0
 public void Update(HumanInformations human)
 {
     foreach (var option in human.options)
     {
         HandleOption(option);
     }
     Restrictions = human.restrictions;
 }