Пример #1
0
 public TileInfo(TTile template)
 {
     tTileHash      = template.Hash;
     mana           = template.mana;
     isObstacle     = template.type == TileType.Obstacle;
     isExplored     = false;
     isEmpty        = true;
     stayEntityHash = 0;
 }
Пример #2
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;
        }
Пример #3
0
 public void SetMana(Location loc, ElementMana mana)
 {
     TempData.map[loc.x, loc.y].mana = mana;
 }
Пример #4
0
 public void SetTemplate(TTile template)
 {
     this.tTileHash = template.Hash;
     mana           = template.mana;
     isObstacle     = template.type == TileType.Obstacle;
 }
Пример #5
0
 public void SetMana(ElementMana mana)
 {
     this.mana = mana;
 }
Пример #6
0
 public void ImpactManaCost(ElementMana cost, bool reduce)
 {
     AreaManager.Instance.SetMana(Loc, Info.mana + cost * (reduce ? -1 : 1));
 }