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