Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="aiSystem"></param>
        /// <returns></returns>
        public static Serial RegisterAISystem(AISystem aiSystem)
        {
            Monitor.Enter(s_LockAISystem);
            {
                aiSystem.InternalSerial = s_ExclusiveSerial.GetExclusiveSerial();
                s_AISystem.Add(aiSystem.InternalSerial, aiSystem);
            }
            Monitor.Exit(s_LockAISystem);

            return(0);
        }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="nTriggerID"></param>
 public static void RemoveAISystem(AISystem aiSystem)
 {
     RemoveAISystem(aiSystem.Serial);
 }