public void TestGame(string moveSource) { var moves = moveSource.Split('.'); var gameboard = new Gameboard(); AggregateID <VnodeTest.BC.Game.Game> id = AggregateID <VnodeTest.BC.Game.Game> .Create(); var game = new Game(id, Gamemode.PvP, new Gameboard(), 10); foreach (string move in moves) { gameboard.TryAlgebraicNotaionToMyNotaion(move, game); } }
public ChallengeDenied(AggregateID <Game> id) : base(id) { }
public GameEnded(AggregateID <Game> id, string moves) : base(id) { Moves = moves; }
public RegisterAccount(AggregateID <Account> id, string username, string password) : base(id) { Username = username; Password = password; }
public EndGame(AggregateID <Game> id, string moves) : base(id) { Moves = moves; }
public GameDeleted(AggregateID <Game> id) : base(id) { }
public static void DenyFriendRequest(AggregateID <Friendship> id) => MessageBus.Instance.Send(new DenyFriendRequest(id));
public static void AbortFriend(AggregateID <Friendship> id) => MessageBus.Instance.Send(new AbortFriendship(id));
public ChangeUsername(AggregateID <Account> id, string newUsername) : base(id) { NewUsername = newUsername; }
public AcceptChallenge(AggregateID <Game> id, AggregateID <Account.Account> accountID, AggregateID <Account.Account> friendID) : base(id) { AccountID = accountID; FriendID = friendID; }
public FriendRequestDenied(AggregateID <Friendship> id) : base(id) { }
public LogoutAccount(AggregateID <Account> id) : base(id) { }
public FriendshipAborted(AggregateID <Friendship> id) : base(id) { }
public FriendRequestAccepted(AggregateID <Friendship> id) : base(id) { }
public JoinGame(AggregateID <Game> id, AggregateID <Account.Account> accountID) : base(id) { AccountID = accountID; }
public AggregateEvent(AggregateID <T> id, AggregateID <BC.Account.Account>?userID = default, DateTimeOffset timestamp = default) // userID is null when program created an event, then we can use current user in session. when event is imported, userID is never null : base(id, userID ?? (/*Session.CurrentUser?.UserID ??*/ default), timestamp) { }
public RequestFriendship(AggregateID <Friendship> id, AggregateID <Account.Account> sender, AggregateID <Account.Account> receiver) : base(id) { Sender = sender; Receiver = receiver; }
public static void RegisterAccount(AggregateID <Account> id, string username, string password) => MessageBus.Instance.Send(new RegisterAccount(id, username, password));
public static void RequestFriend(AggregateID <Friendship> id, AggregateID <Account.Account> sender, AggregateID <Account.Account> receiver) => MessageBus.Instance.Send(new RequestFriendship(id, sender, receiver));
public static void LoginAccount(AggregateID <Account> id, string password) => MessageBus.Instance.Send(new LoginAccount(id, password));
public ChallengeRequested(AggregateID <Game> id, AggregateID <Account.Account> accountID, AggregateID <Account.Account> friendID) : base(id) { AccountID = accountID; FriendID = friendID; }
public static void LogoutAccount(AggregateID <Account> id) => MessageBus.Instance.Send(new LogoutAccount(id));
public IconChanged(AggregateID <Account> id, string newIcon) : base(id) { NewIcon = newIcon; }
public DenyChallenge(AggregateID <Game> id) : base(id) { }
public DenyFriendRequest(AggregateID <Friendship> id) : base(id) { }
public AbortFriendship(AggregateID <Friendship> id) : base(id) { }
public AccountLoggedIn(AggregateID <Account> id) : base(id) { }
public AutomaticPromotionChanged(AggregateID <Account> id, bool currentSetting) : base(id) { OldSetting = currentSetting; }
public DeleteGame(AggregateID <Game> id) : base(id) { }
public AcceptFriendRequest(AggregateID <Friendship> id) : base(id) { }