1
This commit is contained in:
@@ -2,11 +2,21 @@ using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BITKit.Mod;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace BITKit
|
||||
{
|
||||
public static class ModServiceDictionaryReferenceExtensions
|
||||
{
|
||||
public static UniTask<T> LoadAssets<T>(int id) where T :class
|
||||
{
|
||||
var path = DictionaryReferenceScriptableObject.Dictionary[id];
|
||||
return ModService.LoadAsset<T>(path);
|
||||
}
|
||||
}
|
||||
public sealed class DictionaryReferenceConfigAttribute : System.Attribute
|
||||
{
|
||||
public readonly int index;
|
||||
|
Reference in New Issue
Block a user