Example #1
0
        void AccessModel(Action <ImageSamplingData> callback)
        {
            AssertEmulatorAlive();
            var path = ResourceManager.Default.GetFullPath("${G}/${R}/${A}/Json/" + ImageSamplingData.DefaultFileName);
            var vesc = ImageSamplingData.FromFile(path);

            callback(vesc);
            vesc.Save(path);
        }
Example #2
0
        private static double GetFindUnitThreshold()
        {
            var res  = ResourceManager.Default.GetResource("${G}/Json/" + ImageSamplingData.DefaultFileName);
            var data = res.ParseObjWithCache(int.MaxValue, (filePath) =>
            {
                return(ImageSamplingData.FromFile(filePath));
            });
            var r = data.GetThreshold("ArenaFindUnit");

            return(r);
        }