Example #1
0
        // true if target set with its name, x/y/z
        public static bool GetTargetPosition(out string name, out double x, out double y, out double z)
        {
            TargetType tt = (TargetType)SQLiteDBClass.GetSettingInt("TargetPositionType", (int)TargetType.None);

            name = SQLiteDBClass.GetSettingString("TargetPositionName", "");
            x    = SQLiteDBClass.GetSettingDouble("TargetPositionX", double.NaN);
            y    = SQLiteDBClass.GetSettingDouble("TargetPositionY", double.NaN);
            z    = SQLiteDBClass.GetSettingDouble("TargetPositionZ", double.NaN);
            return(tt != TargetType.None);
        }