Ejemplo n.º 1
0
        /// <summary>
        /// Update our unit data
        /// </summary>
        /// <param name="UnitData"></param>
        public void UpdateUnitData(MM_Unit_Data[] UnitData)
        {
            MM_Element FoundElem;

            foreach (MM_Unit_Data InUnit in UnitData)
            {
                if (MM_Repository.TEIDs.TryGetValue(InUnit.TEID_Un, out FoundElem) && FoundElem is MM_Unit)
                {
                    MM_Server_Interface.UpdateUnitData(InUnit, FoundElem as MM_Unit, true);
                }
            }
            MM_Server_Interface.UpdateTimestamp(typeof(MM_Unit_Data));
        }