Esempio n. 1
0
 public static byte[] getCache(string url)
 {
     if (AssetCacheURL.Contains(url))
     {
         int i = AssetCacheURL.IndexOf(url);
         return(AssetCacheDATA[i].ReadFile());
     }
     //if(AssetCache.ContainsKey(url)){
     //  return AssetCache[url];
     //}
     return(null);
 }
Esempio n. 2
0
    public float GetActionReward(int _locationIndex)
    {
        float ar = -1f;
        int   i  = actions.IndexOf(_locationIndex);

        if (i >= 0)
        {
            AINode node = BlackBord.GetNode(i);
            ar = node.Reward;
        }
        return(ar);
    }