C# Класс ExampleMod.NPCs.ExamplePerson

Наследование: Terraria.ModLoader.ModNPC
Показать файл Открыть проект

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

Метод Описание
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

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

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

public Autoload ( string &name, string &texture, string &altTextures ) : bool
name string
texture string
altTextures string
Результат bool

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

public CanTownNPCSpawn ( int numTownNPCs, int money ) : bool
numTownNPCs int
money int
Результат bool

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

public CheckConditions ( int left, int right, int top, int bottom ) : bool
left int
right int
top int
bottom int
Результат bool

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

public FindFrame ( int frameHeight ) : void
frameHeight int
Результат void

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

public GetChat ( ) : string
Результат string

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

public HitEffect ( int hitDirection, double damage ) : void
hitDirection int
damage double
Результат void

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

public OnChatButtonClicked ( bool firstButton, bool &shop ) : void
firstButton bool
shop bool
Результат void

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

public SetChatButtons ( string &button, string &button2 ) : void
button string
button2 string
Результат void

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

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

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

public SetupShop ( Chest shop, int &nextSlot ) : void
shop Terraria.Chest
nextSlot int
Результат void

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

public TownNPCAttackCooldown ( int &cooldown, int &randExtraCooldown ) : void
cooldown int
randExtraCooldown int
Результат void

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

public TownNPCAttackProj ( int &projType, int &attackDelay ) : void
projType int
attackDelay int
Результат void

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

public TownNPCAttackProjSpeed ( float &multiplier, float &gravityCorrection, float &randomOffset ) : void
multiplier float
gravityCorrection float
randomOffset float
Результат void

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

public TownNPCAttackStrength ( int &damage, float &knockback ) : void
damage int
knockback float
Результат void

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

public TownNPCName ( ) : string
Результат string