Пример #1
0
        private Map(MapData map)
        {
            m_position = ObjectDataManager.Instance.GetOrDefault <MapPosition>(map.Id);
            IEnumerable <Cell> cells = map.Cells.Select(entry => new Cell(this, entry));

            m_cells = new CellList(cells.ToArray());
        }
Пример #2
0
        public Map(int id, string decryptionKey)
        {
            // decryption key not used ? oO
            m_map = DataProvider.Instance.Get<DlmMap>(id, GenericDecryptionKey);
            IEnumerable<Cell> cells = m_map.Cells.Select(entry => new Cell(this, entry));

            Cells = new CellList(cells.ToArray());
        }
Пример #3
0
        public Map(int id, string decryptionKey)
        {
            // decryption key not used ? oO
            m_map = DataProvider.Instance.Get <DlmMap>(id, GenericDecryptionKey);
            IEnumerable <Cell> cells = m_map.Cells.Select(entry => new Cell(this, entry));

            Cells = new CellList(cells.ToArray());
        }
Пример #4
0
        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);
        }