public PlayedCharacter(Bot bot, CharacterBaseInformations informations) { InformationLevel = MessageLevel.All;// MessageLevel.Warning | MessageLevel.Error; if (informations == null) { throw new ArgumentNullException("informations"); } Bot = bot; Id = informations.id; Level = informations.level; Name = informations.name; Breed = new Breeds.Breed(ObjectDataManager.Instance.Get <Breed>(informations.breed)); Look = informations.entityLook; Sex = informations.sex; Inventory = new Inventory(this); Stats = new Stats.PlayerStats(this); SpellsBook = new SpellsBook(this); SpellShortcuts = new SpellShortcutBar(this); GeneralShortcuts = new GeneralShortcutBar(this); m_jobs = new ObservableCollectionMT <Job>(); m_readOnlyJobs = new ReadOnlyObservableCollectionMT <Job>(m_jobs); m_emotes = new ObservableCollectionMT <Emoticon>(); m_readOnlyEmotes = new ReadOnlyObservableCollectionMT <Emoticon>(m_emotes); }
public SpellsBook(PlayedCharacter owner) { if (owner == null) throw new ArgumentNullException("owner"); Character = owner; m_spells = new ObservableCollectionMT<Spell>(); m_readOnlySpells = new ReadOnlyObservableCollectionMT<Spell>(m_spells); }
public SnifferViewModel(Bot bot) : base(bot) { m_messages = new ObservableCollectionMT <ObjectDumpNode>(); m_readOnlyMessages = new ReadOnlyObservableCollectionMT <ObjectDumpNode>(m_messages); IsPaused = DefaultPaused; OnTheFly = DefaultRecordOnTheFly; }
public Inventory(PlayedCharacter owner) { if (owner == null) throw new ArgumentNullException("owner"); Owner = owner; m_items = new ObservableCollectionMT<Item>(); m_readOnlyItems = new ReadOnlyObservableCollectionMT<Item>(m_items); AutomaticallyDestroyItemsOnOverload = false; }
public ShortcutBar(PlayedCharacter character) { if (character == null) { throw new ArgumentNullException("character"); } Character = character; m_shortcuts = new ObservableCollectionMT <T>(); m_readOnlyShortcuts = new ReadOnlyObservableCollectionMT <T>(m_shortcuts); }
public SpellsBook(PlayedCharacter owner) { if (owner == null) { throw new ArgumentNullException("owner"); } Character = owner; m_spells = new ObservableCollectionMT <Spell>(); m_readOnlySpells = new ReadOnlyObservableCollectionMT <Spell>(m_spells); }
public Inventory(PlayedCharacter owner) { if (owner == null) { throw new ArgumentNullException("owner"); } Owner = owner; m_items = new ObservableCollectionMT <Item>(); m_readOnlyItems = new ReadOnlyObservableCollectionMT <Item>(m_items); AutomaticallyDestroyItemsOnOverload = false; }
public Item(ObjectItem item) : base(item.objectGID) { Guid = item.objectUID; m_effects = new ObservableCollectionMT <EffectBase>(item.effects.Select(EffectBase.CreateInstance)); m_readOnlyEffects = new ReadOnlyObservableCollectionMT <EffectBase>(m_effects); Quantity = item.quantity; PowerRate = item.powerRate; OverMax = item.overMax; Position = (CharacterInventoryPositionEnum)item.position; }
public Item(ObjectItem item) : base(item.objectGID) { Guid = item.objectUID; m_effects = new ObservableCollectionMT<EffectBase>(item.effects.Select(EffectBase.CreateInstance)); m_readOnlyEffects = new ReadOnlyObservableCollectionMT<EffectBase>(m_effects); Quantity = item.quantity; PowerRate = item.powerRate; OverMax = item.overMax; Position = (CharacterInventoryPositionEnum)item.position; }
public Map(int id, string decryptionKey) { // decryption key not used ? oO m_map = MapsManager.Instance.GetDlmMap(id, GenericDecryptionKey); m_position = ObjectDataManager.Instance.GetOrDefault <MapPosition>(id); IEnumerable <Cell> cells = m_map.Cells.Select(entry => new Cell(this, entry)); m_cells = new CellList(cells.ToArray()); InitializeElements(); LoadSubMaps(); m_interactives = new ObservableCollectionMT <InteractiveObject>(); m_readOnlyInteractives = new ReadOnlyObservableCollectionMT <InteractiveObject>(m_interactives); }
public InteractiveObject(Map map, InteractiveElement interactive) { if (map == null) throw new ArgumentNullException("map"); if (interactive == null) throw new ArgumentNullException("interactive"); Id = interactive.elementId; Type = interactive.elementTypeId > 0 ? ObjectDataManager.Instance.Get<Interactive>(interactive.elementTypeId) : null; Map = map; m_enabledSkills = new ObservableCollectionMT<InteractiveSkill>(interactive.enabledSkills.Select(x => new InteractiveSkill(this, x))); m_readOnlyEnabledSkills = new ReadOnlyObservableCollectionMT<InteractiveSkill>(m_enabledSkills); m_disabledSkills = new ObservableCollectionMT<InteractiveSkill>(interactive.disabledSkills.Select(x => new InteractiveSkill(this, x))); m_readOnlyDisabledSkills = new ReadOnlyObservableCollectionMT<InteractiveSkill>(m_disabledSkills); }
public InteractiveObject(Map map, InteractiveElement interactive) { if (map == null) { throw new ArgumentNullException("map"); } if (interactive == null) { throw new ArgumentNullException("interactive"); } Id = interactive.elementId; Type = interactive.elementTypeId > 0 ? ObjectDataManager.Instance.Get <Interactive>(interactive.elementTypeId) : null; Map = map; m_enabledSkills = new ObservableCollectionMT <InteractiveSkill>(interactive.enabledSkills.Select(x => new InteractiveSkill(this, x))); m_readOnlyEnabledSkills = new ReadOnlyObservableCollectionMT <InteractiveSkill>(m_enabledSkills); m_disabledSkills = new ObservableCollectionMT <InteractiveSkill>(interactive.disabledSkills.Select(x => new InteractiveSkill(this, x))); m_readOnlyDisabledSkills = new ReadOnlyObservableCollectionMT <InteractiveSkill>(m_disabledSkills); }
public MapContext() { _collectionActors = new ObservableCollectionMT <T>(); _readOnlyActors = new ReadOnlyObservableCollectionMT <T>(_collectionActors); _trappedCells = new SortedList <int, SortedSet <short> >(); }
protected Fighter() { CastsHistory = new SpellCastHistory(this); m_readOnlySummons = new ReadOnlyObservableCollectionMT <Fighter>(m_summons); }
public SpellCastHistory(Fighter fighter) { Fighter = fighter; m_readOnlyCasts = new ReadOnlyObservableCollectionMT <SpellCast>(m_casts); }
public SpellCastHistory(Fighter fighter) { Fighter = fighter; m_readOnlyCasts = new ReadOnlyObservableCollectionMT<SpellCast>(m_casts); }
public PlayedCharacter(Bot bot, CharacterBaseInformations informations) { InformationLevel = MessageLevel.All;// MessageLevel.Warning | MessageLevel.Error; if (informations == null) throw new ArgumentNullException("informations"); Bot = bot; Id = informations.id; Level = informations.level; Name = informations.name; Breed = new Breeds.Breed(ObjectDataManager.Instance.Get<Breed>(informations.breed)); Look = informations.entityLook; Sex = informations.sex; Inventory = new Inventory(this); Stats = new Stats.PlayerStats(this); SpellsBook = new SpellsBook(this); SpellShortcuts = new SpellShortcutBar(this); GeneralShortcuts = new GeneralShortcutBar(this); m_jobs = new ObservableCollectionMT<Job>(); m_readOnlyJobs = new ReadOnlyObservableCollectionMT<Job>(m_jobs); m_emotes = new ObservableCollectionMT<Emoticon>(); m_readOnlyEmotes = new ReadOnlyObservableCollectionMT<Emoticon>(m_emotes); }
public TimeLine(Fight fight) { Fight = fight; Index = -1; m_readOnlyFighters = new ReadOnlyObservableCollectionMT <Fighter>(m_fighters); }
public TimeLine(Fight fight) { Fight = fight; Index = -1; m_readOnlyFighters = new ReadOnlyObservableCollectionMT<Fighter>(m_fighters); }
protected Fighter() { CastsHistory = new SpellCastHistory(this); m_readOnlySummons = new ReadOnlyObservableCollectionMT<Fighter>(m_summons); }