コード例 #1
0
ファイル: PlayerAbnormals.cs プロジェクト: tuita520/Tera
        public Death Aggro(NpcEntity entity)
        {
            Death death = null;

            if (entity != null)
            {
                _aggro.TryGetValue(entity, out death);
            }
            return(death ?? new Death());
        }
コード例 #2
0
ファイル: AbnormalityStorage.cs プロジェクト: tuita520/Tera
 public void AggroStart(Player player, NpcEntity target, long start)
 {
     if (!PlayerAggro.ContainsKey(player))
     {
         PlayerAggro.Add(player, new Dictionary <NpcEntity, Death>());
     }
     if (!PlayerAggro[player].ContainsKey(target))
     {
         PlayerAggro[player][target] = new Death();
     }
     PlayerAggro[player][target].Start(start);
 }
コード例 #3
0
ファイル: PlayerAbnormals.cs プロジェクト: tuita520/Tera
 public PlayerAbnormals()
 {
     Times  = new Dictionary <HotDot, AbnormalityDuration>();
     Death  = new Death();
     _aggro = new Dictionary <NpcEntity, Death>();
 }