SHARE
TWEET

Everybody Edits - Armor Games Login

capasha Jul 5th, 2012 (edited) 259 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Updated 15/02/2016
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using PlayerIOClient;
  8. namespace ConsoleApplication2
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             var userid = "UserIDGoesHere";
  15.             var authtoken = "AuthTokenGoesHere";
  16.             PlayerIO.Authenticate("everybody-edits-su9rn58o40itdbnw69plyw", "secure",new Dictionary<string, string> { { "userId", userid }, { "authToken", authtoken } }, null,
  17.                 delegate(Client client)
  18.                 {
  19.                     Console.WriteLine(client.ConnectUserId);
  20.                     client.Multiplayer.JoinRoom("PWndmiBGyLb0I", null,
  21.                         delegate(Connection con)
  22.                         {
  23.                             con.Send("init");
  24.                             con.AddOnMessage(delegate(object sender, PlayerIOClient.Message m)
  25.                             {
  26.                                 Console.WriteLine(m.ToString());
  27.                             });
  28.                         },
  29.                         delegate(PlayerIOError error)
  30.                         {
  31.                             Console.WriteLine(error.Message);
  32.                         });
  33.                 },
  34.                 delegate(PlayerIOError error)
  35.                 {
  36.                     Console.WriteLine(error.Message);
  37.                 });
  38.             Console.ReadKey();
  39.         }
  40.     }
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top