Class BusinessWrapper
Represents a wrapper class for handling business properties derived from the ScheduleOne.Property.Business class. Provides an abstraction for interacting with business property details and operations in Unity.
public class BusinessWrapper : PropertyWrapper
- Inheritance
-
BusinessWrapper
- Inherited Members
- Extension Methods
Constructors
BusinessWrapper(Business)
A wrapper class that extends the functionality of PropertyWrapper and acts as a bridge to interact with an inner business property implementation from the Il2CppScheduleOne.Property namespace.
public BusinessWrapper(Business business)
Parameters
businessBusiness
Properties
AppliedLaunderLimit
Gets the applied launder limit for the business.
public float AppliedLaunderLimit { get; }
Property Value
CurrentLaunderTotal
Gets the current total amount of money being laundered by the business.
public float CurrentLaunderTotal { get; }
Property Value
IsAtLaunderingCapacity
Gets a value indicating whether the business has reached its laundering capacity.
public bool IsAtLaunderingCapacity { get; }
Property Value
LaunderCapacity
Gets or sets the laundering capacity of the business.
public float LaunderCapacity { get; set; }
Property Value
LaunderingCapacityUsagePercent
Gets the percentage of laundering capacity currently in use. Returns a value between 0 and 1, where 1 represents 100% capacity.
public float LaunderingCapacityUsagePercent { get; }
Property Value
LaunderingOperationCount
Gets the number of active laundering operations currently in progress.
public int LaunderingOperationCount { get; }
Property Value
LaunderingOperations
Gets or sets the laundering operations associated with the business.
public List<LaunderingOperation> LaunderingOperations { get; }
Property Value
Methods
AddLaunderingOperation(float, int)
Adds a new laundering operation to the business with the specified amount and minutes since started. Added LaunderingOperation will be reflected in the LaunderingOperations list after the client receives it.
public void AddLaunderingOperation(float amount, int minutesSinceStarted)