コード例 #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 ApplyEffect()
        {
            TTile tTile = Info.tTileHash.GetTTile();

            foreach (var skill in tTile.impactSkills)
            {
                skill.ApplyEffect(0, Loc, Loc, true);
            }
            foreach (var buff in tTile.impactBuffs)
            {
                StayEntity.EntityBuffManager.AddBuff(new BuffHandler(0, StayEntityHash, buff.Hash));
            }
        }
コード例 #4
0
 public void SetTemplate(TTile template)
 {
     this.tTileHash = template.Hash;
     mana           = template.mana;
     isObstacle     = template.type == TileType.Obstacle;
 }