コード例 #1
0
        /// <summary>
        /// Initializes a simulation system
        /// </summary>
        /// <param name="world">A custom world object</param>
        public SimulationSystem(SimulationWorld world)
        {
            #region PRECONDITION

            if (world == null)
            {
                throw new ArgumentNullException("The simulation world of a simulation system must not be NULL!");
            }

            #endregion

            this.Init(world);
        }
コード例 #2
0
 /// <summary>
 /// Initializes the simulation system
 /// </summary>
 /// <param name="world"></param>
 private void Init(SimulationWorld world)
 {
     this.World   = world;
     this.Threads = new List <SimulationThread>();
 }