protected Room(RoomId roomId, RoomCode roomCode, RoomPlayer host) { RoomId = roomId; RoomCode = roomCode; Host = host; Status = RoomStatus.Waiting; }
public AddGuestFailedEvent(RoomId roomId, PlayerId playerId, string userName, CharacterKey characterKey) { RoomId = roomId; PlayerId = playerId; UserName = userName; CharacterKey = characterKey; }
public GuestJoinedRoomEvent(RoomId roomId, PlayerId playerId, string userName, CharacterKey characterKey) { RoomId = roomId; PlayerId = playerId; UserName = userName; CharacterKey = characterKey; }
public RoomCreatedEvent(RoomId roomId, RoomCode roomCode, PlayerId hostPlayerId, CharacterKey hostCharacterKey) { RoomId = roomId; RoomCode = roomCode; HostPlayerId = hostPlayerId; HostCharacterKey = hostCharacterKey; }
public static Room CreateRoom(PlayerId hostPlayerId, string hostUserName, CharacterKey characterKey) { var room = new Room(RoomId.NewRoomId(), RoomCode.NewRoomCode(), new RoomPlayer(hostPlayerId, hostUserName, characterKey, 0)); room.AddDomainEvent(new RoomCreatedEvent(room.RoomId, room.RoomCode, hostPlayerId, characterKey)); return(room); }
public bool Equals(RoomId b) { return(b != null && this._value == b._value); }