Ejemplo n.º 1
0
 public static VesselMovedInDirectionEvent FromVesselDirectionInGame(Guid gameId, VesselDto vessel, Direction direction) =>
 new VesselMovedInDirectionEvent(
     EventBase.GetDateIsoString(),
     gameId,
     vessel,
     direction
     );
Ejemplo n.º 2
0
 public static PlayerRemovedFromVesselRoleEvent FromPlayerInGameVesselRole(Guid gameId, VesselDto vessel, string vesselRole, PlayerDto player) =>
 new PlayerRemovedFromVesselRoleEvent(
     EventBase.GetDateIsoString(),
     gameId,
     vessel,
     vesselRole,
     player
     );
Ejemplo n.º 3
0
 public static PlayerAddedToVesselRoleDomainEvent FromPlayerInGameVesselRole(Game game, Vessel vessel, VesselRole vesselRole, Player player) =>
 new PlayerAddedToVesselRoleDomainEvent(
     EventBase.GetDateIsoString(),
     game.Id,
     vessel,
     vesselRole,
     player
     );
Ejemplo n.º 4
0
 public static PlayerSignedOutDomainEvent FromPlayer(Player player = null) =>
 new PlayerSignedOutDomainEvent(
     EventBase.GetDateIsoString(),
     player
     );
Ejemplo n.º 5
0
 public static PlayerLeftGameEvent FromPlayerInGame(Guid gameId, PlayerDto player) =>
 new PlayerLeftGameEvent(
     EventBase.GetDateIsoString(),
     gameId,
     player
     );
Ejemplo n.º 6
0
 public static VesselStateChangedEvent FromVesselInGame(Guid gameId, VesselDto vessel) =>
 new VesselStateChangedEvent(
     EventBase.GetDateIsoString(),
     gameId,
     vessel
     );
Ejemplo n.º 7
0
 public static PlayerJoinedGameDomainEvent FromPlayerInGame(Game game, Player player) =>
 new PlayerJoinedGameDomainEvent(
     EventBase.GetDateIsoString(),
     game.Id,
     player
     );
Ejemplo n.º 8
0
 public static GameStateChangedEvent FromGame(GameDto game) =>
 new GameStateChangedEvent(EventBase.GetDateIsoString(), game);
Ejemplo n.º 9
0
 public static VesselStateChangedDomainEvent FromVesselInGame(Game game, Vessel vessel) =>
 new VesselStateChangedDomainEvent(
     EventBase.GetDateIsoString(),
     game.Id,
     vessel
     );
Ejemplo n.º 10
0
 public static PlayerSignedInEvent FromPlayer(PlayerDto player) =>
 new PlayerSignedInEvent(
     EventBase.GetDateIsoString(),
     player
     );
Ejemplo n.º 11
0
 public static ChatMessageSentEvent FromMessage(ChatMessage chatMessage) =>
 new ChatMessageSentEvent(EventBase.GetDateIsoString(), chatMessage);