Compare commits

..

No commits in common. "8dbca2d3ca6bffec4598045284dd00cecb823b7f" and "5cbc6125cc31b55cca909062b77aab423a5b0206" have entirely different histories.

3 changed files with 5 additions and 12 deletions

View File

@ -25,7 +25,7 @@
bool isJackpot = won == "true";
// Lottso Deluxe is weird and takes a sec to want to take in results
await Task.Delay(TimeSpan.FromSeconds(1));
await Task.Delay(TimeSpan.FromSeconds(8));
// send ext.rslt
await player.SendAsync(

View File

@ -11,7 +11,6 @@
public bool Live { get; set; } = true;
public IGameRoom Game { get; }
public static ILogger Log { get; private set; }
public static readonly string[] GlobalOPCodes = ["logn", "ping"];
readonly List<Player> _players = new();
readonly object _lock = new();
@ -85,15 +84,7 @@
("chnl", "serv"),
("scrn", ""),
("type", "stnd"),
("text", "Welcome to Rebound! The best place for games, fun, and friends!")
);
await player.SendAsync(
("msg.op", "say"),
("chnl", "serv"),
("scrn", ""),
("type", "stnd"),
("text", "Rebound Is Alpha Software. Some Server Side Functions May Not Work As Expected Or At All.")
("text", "NotPogo Is Alpha Software! Some Things May Not Function Correctly.")
);
foreach (var other in others)
@ -152,7 +143,7 @@
return;
}
if (!await Game.OnMessageAsync(this, player, op, msg) && Game is not ChatOnlyRoom && !GlobalOPCodes.Contains(op))
if (!await Game.OnMessageAsync(this, player, op, msg) && Game is not ChatOnlyRoom)
Log.LogInformation("[Room {Key}] Unhandled OP '{OP}' From {ScreenName}", Key, op, player.ScreenName);
}

View File

@ -96,6 +96,7 @@ public static class FlashGateway
foreach (var msg in request.Messages)
{
var args = msg.Body as List<object?> ?? new List<object?>();
log.LogInformation("AMF call {Target}({Args}) -> {Response}", msg.Target, string.Join(", ", args), msg.Response);
try
{
if (!Handlers.TryGetValue(msg.Target, out var handler))
@ -104,6 +105,7 @@ public static class FlashGateway
}
catch (Exception ex)
{
log.LogWarning(ex, "AMF call {Target} failed", msg.Target);
// mx.remoting turns this into a Fault; "description" becomes faultstring
reply.Messages.Add(new AmfMessage(msg.Response + "/onStatus", "null", new
{