예제 #1
0
        public void JOINGame(Guid room_guid, string player_name)
        {
            var connectionData = new ConectionData()
            {
                RoomPasport = room_guid,
                PlayerName  = player_name
            };

            Owner.Sender.SendMessage(new Package()
            {
                Sender_Passport = client.Passport,
                Data            = connectionData,
                MesseggeType    = MesseggeType.RoomID
            }, client["Host"]);
        }
예제 #2
0
        public void CreateGame(GameSetings gameSetings, string player_name)
        {
            var connectionData = new ConectionData()
            {
                GameSetings = gameSetings,
                PlayerName  = player_name
            };

            Owner.Sender.SendMessage(new Package()
            {
                Sender_Passport = client.Passport,
                Data            = connectionData,
                MesseggeType    = MesseggeType.CreateRoom
            }, client["Host"]);
        }