public static bool isCrystals(HFloorObject item) { if (Bobba_CrystalCambio.Contains(item.TypeId)) { return(true); } else if (Bobba_Distributori.Contains(item.TypeId)) { return(true); } else if (Bobba_Letsparty.Contains(item.TypeId)) { return(true); } else if (Bobba_Dragoni.Contains(item.TypeId)) { return(true); } else if (Bobba_RariDecorativi.Contains(item.TypeId)) { return(true); } else if (Bobba_LimitedEditionFloorMay.Contains(item.TypeId)) { return(true); } return(false); }
public static bool isCredits(HFloorObject item) { if (Bobba_BoBBaCambio.Contains(item.TypeId)) { return(true); } return(false); }
public static void HandleRemovedFurni(HFloorObject item) { if (Furni.Contains(item)) { Furni.Remove(item); } if (OriginalFloorFurnis.Contains(item)) { OriginalFloorFurnis.Remove(item); } if (!RemFurni.Contains(item)) { RemFurni.Add(item); } }
public static HFloorObject[] Parse(IHFormat format, ref ReadOnlySpan <byte> packetSpan) { int ownersCount = format.Read <int>(ref packetSpan); var owners = new Dictionary <int, string>(ownersCount); for (int i = 0; i < ownersCount; i++) { owners.Add(format.Read <int>(ref packetSpan), format.ReadUTF8(ref packetSpan)); } var floorObjects = new HFloorObject[format.Read <int>(ref packetSpan)]; for (int i = 0; i < floorObjects.Length; i++) { var floorObject = new HFloorObject(format, ref packetSpan); floorObject.OwnerName = owners[floorObject.OwnerId]; floorObjects[i] = floorObject; } return(floorObjects); }
public static bool isRareFurni(HFloorObject item) { if (Bobba_PagineStaff.Contains(item.TypeId)) { return(true); } else if (Bobba_BGWired.Contains(item.TypeId)) { return(true); } else if (Bobba_RariMaggioHabbo.Contains(item.TypeId)) { return(true); } else if (Bobba_RariFogliadiTe.Contains(item.TypeId)) { return(true); } else if (Bobba_RariVerdi.Contains(item.TypeId)) { return(true); } else if (Bobba_GameFLASH.Contains(item.TypeId)) { return(true); } else if (Bobba_RariLPTPOK.Contains(item.TypeId)) { return(true); } else if (Bobba_RariSTAFF.Contains(item.TypeId)) { return(true); } else if (Bobba_MiniTornei.Contains(item.TypeId)) { return(true); } else if (Bobba_CompetizioniEventi.Contains(item.TypeId)) { return(true); } else if (Bobba_Foche.Contains(item.TypeId)) { return(true); } else if (Bobba_Tartarughe.Contains(item.TypeId)) { return(true); } else if (Bobba_Ricci.Contains(item.TypeId)) { return(true); } else if (Bobba_Ippopotami.Contains(item.TypeId)) { return(true); } else if (Bobba_Panda.Contains(item.TypeId)) { return(true); } else if (Bobba_DraghiStaff.Contains(item.TypeId)) { return(true); } else if (Bobba_RariMensili.Contains(item.TypeId)) { return(true); } else if (Bobba_Arcadev_1220.Contains(item.TypeId)) { return(true); } else if (Bobba_Raroniv_min_1250.Contains(item.TypeId)) { return(true); } else if (Bobba_UovaHabberge.Contains(item.TypeId)) { return(true); } else if (Bobba_LimitedScaduti.Contains(item.TypeId)) { return(true); } else if (Bobba_Habbo15Anni.Contains(item.TypeId)) { return(true); } else if (Bobba_ScaricatidaHabbo.Contains(item.TypeId)) { return(true); } else if (Bobba_RariHarryPotter.Contains(item.TypeId)) { return(true); } else if (Bobba_Vari1.Contains(item.TypeId)) { return(true); } else if (Bobba_RariCelesti.Contains(item.TypeId)) { return(true); } else if (Bobba_Bradipi.Contains(item.TypeId)) { return(true); } else if (Bobba_LibriHabbo.Contains(item.TypeId)) { return(true); } else if (Bobba_RariLTDdelmese.Contains(item.TypeId)) { return(true); } else if (Bobba_Sacchidabox.Contains(item.TypeId)) { return(true); } else if (Bobba_GattiPeluche.Contains(item.TypeId)) { return(true); } else if (Bobba_Carpe.Contains(item.TypeId)) { return(true); } else if (Bobba_Macchinedelcaff.Contains(item.TypeId)) { return(true); } else if (Bobba_RariBordeaux.Contains(item.TypeId)) { return(true); } else if (Bobba_TappetiniZampa.Contains(item.TypeId)) { return(true); } else if (Bobba_LampadaPanciuta.Contains(item.TypeId)) { return(true); } else if (Bobba_TestBug.Contains(item.TypeId)) { return(true); } else if (Bobba_EdizioneLimitata.Contains(item.TypeId)) { return(true); } else if (Bobba_BamboleBoBBaWeen.Contains(item.TypeId)) { return(true); } else if (Bobba_BonusRari17.Contains(item.TypeId)) { return(true); } else if (Bobba_BonusRari18.Contains(item.TypeId)) { return(true); } else if (Bobba_FurniCalippo.Contains(item.TypeId)) { return(true); } else if (Bobba_Promozioni.Contains(item.TypeId)) { return(true); } else if (Bobba_Rari.Contains(item.TypeId)) { return(true); } else if (Bobba_System.Contains(item.TypeId)) { return(true); } else if (Bobba_Trax.Contains(item.TypeId)) { return(true); } else if (Bobba_NuoviWired.Contains(item.TypeId)) { return(true); } else if (Bobba_Utility.Contains(item.TypeId)) { return(true); } else if (Bobba_SeasonPass.Contains(item.TypeId)) { return(true); } else { return(false); } }
private object[] CreateValues(DataInterceptedEventArgs args) { ParameterInfo[] parameters = Method.GetParameters(); var values = new object[parameters.Length]; int position = 0; for (int i = 0; i < values.Length; i++) { ParameterInfo parameter = parameters[i]; switch (Type.GetTypeCode(parameter.ParameterType)) { case TypeCode.UInt16: { if (parameter.Name.Equals("id", StringComparison.OrdinalIgnoreCase)) { values[i] = args.Packet.Id; } else { values[i] = args.Packet.ReadUInt16(ref position); } break; } case TypeCode.Int32: values[i] = args.Packet.ReadInt32(ref position); break; case TypeCode.Boolean: values[i] = args.Packet.ReadBoolean(ref position); break; case TypeCode.Byte: values[i] = args.Packet.ReadByte(ref position); break; case TypeCode.String: values[i] = args.Packet.ReadUTF8(ref position); break; case TypeCode.Double: values[i] = args.Packet.ReadDouble(ref position); break; case TypeCode.Object: { if (parameter.ParameterType == typeof(DataInterceptedEventArgs)) { values[i] = args; } else if (parameter.ParameterType == typeof(HPacket)) { values[i] = args.Packet; } else if (parameter.ParameterType == typeof(HPoint)) { values[i] = new HPoint(args.Packet.ReadInt32(ref position), args.Packet.ReadInt32(ref position)); } else if (parameter.ParameterType == typeof(byte[])) { int length = args.Packet.ReadInt32(ref position); values[i] = args.Packet.ReadBytes(length, ref position); } else if (typeof(IList <HEntity>).IsAssignableFrom(parameter.ParameterType)) { args.Packet.Position = 0; values[i] = HEntity.Parse(args.Packet); } else if (typeof(IList <HFloorObject>).IsAssignableFrom(parameter.ParameterType)) { args.Packet.Position = 0; values[i] = HFloorObject.Parse(args.Packet); } else if (typeof(IList <HWallItem>).IsAssignableFrom(parameter.ParameterType)) { args.Packet.Position = 0; values[i] = HWallItem.Parse(args.Packet); } break; } } } return(values); }
public FurniTypeIDFixer(HFloorObject furni, int OriginalTypeID, double originalZ) { FloorFurni = furni; originalTypeID = OriginalTypeID; Z = originalZ; }