Beispiel #1
0
 public static VesselMovedInDirectionEvent FromVesselDirectionInGame(Guid gameId, VesselDto vessel, Direction direction) =>
 new VesselMovedInDirectionEvent(
     EventBase.GetDateIsoString(),
     gameId,
     vessel,
     direction
     );
Beispiel #2
0
 public static PlayerRemovedFromVesselRoleEvent FromPlayerInGameVesselRole(Guid gameId, VesselDto vessel, string vesselRole, PlayerDto player) =>
 new PlayerRemovedFromVesselRoleEvent(
     EventBase.GetDateIsoString(),
     gameId,
     vessel,
     vesselRole,
     player
     );
Beispiel #3
0
 public static PlayerAddedToVesselRoleDomainEvent FromPlayerInGameVesselRole(Game game, Vessel vessel, VesselRole vesselRole, Player player) =>
 new PlayerAddedToVesselRoleDomainEvent(
     EventBase.GetDateIsoString(),
     game.Id,
     vessel,
     vesselRole,
     player
     );
Beispiel #4
0
 public static PlayerSignedOutDomainEvent FromPlayer(Player player = null) =>
 new PlayerSignedOutDomainEvent(
     EventBase.GetDateIsoString(),
     player
     );
Beispiel #5
0
 public static PlayerLeftGameEvent FromPlayerInGame(Guid gameId, PlayerDto player) =>
 new PlayerLeftGameEvent(
     EventBase.GetDateIsoString(),
     gameId,
     player
     );
Beispiel #6
0
 public static VesselStateChangedEvent FromVesselInGame(Guid gameId, VesselDto vessel) =>
 new VesselStateChangedEvent(
     EventBase.GetDateIsoString(),
     gameId,
     vessel
     );
Beispiel #7
0
 public static PlayerJoinedGameDomainEvent FromPlayerInGame(Game game, Player player) =>
 new PlayerJoinedGameDomainEvent(
     EventBase.GetDateIsoString(),
     game.Id,
     player
     );
Beispiel #8
0
 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
     );
Beispiel #10
0
 public static PlayerSignedInEvent FromPlayer(PlayerDto player) =>
 new PlayerSignedInEvent(
     EventBase.GetDateIsoString(),
     player
     );
Beispiel #11
0
 public static ChatMessageSentEvent FromMessage(ChatMessage chatMessage) =>
 new ChatMessageSentEvent(EventBase.GetDateIsoString(), chatMessage);