Table of Contents

Class BusinessWrapper

Namespace
S1API.Property
Assembly
S1API.dll

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

business Business

Properties

AppliedLaunderLimit

Gets the applied launder limit for the business.

public float AppliedLaunderLimit { get; }

Property Value

float

CurrentLaunderTotal

Gets the current total amount of money being laundered by the business.

public float CurrentLaunderTotal { get; }

Property Value

float

IsAtLaunderingCapacity

Gets a value indicating whether the business has reached its laundering capacity.

public bool IsAtLaunderingCapacity { get; }

Property Value

bool

LaunderCapacity

Gets or sets the laundering capacity of the business.

public float LaunderCapacity { get; set; }

Property Value

float

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

float

LaunderingOperationCount

Gets the number of active laundering operations currently in progress.

public int LaunderingOperationCount { get; }

Property Value

int

LaunderingOperations

Gets or sets the laundering operations associated with the business.

public List<LaunderingOperation> LaunderingOperations { get; }

Property Value

List<LaunderingOperation>

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)

Parameters

amount float

The amount of money to be laundered.

minutesSinceStarted int

The number of minutes since the laundering operation started.