public TileInfo(TTile template) { tTileHash = template.Hash; mana = template.mana; isObstacle = template.type == TileType.Obstacle; isExplored = false; isEmpty = true; stayEntityHash = 0; }
public TileInfo(int tTileHash) { this.tTileHash = tTileHash; TTile template = tTileHash.GetTTile(); mana = template.mana; isObstacle = template.type == TileType.Obstacle; isExplored = false; isEmpty = true; stayEntityHash = 0; }
public void SetMana(Location loc, ElementMana mana) { TempData.map[loc.x, loc.y].mana = mana; }
public void SetTemplate(TTile template) { this.tTileHash = template.Hash; mana = template.mana; isObstacle = template.type == TileType.Obstacle; }
public void SetMana(ElementMana mana) { this.mana = mana; }
public void ImpactManaCost(ElementMana cost, bool reduce) { AreaManager.Instance.SetMana(Loc, Info.mana + cost * (reduce ? -1 : 1)); }