예제 #1
0
 private void ReceiveSyncKill(KillDto dto)
 {
     if (dto == null)
     {
         return;
     }
     Dispatch(AreaCode.GAME, GameEvent.GAME_SYNC_KILL, dto);
 }
예제 #2
0
        private static EmbedBuilder BuildIndividualKillEmbed(KillDto killerStats)
        {
            var embed = new EmbedBuilder();

            var output = $"#{killerStats.Id} [{killerStats.Alliance}] {killerStats.Victim} Killed By {killerStats.KilledBy} on {killerStats.KilledOn.ToString("dd/MM HH:mm")} ({ killerStats.Power.ToString("N0")}) [Img]({killerStats.ImageLink})";

            embed.AddField($"Kill #{killerStats.Id}", output);

            return(embed);
        }
예제 #3
0
    /// <summary>
    /// 同步击杀数目
    /// </summary>
    private void SyncKill(KillDto dto)
    {
        string acc = dto.Account;

        if (acc == localAcc)
        {
            SetLocalKill(dto.Kill);
        }
        GameObject obj = userGameObjDict[acc];

        obj.transform.Find("Canvas").transform.Find("KillText").GetComponent <Text>().text = dto.Kill.ToString();
    }
예제 #4
0
        public void Handle(KillCreated e)
        {
            var kill = new KillDto {
                DamageTaken      = e.DamageTaken,
                Id               = e.Id,
                IskLoss          = e.IskLoss,
                KillDate         = e.KillDate,
                KillPoints       = e.KillPoints,
                Sequence         = e.Sequence,
                ShipId           = e.ShipId,
                SystemId         = e.SystemId,
                Timestamp        = e.Timestamp,
                VictimAllianceId = e.AllianceId,
                VictimCorpId     = e.CorpId,
                VictimPilotId    = e.PilotId
            };

            _repository.Save(kill);
        }