Example #1
0
 public void Load(ResourceCache resources, string mapFile)
 {
     var mapThread = LoadMap(mapFile).ContinueWith(
         task =>
         {
             var texPath = task.Result;
             if (!string.IsNullOrWhiteSpace(texPath))
                 _tex = resources.Load<Texture>(texPath);
         });
 }
Example #2
0
 public void Load(ResourceCache resources, string mapFile)
 {
     var mapThread = LoadMap(mapFile).ContinueWith(
         task =>
     {
         var texPath = task.Result;
         if (!string.IsNullOrWhiteSpace(texPath))
         {
             _tex = resources.Load <Texture>(texPath);
         }
     });
 }
Example #3
0
 public void Load(ResourceCache resources, string textureName)
 {
     _tex = resources.Load <Texture>(textureName);
 }
Example #4
0
 public void Load(ResourceCache resources, string textureName)
 {
     _tex = resources.Load<Texture>(textureName);
 }