Show / Hide Table of Contents

Class AirPollutionComponent

Inheritance
System.Object
WorldObjectComponent
AirPollutionComponent
Implements
ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IHasInteractions
Inherited Members
WorldObjectComponent.IsRPCAuthorized(IWorldObserver, AccessType, Object[])
WorldObjectComponent.PostInitialize()
WorldObjectComponent.OnCreate()
WorldObjectComponent.LateTick()
WorldObjectComponent.TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
WorldObjectComponent.OnPickup(Player)
WorldObjectComponent.OnBeforeObjectMoved()
WorldObjectComponent.OnAfterObjectMoved()
WorldObjectComponent.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
WorldObjectComponent.UILinkContent()
WorldObjectComponent.Parent
WorldObjectComponent.Name
WorldObjectComponent.IconName
WorldObjectComponent.ForceActiveTab
WorldObjectComponent.ComponentPrefabName
WorldObjectComponent.ComponentTabName
WorldObjectComponent.Enabled
WorldObjectComponent.IsDestroyed
WorldObjectComponent.Availability
WorldObjectComponent.ShouldRequestEverything
WorldObjectComponent.Owners
WorldObjectComponent.ControllerID
WorldObjectComponent.IOwned.Deed
WorldObjectComponent.Subscriptions
WorldObjectComponent.PropertyChanged
Namespace: Eco.Gameplay.Components
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
public class AirPollutionComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions

Constructors

AirPollutionComponent()

Declaration
public AirPollutionComponent()

AirPollutionComponent(IPolluter)

Declaration
public AirPollutionComponent(IPolluter pollutingComponent)
Parameters
Type Name Description
IPolluter pollutingComponent

AirPollutionComponent(Single)

Declaration
public AirPollutionComponent(float pollutionTonsPerHour)
Parameters
Type Name Description
System.Single pollutionTonsPerHour

Fields

PollutionThrottle

Declaration
public PeriodicUpdate PollutionThrottle
Field Value
Type Description
PeriodicUpdate

QueuedPollution

Declaration
public float QueuedPollution
Field Value
Type Description
System.Single

QueuedTimePollution

Declaration
public float QueuedTimePollution
Field Value
Type Description
System.Single

Properties

PollutionTonsPerHour

Declaration
public float PollutionTonsPerHour { get; }
Property Value
Type Description
System.Single

TotalTimeOperating

Declaration
public double TotalTimeOperating { get; }
Property Value
Type Description
System.Double

TotalTonsPollution

Declaration
public float TotalTonsPollution { get; }
Property Value
Type Description
System.Single

Methods

Destroy()

Declaration
public override void Destroy()
Overrides
WorldObjectComponent.Destroy()

Initialize()

Declaration
public override void Initialize()
Overrides
WorldObjectComponent.Initialize()

Initialize(IPolluter)

Declaration
public void Initialize(IPolluter pollutingComponent)
Parameters
Type Name Description
IPolluter pollutingComponent

Initialize(Single)

Declaration
public void Initialize(float pollutionTonsPerHour)
Parameters
Type Name Description
System.Single pollutionTonsPerHour

Tick()

Declaration
public override void Tick()
Overrides
WorldObjectComponent.Tick()

TryPollute(Single, Single)

Declaration
public Result TryPollute(float tons, float timePolluting)
Parameters
Type Name Description
System.Single tons
System.Single timePolluting
Returns
Type Description
Result

Implements

ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IHasInteractions

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾