コード例 #1
0
        public static Blueprint LoadWholeBlueprintAtPath(string path)
        {
            BlueprintLoader loader = new BlueprintLoader(path);

            try {
                loader.LoadBlueprint();
                return(loader.blueprint);
            } catch (Exception) {
                return(null);
            }
        }
コード例 #2
0
        public static Blueprint LoadRandomBlueprintPartAtPath(string path, IntVec3 size)
        {
            BlueprintLoader loader = new BlueprintLoader(path);

            try {
                loader.LoadBlueprint();
                loader.CutRandomRectOfSize(size);
                return(loader.blueprint);
            } catch (Exception) {
                return(null);
            }
        }