Fix Timing Issues With Lottso! Deluxe Results Sending
Log All Outbound Game Server Messages
This commit is contained in:
parent
b5c9f3dd08
commit
7f46ebc215
@ -25,6 +25,9 @@ namespace NotPogo.Core
|
||||
var msg = new Dictionary<string, string>();
|
||||
foreach(var (k, v) in fields) msg[k] = v;
|
||||
await SendAsync(msg);
|
||||
|
||||
msg.TryGetValue("msg.op", out var op);
|
||||
Console.WriteLine($"[GameServer] [plid {Id}] <- {op} {string.Join(" ", msg.Where(kv => kv.Key != "msg.op").Select(kv => $"{kv.Key}='{kv.Value}'"))}");
|
||||
}
|
||||
|
||||
public async Task SendAsync(Dictionary<string, string> msg)
|
||||
|
||||
@ -24,6 +24,9 @@
|
||||
msg.TryGetValue("gm.won", out var won);
|
||||
bool isJackpot = won == "true";
|
||||
|
||||
// Lottso Deluxe is weird and takes a sec to want to take in results
|
||||
await Task.Delay(TimeSpan.FromSeconds(8));
|
||||
|
||||
// send ext.rslt
|
||||
await player.SendAsync(
|
||||
("msg.op", "ext.rslt"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user