예제 #1
0
        private static Texture GetTexture(ModTexture modTexture)
        {
            Log.Trace("Entering PlaneMode.GetTexture()");
            Log.Trace($"Getting texture: {modTexture}");

            Log.Debug($"Loading texture: {modTexture}");

            var texture = GameDatabase
                .Instance
                .GetTexture($"{GetBaseDirectory().Name}/Textures/{modTexture}", false);

            Log.Debug($"Loaded texture: {modTexture}");
            Log.Trace("Leaving PlaneMode.GetTexture()");

            return texture;
        }