C# Class ExampleMod.NPCs.ExamplePerson

Inheritance: Terraria.ModLoader.ModNPC
Afficher le fichier Open project: bluemagic123/tModLoader

Méthodes publiques

Méthode 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 méthode

public Autoload ( string &name, string &texture, string &altTextures ) : bool
name string
texture string
altTextures string
Résultat bool

CanTownNPCSpawn() public méthode

public CanTownNPCSpawn ( int numTownNPCs, int money ) : bool
numTownNPCs int
money int
Résultat bool

CheckConditions() public méthode

public CheckConditions ( int left, int right, int top, int bottom ) : bool
left int
right int
top int
bottom int
Résultat bool

FindFrame() public méthode

public FindFrame ( int frameHeight ) : void
frameHeight int
Résultat void

GetChat() public méthode

public GetChat ( ) : string
Résultat string

HitEffect() public méthode

public HitEffect ( int hitDirection, double damage ) : void
hitDirection int
damage double
Résultat void

OnChatButtonClicked() public méthode

public OnChatButtonClicked ( bool firstButton, bool &shop ) : void
firstButton bool
shop bool
Résultat void

SetChatButtons() public méthode

public SetChatButtons ( string &button, string &button2 ) : void
button string
button2 string
Résultat void

SetDefaults() public méthode

public SetDefaults ( ) : void
Résultat void

SetupShop() public méthode

public SetupShop ( Chest shop, int &nextSlot ) : void
shop Terraria.Chest
nextSlot int
Résultat void

TownNPCAttackCooldown() public méthode

public TownNPCAttackCooldown ( int &cooldown, int &randExtraCooldown ) : void
cooldown int
randExtraCooldown int
Résultat void

TownNPCAttackProj() public méthode

public TownNPCAttackProj ( int &projType, int &attackDelay ) : void
projType int
attackDelay int
Résultat void

TownNPCAttackProjSpeed() public méthode

public TownNPCAttackProjSpeed ( float &multiplier, float &gravityCorrection, float &randomOffset ) : void
multiplier float
gravityCorrection float
randomOffset float
Résultat void

TownNPCAttackStrength() public méthode

public TownNPCAttackStrength ( int &damage, float &knockback ) : void
damage int
knockback float
Résultat void

TownNPCName() public méthode

public TownNPCName ( ) : string
Résultat string