Class PowerGeneratorComponent
Inheritance
System.Object
PowerGeneratorComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
public class PowerGeneratorComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions
Constructors
PowerGeneratorComponent()
Declaration
public PowerGeneratorComponent()
PowerGeneratorComponent(Single)
Declaration
public PowerGeneratorComponent(float joulesPerSecond)
Parameters
Type |
Name |
Description |
System.Single |
joulesPerSecond |
|
Fields
AllPowerGenerators
Declaration
public static IEnumerable<IGrouping<string, Type>> AllPowerGenerators
Field Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Linq.IGrouping<System.String, System.Type>> |
|
Properties
Availability
Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Overrides
JoulesPerSecond
Declaration
public float JoulesPerSecond { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
Initialize()
Declaration
public override void Initialize()
Overrides
Initialize(Single)
Declaration
public void Initialize(float joulesPerSecond)
Parameters
Type |
Name |
Description |
System.Single |
joulesPerSecond |
|
UpdateJoulesPerSecond(Single)
Updates the output of this Power Generator and alters the Power Grid Component to reflect the change.
Declaration
public void UpdateJoulesPerSecond(float newJoulesPerSecond)
Parameters
Type |
Name |
Description |
System.Single |
newJoulesPerSecond |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods