C# Class OpenRA.Mods.Common.Scripting.ScriptTriggers

Inheritance: INotifyIdle, INotifyDamage, INotifyKilled, INotifyProduction, INotifyOtherProduction, INotifyObjectivesUpdated, INotifyCapture, INotifyInfiltrated, INotifyAddedToWorld, INotifyRemovedFromWorld, INotifyDiscovered, INotifyActorDisposing, INotifyPassengerEntered, INotifyPassengerExited, INotifySold
显示文件 Open project: OpenRA/OpenRA Class Usage Examples

Public Methods

Method Description
AddedToWorld ( Actor self ) : void
Clear ( Trigger trigger ) : void
ClearAll ( ) : void
Damaged ( Actor self, OpenRA.Traits.AttackInfo e ) : void
Disposing ( Actor self ) : void
HasAnyCallbacksFor ( Trigger trigger ) : bool
Infiltrated ( Actor self, Actor infiltrator ) : void
Killed ( Actor self, OpenRA.Traits.AttackInfo e ) : void
OnCapture ( Actor self, Actor captor, Player oldOwner, Player newOwner ) : void
OnDiscovered ( Actor self, Player discoverer, bool playNotification ) : void
OnObjectiveAdded ( Player player, int id ) : void
OnObjectiveCompleted ( Player player, int id ) : void
OnObjectiveFailed ( Player player, int id ) : void
OnPlayerLost ( Player player ) : void
OnPlayerWon ( Player player ) : void
RegisterCallback ( Trigger trigger, Eluant.LuaFunction func, OpenRA.Scripting.ScriptContext context ) : void
RemovedFromWorld ( Actor self ) : void
ScriptTriggers ( World world, Actor self ) : System
TickIdle ( Actor self ) : void
UnitProduced ( Actor self, Actor other, CPos exit ) : void
UnitProducedByOther ( Actor self, Actor producee, Actor produced ) : void

Private Methods

Method Description
INotifyPassengerEntered ( Actor self, Actor passenger ) : void
INotifyPassengerExited ( Actor self, Actor passenger ) : void
INotifySold ( Actor self ) : void
Triggerables ( Trigger trigger ) : List

Method Details

AddedToWorld() public method

public AddedToWorld ( Actor self ) : void
self Actor
return void

Clear() public method

public Clear ( Trigger trigger ) : void
trigger Trigger
return void

ClearAll() public method

public ClearAll ( ) : void
return void

Damaged() public method

public Damaged ( Actor self, OpenRA.Traits.AttackInfo e ) : void
self Actor
e OpenRA.Traits.AttackInfo
return void

Disposing() public method

public Disposing ( Actor self ) : void
self Actor
return void

HasAnyCallbacksFor() public method

public HasAnyCallbacksFor ( Trigger trigger ) : bool
trigger Trigger
return bool

Infiltrated() public method

public Infiltrated ( Actor self, Actor infiltrator ) : void
self Actor
infiltrator Actor
return void

Killed() public method

public Killed ( Actor self, OpenRA.Traits.AttackInfo e ) : void
self Actor
e OpenRA.Traits.AttackInfo
return void

OnCapture() public method

public OnCapture ( Actor self, Actor captor, Player oldOwner, Player newOwner ) : void
self Actor
captor Actor
oldOwner Player
newOwner Player
return void

OnDiscovered() public method

public OnDiscovered ( Actor self, Player discoverer, bool playNotification ) : void
self Actor
discoverer Player
playNotification bool
return void

OnObjectiveAdded() public method

public OnObjectiveAdded ( Player player, int id ) : void
player Player
id int
return void

OnObjectiveCompleted() public method

public OnObjectiveCompleted ( Player player, int id ) : void
player Player
id int
return void

OnObjectiveFailed() public method

public OnObjectiveFailed ( Player player, int id ) : void
player Player
id int
return void

OnPlayerLost() public method

public OnPlayerLost ( Player player ) : void
player Player
return void

OnPlayerWon() public method

public OnPlayerWon ( Player player ) : void
player Player
return void

RegisterCallback() public method

public RegisterCallback ( Trigger trigger, Eluant.LuaFunction func, OpenRA.Scripting.ScriptContext context ) : void
trigger Trigger
func Eluant.LuaFunction
context OpenRA.Scripting.ScriptContext
return void

RemovedFromWorld() public method

public RemovedFromWorld ( Actor self ) : void
self Actor
return void

ScriptTriggers() public method

public ScriptTriggers ( World world, Actor self ) : System
world World
self Actor
return System

TickIdle() public method

public TickIdle ( Actor self ) : void
self Actor
return void

UnitProduced() public method

public UnitProduced ( Actor self, Actor other, CPos exit ) : void
self Actor
other Actor
exit CPos
return void

UnitProducedByOther() public method

public UnitProducedByOther ( Actor self, Actor producee, Actor produced ) : void
self Actor
producee Actor
produced Actor
return void