コード例 #1
0
        public T GetModAsset <T>(string assetName) where T : class
        {
            ResourceDatabase resourceDatabase = GetModAssets(ModLoader.CurrentLoader.CurrentMod.Name);

            return(resourceDatabase.GetResource <T>(assetName));
        }
コード例 #2
0
        public T GetModAsset <T>(string modName, string assetName) where T : class
        {
            ResourceDatabase resourceDatabase = GetModAssets(modName);

            return(resourceDatabase.GetResource <T>(assetName));
        }