S1API Reference
Welcome to the S1API reference documentation. This section provides detailed information about all the classes, methods, and properties available in S1API.
Core API
The Core API provides the foundation for S1API, containing the base classes and functionality that powers the entire framework.
S1API Namespace
The main namespace contains the core functionality and entry points for the API. It serves as the foundation for cross-compatibility between Mono and Il2Cpp builds.
using S1API;
Game Systems
Modules for interacting with various game systems:
S1API.Console
- Interacting with the in-game consoleS1API.DeadDrops
- Managing dead drop locations and itemsS1API.GameTime
- Accessing and manipulating game timeS1API.Items
- Creating and managing game itemsS1API.Leveling
- Player progression and experience systemsS1API.Logging
- Logging system for debuggingS1API.Map
- Interacting with the game mapS1API.Money
- Currency managementS1API.NPCs
- Non-player character creation and managementS1API.PhoneApp
- Phone application functionalityS1API.PhoneCalls
- Phone call functionalityS1API.Products
- Store products and purchasingS1API.Property
- Property managementS1API.Quests
- Creating and managing questsS1API.Storages
- Container and inventory managementS1API.UI
- UI and HUD elements
Utilities
Helper systems for mod development:
S1API.SaveSystem
- Data persistence for modsS1API.Internal
- Internal utilities for cross-compatibility
Key Concepts
Cross-Compatibility
All API classes and methods are designed to work seamlessly across both Mono and Il2Cpp builds. The implementation details are abstracted away, allowing you to focus on your mod's functionality.
Type Safety
S1API provides type-safe wrappers around game objects and functions, helping prevent common errors and making your code more robust.