public virtual PlayerActionLeave ParsePlayerLeave(string text) { //[INFO] Bertware lost connection: Disconnected //[INFO] Bertware left the game. PlayerActionLeave leave = new PlayerActionLeave { PlayerName = Regex.Match(text, RG_FSPACE + RG_PLAYER).Value.Trim(), Details = Regex.Match(text, ":(.*)$").Groups[1].Value }; return leave; }
public virtual PlayerActionLeave ParsePlayerLeave(string text) { //[INFO] Bertware lost connection: Disconnected //[INFO] Bertware left the game. PlayerActionLeave leave = new PlayerActionLeave { PlayerName = Regex.Match(text, RG_FSPACE + RG_PLAYER).Value.Trim(), Details = Regex.Match(text, ":" + RG_WILDCARD + RG_EOL).Value.TrimStart(':').Trim() }; return leave; }