Compare commits
2 Commits
5cbc6125cc
...
8dbca2d3ca
| Author | SHA1 | Date | |
|---|---|---|---|
| 8dbca2d3ca | |||
| ed397373c1 |
@ -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(8));
|
||||
await Task.Delay(TimeSpan.FromSeconds(1));
|
||||
|
||||
// send ext.rslt
|
||||
await player.SendAsync(
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
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();
|
||||
@ -84,7 +85,15 @@
|
||||
("chnl", "serv"),
|
||||
("scrn", ""),
|
||||
("type", "stnd"),
|
||||
("text", "NotPogo Is Alpha Software! Some Things May Not Function Correctly.")
|
||||
("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.")
|
||||
);
|
||||
|
||||
foreach (var other in others)
|
||||
@ -143,7 +152,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (!await Game.OnMessageAsync(this, player, op, msg) && Game is not ChatOnlyRoom)
|
||||
if (!await Game.OnMessageAsync(this, player, op, msg) && Game is not ChatOnlyRoom && !GlobalOPCodes.Contains(op))
|
||||
Log.LogInformation("[Room {Key}] Unhandled OP '{OP}' From {ScreenName}", Key, op, player.ScreenName);
|
||||
}
|
||||
|
||||
|
||||
@ -96,7 +96,6 @@ 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))
|
||||
@ -105,7 +104,6 @@ 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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user