Compare commits
No commits in common. "8dbca2d3ca6bffec4598045284dd00cecb823b7f" and "5cbc6125cc31b55cca909062b77aab423a5b0206" have entirely different histories.
8dbca2d3ca
...
5cbc6125cc
@ -25,7 +25,7 @@
|
|||||||
bool isJackpot = won == "true";
|
bool isJackpot = won == "true";
|
||||||
|
|
||||||
// Lottso Deluxe is weird and takes a sec to want to take in results
|
// 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
|
// send ext.rslt
|
||||||
await player.SendAsync(
|
await player.SendAsync(
|
||||||
|
|||||||
@ -11,7 +11,6 @@
|
|||||||
public bool Live { get; set; } = true;
|
public bool Live { get; set; } = true;
|
||||||
public IGameRoom Game { get; }
|
public IGameRoom Game { get; }
|
||||||
public static ILogger Log { get; private set; }
|
public static ILogger Log { get; private set; }
|
||||||
public static readonly string[] GlobalOPCodes = ["logn", "ping"];
|
|
||||||
|
|
||||||
readonly List<Player> _players = new();
|
readonly List<Player> _players = new();
|
||||||
readonly object _lock = new();
|
readonly object _lock = new();
|
||||||
@ -85,15 +84,7 @@
|
|||||||
("chnl", "serv"),
|
("chnl", "serv"),
|
||||||
("scrn", ""),
|
("scrn", ""),
|
||||||
("type", "stnd"),
|
("type", "stnd"),
|
||||||
("text", "Welcome to Rebound! The best place for games, fun, and friends!")
|
("text", "NotPogo Is Alpha Software! Some Things May Not Function Correctly.")
|
||||||
);
|
|
||||||
|
|
||||||
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)
|
foreach (var other in others)
|
||||||
@ -152,7 +143,7 @@
|
|||||||
return;
|
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);
|
Log.LogInformation("[Room {Key}] Unhandled OP '{OP}' From {ScreenName}", Key, op, player.ScreenName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -96,6 +96,7 @@ public static class FlashGateway
|
|||||||
foreach (var msg in request.Messages)
|
foreach (var msg in request.Messages)
|
||||||
{
|
{
|
||||||
var args = msg.Body as List<object?> ?? new List<object?>();
|
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
|
try
|
||||||
{
|
{
|
||||||
if (!Handlers.TryGetValue(msg.Target, out var handler))
|
if (!Handlers.TryGetValue(msg.Target, out var handler))
|
||||||
@ -104,6 +105,7 @@ public static class FlashGateway
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
log.LogWarning(ex, "AMF call {Target} failed", msg.Target);
|
||||||
// mx.remoting turns this into a Fault; "description" becomes faultstring
|
// mx.remoting turns this into a Fault; "description" becomes faultstring
|
||||||
reply.Messages.Add(new AmfMessage(msg.Response + "/onStatus", "null", new
|
reply.Messages.Add(new AmfMessage(msg.Response + "/onStatus", "null", new
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user