コード例 #1
0
        public static void SetLuminosity(Guid environmentId, float luminosityOffset)
        {
            double environmentConditionValue = EnvironmentSimulator.GetEnvironmentMeasures(environmentId).Luminosity;

            EnvironmentChangeItem item = new EnvironmentChangeItem(environmentId, luminosityOffset, environmentConditionValue);

            ThreadPool.QueueUserWorkItem(new WaitCallback(EnvironmentSimulator.SetLuminosityThread), item);
        }
コード例 #2
0
        public static void SetTemperature(Guid environmentId, float temperatureOffset)
        {
            double environmentConditionValue = EnvironmentSimulator.GetEnvironmentMeasures(environmentId).Temperature;

            EnvironmentChangeItem item = new EnvironmentChangeItem(environmentId, temperatureOffset, environmentConditionValue);

            ThreadPool.QueueUserWorkItem(new WaitCallback(EnvironmentSimulator.SetTemperatureThread), item);
        }