File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,10 +53,14 @@ public Sprite Icon
5353 {
5454 get { return S1ProductDefinition . Icon ; }
5555 }
56+ #if IL2CPPBEPINEX || IL2CPPMELON
57+ private List < Il2CppScheduleOne . Properties . Property > properties ; // or however properties are stored
58+ public List < Il2CppScheduleOne . Properties . Property > Properties ; // or however properties are stored
59+ #else
60+ private List < ScheduleOne . Properties . Property > properties ; // or however properties are stored
61+ public IReadOnlyList < ScheduleOne . Properties . Property > Properties => properties . AsReadOnly ( ) ;
62+ #endif
5663
57- private List < Properties . Property > properties ; // or however properties are stored
5864
59- // Add this public property if it doesn't exist yet
60- public IReadOnlyList < Properties . Property > Properties => properties . AsReadOnly ( ) ;
6165}
6266}
Original file line number Diff line number Diff line change @@ -50,9 +50,17 @@ internal ProductInstance(S1Product.ProductItemInstance productInstance) : base(p
5050 public Quality Quality => S1ProductInstance . Quality . ToAPI ( ) ;
5151
5252 // Expose the underlying definition's properties (if S1ProductInstance.Definition is available)
53- public IReadOnlyList < Properties . Property > Properties => Definition . Properties ;
5453
5554 // Add Definition property if you don't have one yet
55+
56+ #if IL2CPPBEPINEX || IL2CPPMELON
57+ public IReadOnlyList < Il2CppScheduleOne . Properties . Property > Properties => Definition . Properties ;
58+ public ProductDefinition Definition => new ProductDefinition ( S1ProductInstance . Definition ) ;
59+ #else
60+ public IReadOnlyList < ScheduleOne . Properties . Property > Properties => Definition . Properties ;
5661 public ProductDefinition Definition => new ProductDefinition ( S1ProductInstance . Definition ) ;
62+
63+ #endif
64+
5765 }
5866}
You can’t perform that action at this time.
0 commit comments