Exemple #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="JoinEvent" /> class.
 /// </summary>
 /// <param name="message">The EE message.</param>
 /// <param name="client"></param>
 internal JoinEvent(BotBitsClient client, Message message)
     : base(client, message, create: true)
 {
     this.Username       = message.GetString(1);
     this.ConnectUserId  = message.GetString(2);
     this.Smiley         = (Smiley)message.GetInteger(3);
     this.X              = message.GetDouble(4);
     this.Y              = message.GetDouble(5);
     this.GodMode        = message.GetBoolean(6);
     this.AdminMode      = message.GetBoolean(7);
     this.HasChat        = message.GetBoolean(8);
     this.Coins          = message.GetInteger(9);
     this.BlueCoins      = message.GetInteger(10);
     this.Deaths         = message.GetInteger(11);
     this.Friend         = message.GetBoolean(12);
     this.GoldMember     = message.GetBoolean(13);
     this.GoldBorder     = message.GetBoolean(14);
     this.Team           = (Team)message.GetInt(15);
     this.AuraShape      = (AuraShape)message.GetInt(16);
     this.AuraColor      = (AuraColor)message.GetInt(17);
     this.ChatColor      = message.GetUInt(18);
     this.Badge          = message.GetBadge(19);
     this.CrewMember     = message.GetBoolean(20);
     this.PurpleSwitches = VarintHelper.ToInt32Array(message.GetByteArray(21));
     this.HasEditRights  = message.GetBoolean(22);
     this.HasGodRights   = message.GetBoolean(23);
 }
Exemple #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="InitEvent" /> class.
 /// </summary>
 /// <param name="message">The EE message.</param>
 /// <param name="client"></param>
 internal InitEvent(BotBitsClient client, Message message)
     : base(client, message, 5, true)
 {
     this.Owner     = message.GetString(0);
     this.WorldName = message.GetString(1);
     this.Plays     = message.GetInt(2);
     this.Favorites = message.GetInt(3);
     this.Likes     = message.GetInt(4);
     // 5: UserId
     this.Smiley                = (Smiley)message.GetInt(6);
     this.AuraShape             = (AuraShape)message.GetInt(7);
     this.AuraColor             = (AuraColor)message.GetInt(8);
     this.GoldBorder            = message.GetBoolean(9);
     this.SpawnX                = message.GetDouble(10);
     this.SpawnY                = message.GetDouble(11);
     this.ChatColor             = message.GetUInt(12);
     this.Username              = message.GetString(13);
     this.CanEdit               = message.GetBoolean(14);
     this.IsOwner               = message.GetBoolean(15);
     this.Favorited             = message.GetBoolean(16);
     this.Liked                 = message.GetBoolean(17);
     this.WorldWidth            = message.GetInt(18);
     this.WorldHeight           = message.GetInt(19);
     this.GravityMultiplier     = message.GetDouble(20);
     this.BackgroundColor       = message.GetUInt(21);
     this.Visible               = message.GetBoolean(22);
     this.HideLobby             = message.GetBoolean(23);
     this.AllowSpectating       = message.GetBoolean(24);
     this.RoomDescription       = message.GetString(25);
     this.CurseLimit            = message.GetInt(26);
     this.ZombieLimit           = message.GetInt(27);
     this.Campaign              = message.GetBoolean(28);
     this.CrewId                = message.GetString(29);
     this.CrewName              = message.GetString(30);
     this.CanChangeWorldOptions = message.GetBoolean(31);
     this.WorldStatus           = (WorldStatus)message.GetInt(32);
     this.Badge                 = message.GetBadge(33);
     this.CrewMember            = message.GetBoolean(34);
     this.MinimapEnabled        = message.GetBoolean(35);
     this.LobbyPreviewEnabled   = message.GetBoolean(36);
     this.OrangeSwitches        = VarintHelper.ToInt32Array(message.GetByteArray(37));
     this.FriendsOnly           = message.GetBoolean(38);
     this.OwnerConnectUserId    = message.GetString(39);
     this.CanToggleGodMode      = message.GetBoolean(40);
 }
Exemple #3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="PurpleSwitchInitEvent" /> class.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="message">The EE message.</param>
 internal PurpleSwitchInitEvent(BotBitsClient client, Message message)
     : base(client, message)
 {
     this.PurpleSwitches = VarintHelper.ToInt32Array(message.GetByteArray(1));
 }