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; }
protected Humanoid(HumanInformations human) { if (human == null) throw new ArgumentNullException("human"); Update(human); }
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; }
public void Update(HumanInformations human) { foreach (var option in human.options) { HandleOption(option); } Restrictions = human.restrictions; }