Exemplo n.º 1
0
        public void LoadResourceTranslation()
        {
            var resourcePool = new ResourceTranslationPool();
            var textureFiles = Directory.GetFiles(ResourceTranslationDir, "*.png", SearchOption.AllDirectories);

            foreach (var file in textureFiles)
            {
                resourcePool.AddResource(file);
            }

            ResourceTranslationPool = resourcePool;
            Logger.Log(LogLevel.Debug, $"[MaidTranslate] {resourcePool.Resource.Count} resource translation loaded.");
        }
Exemplo n.º 2
0
 public bool TranslateResource(Scene?scene, Texture2D texture)
 {
     return(ResourceTranslationPool.Translate(scene, texture));
 }