Esempio n. 1
0
        public void GetAllConfigBytes(Dictionary <string, byte[]> output)
        {
            var types = Game.EventSystem.GetTypes(typeof(ConfigAttribute));

            foreach (var kv in types)
            {
                output[kv.Name] = XAssetLoader.LoadAsset <TextAsset>(XAssetPathUtilities.GetNormalConfigPath(kv.Name)).bytes;
            }
        }
Esempio n. 2
0
 public byte[] GetOneConfigBytes(string configName)
 {
     return(XAssetLoader.LoadAsset <TextAsset>(XAssetPathUtilities.GetNormalConfigPath(configName)).bytes);;
 }