[]
如果插件中引用了资源名,一旦资源重命名后,插件中的相关属性的值就期望被同步;
public interface IReferenceResource
返回插件中所有使用资源的信息。
IEnumerable<LocatedObject<string>> GetResources(LocationIndicator location)
| 类型 | 名称 | 描述 |
|---|---|---|
| LocationIndicator | location |
| 类型 | 描述 |
|---|---|
| System.Collections.Generic.IEnumerable<T><LocatedObject<string>> |
一旦资源被重命名时会调用该函数,所以需实现该接口重命名插件中使用到的相关资源名。
void RenameResourceName(string oldName, string newName)
| 类型 | 名称 | 描述 |
|---|---|---|
| string | oldName | |
| string | newName |