Ejemplo n.º 1
0
        private void _Response(HitResponse obj)
        {
            foreach(var fishData in _Request.FishDatas)
            {
                if(obj.FishId != fishData.FishId || obj.WepId != _Request.WeaponData.BulletId)
                {
                    continue;
                }

                _Enable = false;

                Singleton<Log>.Instance.WriteLine(
                    string.Format(
                        "時間{2}:請求{0}\n回應{1}",
                        _Request.ShowMembers(),
                        obj.ShowMembers(),
                        _TimeCounter.Second));
            }
        }
Ejemplo n.º 2
0
        private void _MakeLog(HitRequest request, HitResponse[] responses)
        {
            var format = "PlayerVisitor:{0}\tStage:{1}\nRequest:{2}\nResponse:{3}";

            var log = string.Format(
                format,
                _AccountId,
                _FishStage,
                request.ShowMembers(" "),
                responses.ShowMembers(" "));

            Singleton<Log>.Instance.WriteInfo(log);
        }