C# Класс UWCombat, UnderworldExporter

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

Открытые свойства

Свойство Тип Описание
CurrentStrike string
currWeapon WeaponMelee,
currWeaponRanged WeaponRanged,
currentAmmo ObjectInteraction,

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

Метод Описание
CombatBegin ( ) : void

Begins the combat state of the player. Sets AttackCharging. Animates the weapon becoming ready. For ranged weaponry it checks for the weapon ammo.

CombatCharging ( ) : void

Increases the Charge by the charge rate * Time.deltaTime.

ExecuteMelee ( string StrikeType, float StrikeCharge ) : IEnumerator

Executes the melee attack after the attack has been released. Casts a ray from the centre of the screen in mouselook mode or from the cursor position Waits a period of time after the release before casting the ray.

ExecuteRanged ( ) : void

Execution of ranged attacks

GetHand ( ) : string

Gets the handedness of the character

GetRace ( ) : string

Gets the race of the charcter for displaying their skin colour based on the Body variable of UWCharacter

GetStrikeType ( ) : string

Gets the type of the strike based on where the mouse cursor is located on the Y axis of the viewport. Returns one of Bash, Slash or Stab

GetWeapon ( ) : string

Gets the weapon type One of sword, axe, mace or fist for melee or Ranged for ranged weapons

IsMelee ( ) : bool

Determines whether this current weapn is melee or ranged

PlayerCombatIdle ( ) : void
ReleaseAttack ( ) : void

Releases the attack.

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

Метод Описание
LaunchAmmo ( ) : bool

Launchs the ammo.

RollForAHitMelee ( NPC, Origin, ObjectInteraction, Target ) : int
RollForAHitMelee ( UWCharacter, Origin, ObjectInteraction, Target, WeaponMelee, weap ) : int

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

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

Begins the combat state of the player. Sets AttackCharging. Animates the weapon becoming ready. For ranged weaponry it checks for the weapon ammo.
public CombatBegin ( ) : void
Результат void

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

Increases the Charge by the charge rate * Time.deltaTime.
public CombatCharging ( ) : void
Результат void

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

Executes the melee attack after the attack has been released. Casts a ray from the centre of the screen in mouselook mode or from the cursor position Waits a period of time after the release before casting the ray.
public ExecuteMelee ( string StrikeType, float StrikeCharge ) : IEnumerator
StrikeType string
StrikeCharge float
Результат IEnumerator

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

Execution of ranged attacks
public ExecuteRanged ( ) : void
Результат void

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

Gets the handedness of the character
public GetHand ( ) : string
Результат string

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

Gets the race of the charcter for displaying their skin colour based on the Body variable of UWCharacter
public GetRace ( ) : string
Результат string

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

Gets the type of the strike based on where the mouse cursor is located on the Y axis of the viewport. Returns one of Bash, Slash or Stab
public GetStrikeType ( ) : string
Результат string

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

Gets the weapon type One of sword, axe, mace or fist for melee or Ranged for ranged weapons
public GetWeapon ( ) : string
Результат string

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

Determines whether this current weapn is melee or ranged
public IsMelee ( ) : bool
Результат bool

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

public PlayerCombatIdle ( ) : void
Результат void

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

Releases the attack.
public ReleaseAttack ( ) : void
Результат void

Описание свойств

CurrentStrike публичное свойство

public string CurrentStrike
Результат string

currWeapon публичное свойство

public WeaponMelee, currWeapon
Результат WeaponMelee,

currWeaponRanged публичное свойство

public WeaponRanged, currWeaponRanged
Результат WeaponRanged,

currentAmmo публичное свойство

public ObjectInteraction, currentAmmo
Результат ObjectInteraction,