public SkillMap.Target Get(int x, int y) { SkillMap.Target target = (SkillMap.Target)null; this.targets.TryGetValue(SkillMap.GetHash(x, y), out target); return(target); }
public void Add(SkillMap.Target range) { this.targets[SkillMap.GetHash(range.pos)] = range; }
public bool IsRange(int x, int y) { return(this.scores.ContainsKey(SkillMap.GetHash(x, y))); }
public SkillMap.Score Get(int x, int y) { SkillMap.Score score = (SkillMap.Score)null; this.scores.TryGetValue(SkillMap.GetHash(x, y), out score); return(score); }
public void Add(SkillMap.Score score) { this.scores[SkillMap.GetHash(score.pos.x, score.pos.y)] = score; }
public static int GetHash(IntVector2 pos) { return(SkillMap.GetHash(pos.x, pos.y)); }