public static VesselMovedInDirectionEvent FromVesselDirectionInGame(Guid gameId, VesselDto vessel, Direction direction) => new VesselMovedInDirectionEvent( EventBase.GetDateIsoString(), gameId, vessel, direction );
public static PlayerRemovedFromVesselRoleEvent FromPlayerInGameVesselRole(Guid gameId, VesselDto vessel, string vesselRole, PlayerDto player) => new PlayerRemovedFromVesselRoleEvent( EventBase.GetDateIsoString(), gameId, vessel, vesselRole, player );
public static PlayerAddedToVesselRoleDomainEvent FromPlayerInGameVesselRole(Game game, Vessel vessel, VesselRole vesselRole, Player player) => new PlayerAddedToVesselRoleDomainEvent( EventBase.GetDateIsoString(), game.Id, vessel, vesselRole, player );
public static PlayerSignedOutDomainEvent FromPlayer(Player player = null) => new PlayerSignedOutDomainEvent( EventBase.GetDateIsoString(), player );
public static PlayerLeftGameEvent FromPlayerInGame(Guid gameId, PlayerDto player) => new PlayerLeftGameEvent( EventBase.GetDateIsoString(), gameId, player );
public static VesselStateChangedEvent FromVesselInGame(Guid gameId, VesselDto vessel) => new VesselStateChangedEvent( EventBase.GetDateIsoString(), gameId, vessel );
public static PlayerJoinedGameDomainEvent FromPlayerInGame(Game game, Player player) => new PlayerJoinedGameDomainEvent( EventBase.GetDateIsoString(), game.Id, player );
public static GameStateChangedEvent FromGame(GameDto game) => new GameStateChangedEvent(EventBase.GetDateIsoString(), game);
public static VesselStateChangedDomainEvent FromVesselInGame(Game game, Vessel vessel) => new VesselStateChangedDomainEvent( EventBase.GetDateIsoString(), game.Id, vessel );
public static PlayerSignedInEvent FromPlayer(PlayerDto player) => new PlayerSignedInEvent( EventBase.GetDateIsoString(), player );
public static ChatMessageSentEvent FromMessage(ChatMessage chatMessage) => new ChatMessageSentEvent(EventBase.GetDateIsoString(), chatMessage);