C# Класс OpenRA.GameRules.WeaponInfo

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Impact ( Target target, Actor firedBy, IEnumerable damageModifiers ) : void

Applies all the weapon's warheads to the target.

IsValidAgainst ( Actor victim, Actor firedBy ) : bool

Checks if the weapon is valid against (can target) the actor.

IsValidAgainst ( OpenRA.Traits.FrozenActor victim, Actor firedBy ) : bool

Checks if the weapon is valid against (can target) the frozen actor.

IsValidAgainst ( Target target, World world, Actor firedBy ) : bool

Checks if the weapon is valid against (can target) the target.

IsValidTarget ( IEnumerable targetTypes ) : bool
WeaponInfo ( string name, MiniYaml content ) : System

Приватные методы

Метод Описание
LoadProjectile ( MiniYaml yaml ) : object
LoadWarheads ( MiniYaml yaml ) : object

Описание методов

Impact() публичный Метод

Applies all the weapon's warheads to the target.
public Impact ( Target target, Actor firedBy, IEnumerable damageModifiers ) : void
target OpenRA.Traits.Target
firedBy Actor
damageModifiers IEnumerable
Результат void

IsValidAgainst() публичный Метод

Checks if the weapon is valid against (can target) the actor.
public IsValidAgainst ( Actor victim, Actor firedBy ) : bool
victim Actor
firedBy Actor
Результат bool

IsValidAgainst() публичный Метод

Checks if the weapon is valid against (can target) the frozen actor.
public IsValidAgainst ( OpenRA.Traits.FrozenActor victim, Actor firedBy ) : bool
victim OpenRA.Traits.FrozenActor
firedBy Actor
Результат bool

IsValidAgainst() публичный Метод

Checks if the weapon is valid against (can target) the target.
public IsValidAgainst ( Target target, World world, Actor firedBy ) : bool
target OpenRA.Traits.Target
world World
firedBy Actor
Результат bool

IsValidTarget() публичный Метод

public IsValidTarget ( IEnumerable targetTypes ) : bool
targetTypes IEnumerable
Результат bool

WeaponInfo() публичный Метод

public WeaponInfo ( string name, MiniYaml content ) : System
name string
content MiniYaml
Результат System