Beispiel #1
0
        public byte[] Get(string name)
        {
            if (files.ContainsKey(name))
            {
                return(files[name]);
            }
            var path = $"{resourceFolder}{name}";

            if (!ModContent.FileExists(path))
            {
                files.Add(name, null);
                return(null);
            }
            var data = ModContent.GetFileBytes(path);

            files.Add(name, data);
            return(files[name]);
        }