feat: add initial People Playground mod development kit

This commit is contained in:
2026-01-06 06:35:51 +03:00
parent b89c805060
commit b4c22a7c63
1095 changed files with 40281 additions and 1 deletions

View File

@@ -0,0 +1,58 @@
URL: https://wiki.studiominus.nl/internalReference/PoolGenerator.html
Title: People Playground Modding - PoolGenerator
==================================================
public class PoolGenerator
Inherits MonoBehaviour
Generates object pools when requested
Fields
public bool Activated
No description provided
public float MaximumDistance
No description provided
public LineRenderer LineRenderer
[SkipSerialisation]
No description provided
public EdgeCollider2D EdgeCollider
[SkipSerialisation]
No description provided
public AudioSource AudioSource
[SkipSerialisation]
No description provided
public LayerMask HitLayers
[SkipSerialisation]
No description provided
public uint PoolSize
Value to set for ObjectPoolBehaviour.MaxPoolSize for each generated pool
public float PoolInactivityThreshold
Value to set for ObjectPoolBehaviour.InactivityThresholdInSeconds for each generated pool
Properties
public static PoolGenerator Instance { get; private set; }
Main instance of the singleton
Methods
void Start()
No description provided
public void Use(ActivationPropagation activation)
No description provided
void SetNewDistance(float distance)
No description provided
public bool GetFor(GameObject prefab, out ObjectPoolBehaviour pool)
Returns true if a pool has been found for the given prefab and outputs said pool in the parameter
public ObjectPoolBehaviour Ensure(GameObject prefab)
Ensure there is a pool for the given prefab
public GameObject RequestPrefab(GameObject originalPrefab, Vector2 position)
Request an object from a pool. If the pool exists, it will simply be requested using ObjectPoolBehaviour.Request(Vector2). If it doesn't exist, it'll be created first.