Skip to content

Game.Tools.LoanAction

Assembly:
Assembly-CSharp (typical for Cities: Skylines 2 game code / mods)
Namespace:
Game.Tools

Type:
struct

Base:
System.ValueType

Summary:
A small value-type container used to represent a loan action/intent in the game's tools layer. It only carries an integer amount field (m_Amount) that denotes the loan value. Typically used as a simple data carrier when requesting or recording loan-related operations within tooling or UI code.


Fields

  • public System.Int32 m_Amount
    Integer amount for the loan action. This is the only data carried by the struct. The unit is the game's integer currency unit (conventions for cents/units depend on the surrounding finance code). Use this field to store the requested or applied loan amount.

Properties

  • None (this struct exposes a public field and defines no properties)

Constructors

  • public LoanAction()
    Implicit default constructor provided by the runtime for structs. It initializes m_Amount to 0. You can also initialize using an object initializer.

Methods

  • This struct declares no methods.

Usage Example

// create and initialize a loan action
Game.Tools.LoanAction loan = new Game.Tools.LoanAction { m_Amount = 50000 };

// or modify an existing instance
loan.m_Amount = 25000;

// pass to whatever game/tool API expects a LoanAction
// Example (pseudo-call): LoanManager.RequestLoan(loan);