C# 클래스 UWCombat, UnderworldExporter

상속: Combat
파일 보기 프로젝트 열기: hankmorgan/UnderworldExporter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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,