Skip to content

Commit 492a4ba

Browse files
committed
fix: references
1 parent f134b62 commit 492a4ba

4 files changed

Lines changed: 28 additions & 1 deletion

File tree

S1API/Products/CocaineDefinition.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,17 @@ public override ItemInstance CreateInstance(int quantity = 1) =>
4444
/// Retrieves a list of properties associated with the current cocaine product definition.
4545
/// </summary>
4646
/// <returns>A list of properties specific to the cocaine product definition.</returns>
47+
#if IL2CPPBEPINEX || IL2CPPMELON
4748
public List<Il2CppScheduleOne.Properties.Property> GetProperties()
49+
#else
50+
public List<ScheduleOne.Properties.Property> GetProperties()
51+
#endif
4852
{
53+
#if IL2CPPBEPINEX || IL2CPPMELON
4954
var result = new List<Il2CppScheduleOne.Properties.Property>();
55+
#else
56+
var result = new List<ScheduleOne.Properties.Property>();
57+
#endif
5058
var list = S1CocaineDefinition?.Properties;
5159
if (list != null)
5260
{

S1API/Products/MethDefinition.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,17 @@ public override ItemInstance CreateInstance(int quantity = 1) =>
4747
/// Retrieves the list of properties associated with the meth product definition.
4848
/// </summary>
4949
/// <returns>A list of properties that belong to the meth product definition.</returns>
50+
#if IL2CPPBEPINEX || IL2CPPMELON
5051
public List<Il2CppScheduleOne.Properties.Property> GetProperties()
52+
#else
53+
public List<ScheduleOne.Properties.Property> GetProperties()
54+
#endif
5155
{
56+
#if IL2CPPBEPINEX || IL2CPPMELON
5257
var result = new List<Il2CppScheduleOne.Properties.Property>();
58+
#else
59+
var result = new List<ScheduleOne.Properties.Property>();
60+
#endif
5361
var list = S1MethDefinition?.Properties;
5462
if (list != null)
5563
{

S1API/Products/ProductDefinition.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ public class ProductDefinition : ItemDefinition
2727
/// INTERNAL: Creates a product definition from the in-game product definition.
2828
/// </summary>
2929
/// <param name="productDefinition"></param>
30+
#if IL2CPPBEPINEX || IL2CPPMELON
3031
internal ProductDefinition(Il2CppScheduleOne.ItemFramework.ItemDefinition productDefinition) : base(productDefinition) { }
31-
32+
#else
33+
internal ProductDefinition(ScheduleOne.ItemFramework.ItemDefinition productDefinition) : base(productDefinition) { }
34+
#endif
3235
/// <summary>
3336
/// The price associated with this product.
3437
/// </summary>

S1API/Products/WeedDefinition.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,17 @@ public override ItemInstance CreateInstance(int quantity = 1) =>
5858
/// associated with the weed definition. If no properties are found,
5959
/// an empty list is returned.
6060
/// </returns>
61+
#if IL2CPPBEPINEX || IL2CPPMELON
6162
public List<Il2CppScheduleOne.Properties.Property> GetProperties()
63+
#else
64+
public List<ScheduleOne.Properties.Property> GetProperties()
65+
#endif
6266
{
67+
#if IL2CPPBEPINEX || IL2CPPMELON
6368
var result = new List<Il2CppScheduleOne.Properties.Property>();
69+
#else
70+
var result = new List<ScheduleOne.Properties.Property>();
71+
#endif
6472
var list = S1WeedDefinition?.Properties;
6573
if (list != null)
6674
{

0 commit comments

Comments
 (0)