feat: add initial People Playground mod development kit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
URL: https://wiki.studiominus.nl/internalReference/LEDBulbBehaviour.html
|
||||
Title: People Playground Modding - LEDBulbBehaviour
|
||||
==================================================
|
||||
|
||||
public class LEDBulbBehaviour
|
||||
Inherits MonoBehaviour, Messages.IUse
|
||||
Behaviour for an RGB LED lightbulb
|
||||
Fields
|
||||
public Color Color
|
||||
The color of the light
|
||||
|
||||
public SpriteRenderer LightSprite
|
||||
[SkipSerialisation]
|
||||
Reference to the light sprite
|
||||
|
||||
public SpriteRenderer GlowSprite
|
||||
[SkipSerialisation]
|
||||
Reference to the little glow sprite
|
||||
|
||||
public SpriteRenderer BulbMask
|
||||
[SkipSerialisation]
|
||||
Reference to the colored bulb sprite
|
||||
|
||||
public PhysicalBehaviour PhysicalBehaviour
|
||||
[SkipSerialisation]
|
||||
Reference to the light sprite
|
||||
|
||||
public float MinBrightness
|
||||
[SkipSerialisation]
|
||||
The brightness of the LED at 0 charge
|
||||
|
||||
public float MaxCharge
|
||||
[SkipSerialisation]
|
||||
The charge required to max out the LED brightness
|
||||
|
||||
public bool Activated
|
||||
Is the LED on?
|
||||
|
||||
Methods
|
||||
public void UpdateBulbMaskColour()
|
||||
Should be called every time you change the colour
|
||||
|
||||
public void Use(ActivationPropagation activation)
|
||||
No description provided
|
||||
Reference in New Issue
Block a user