C# Class ExampleMod.NPCs.ExamplePerson

Inheritance: Terraria.ModLoader.ModNPC
Exibir arquivo Open project: bluemagic123/tModLoader

Public Methods

Method Description
Autoload ( string &name, string &texture, string &altTextures ) : bool
CanTownNPCSpawn ( int numTownNPCs, int money ) : bool
CheckConditions ( int left, int right, int top, int bottom ) : bool
FindFrame ( int frameHeight ) : void
GetChat ( ) : string
HitEffect ( int hitDirection, double damage ) : void
OnChatButtonClicked ( bool firstButton, bool &shop ) : void
SetChatButtons ( string &button, string &button2 ) : void
SetDefaults ( ) : void
SetupShop ( Chest shop, int &nextSlot ) : void
TownNPCAttackCooldown ( int &cooldown, int &randExtraCooldown ) : void
TownNPCAttackProj ( int &projType, int &attackDelay ) : void
TownNPCAttackProjSpeed ( float &multiplier, float &gravityCorrection, float &randomOffset ) : void
TownNPCAttackStrength ( int &damage, float &knockback ) : void
TownNPCName ( ) : string

Method Details

Autoload() public method

public Autoload ( string &name, string &texture, string &altTextures ) : bool
name string
texture string
altTextures string
return bool

CanTownNPCSpawn() public method

public CanTownNPCSpawn ( int numTownNPCs, int money ) : bool
numTownNPCs int
money int
return bool

CheckConditions() public method

public CheckConditions ( int left, int right, int top, int bottom ) : bool
left int
right int
top int
bottom int
return bool

FindFrame() public method

public FindFrame ( int frameHeight ) : void
frameHeight int
return void

GetChat() public method

public GetChat ( ) : string
return string

HitEffect() public method

public HitEffect ( int hitDirection, double damage ) : void
hitDirection int
damage double
return void

OnChatButtonClicked() public method

public OnChatButtonClicked ( bool firstButton, bool &shop ) : void
firstButton bool
shop bool
return void

SetChatButtons() public method

public SetChatButtons ( string &button, string &button2 ) : void
button string
button2 string
return void

SetDefaults() public method

public SetDefaults ( ) : void
return void

SetupShop() public method

public SetupShop ( Chest shop, int &nextSlot ) : void
shop Terraria.Chest
nextSlot int
return void

TownNPCAttackCooldown() public method

public TownNPCAttackCooldown ( int &cooldown, int &randExtraCooldown ) : void
cooldown int
randExtraCooldown int
return void

TownNPCAttackProj() public method

public TownNPCAttackProj ( int &projType, int &attackDelay ) : void
projType int
attackDelay int
return void

TownNPCAttackProjSpeed() public method

public TownNPCAttackProjSpeed ( float &multiplier, float &gravityCorrection, float &randomOffset ) : void
multiplier float
gravityCorrection float
randomOffset float
return void

TownNPCAttackStrength() public method

public TownNPCAttackStrength ( int &damage, float &knockback ) : void
damage int
knockback float
return void

TownNPCName() public method

public TownNPCName ( ) : string
return string