C# Class OpenRA.Mods.Common.Traits.UpgradeMultiplierTrait

Inheritance: IUpgradable, IDisabledTrait, ISync
显示文件 Open project: OpenRA/OpenRA

Private Properties

Property Type Description

Public Methods

Method Description
AcceptsUpgradeLevel ( Actor self, string type, int level ) : bool
GetModifier ( ) : int
UpgradeLevelChanged ( Actor self, string type, int oldLevel, int newLevel ) : void

Protected Methods

Method Description
Update ( Actor self ) : void
UpgradeMultiplierTrait ( UpgradeMultiplierTraitInfo info, string modifierType, string actorType ) : System

Method Details

AcceptsUpgradeLevel() public method

public AcceptsUpgradeLevel ( Actor self, string type, int level ) : bool
self Actor
type string
level int
return bool

GetModifier() public method

public GetModifier ( ) : int
return int

Update() protected method

protected Update ( Actor self ) : void
self Actor
return void

UpgradeLevelChanged() public method

public UpgradeLevelChanged ( Actor self, string type, int oldLevel, int newLevel ) : void
self Actor
type string
oldLevel int
newLevel int
return void

UpgradeMultiplierTrait() protected method

protected UpgradeMultiplierTrait ( UpgradeMultiplierTraitInfo info, string modifierType, string actorType ) : System
info UpgradeMultiplierTraitInfo
modifierType string
actorType string
return System