Loading...
Searching...
No Matches
AdventureHero.HeroPlayerCharacter Class Reference

Detailed Description

central character component for the player character used to configure various transforms, manages item pickup animation for newly and special items and sheathing of sword and shield

https://adventure.softleitner.com/manual/character

Inheritance diagram for AdventureHero.HeroPlayerCharacter:
AdventureCore.CharacterBaseTyped< CharacterActorBase, MovementBase, InventoryBase >

Classes

interface  IHoldable
 

Public Member Functions

override bool PreDamageReceive (IDamageSender sender, IDamageReceiver receiver)
 
void ShowPickup (ItemQuantity itemQuantity)
 
void VisualizePresent (ItemBase item)
 
void RememberPickup (ItemBase item)
 
void Sheathe ()
 
void Sheathe (bool animate)
 
void Unsheathe ()
 
void Unsheathe (bool animate)
 
void Hold (IHoldable holdable)
 
void Hold (IHoldable holdable, bool animate)
 
override void OnMessage (string e)
 
override void Confirm ()
 
override void Cancel ()
 

Public Attributes

TextBoxBase TextBox
 
TextBoxBase TextBoxFullscreen
 
Transform PickupParent
 
Animator PickupAnimator
 
Transform PresentParent
 
CharacterActionBase PresentAction
 
ItemBase[] PresentNever
 
ItemBase[] PresentAlways
 
Transform ItemParentRight
 
Transform ItemParentLeft
 
Transform ItemParentOverhead
 
Transform Sword
 
Transform SwordSheathed
 
Transform Shield
 
Transform ShieldSheathed
 
bool IsSheathed = true
 
PlayableAnimationParameters PocketAnimation
 
PlayableAnimationParameters SheatheAnimation
 
- Public Attributes inherited from AdventureCore.CharacterBaseTyped< CharacterActorBase, MovementBase, InventoryBase >
TActor Actor
 
TMovement Movement
 
TInventory Inventory
 

Static Public Attributes

const string PICKUP_SUB_KEY = "PICKUP"
 
static int SheatheParameter = Animator.StringToHash("Sheathe")
 
static int PocketParameter = Animator.StringToHash("Pocket")
 
static int ActionTypeParameter = Animator.StringToHash("ActionType")
 
static int ActionSpeedParameter = Animator.StringToHash("ActionSpeed")
 
static int ActParameter = Animator.StringToHash("Act")
 

Protected Member Functions

override void Awake ()
 
override void Start ()
 

Properties

bool IsHolding [get]
 
- Properties inherited from AdventureCore.CharacterBaseTyped< CharacterActorBase, MovementBase, InventoryBase >
override CharacterActorBase ActorBase [get]
 
override MovementBase MovementBase [get]
 
override InventoryBase InventoryBase [get]