C# 클래스 Terraria.ModLoader.ModNPC

파일 보기 프로젝트 열기: JavidPack/TerraCustom 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
aiType int
animationType int
banner int
bannerItem int
bossBag int
drawOffsetY float
music int

공개 메소드들

메소드 설명
AI ( ) : void
Autoload ( string &name, string &texture, string &altTextures ) : bool
AutoloadHead ( string &headTexture, string &bossHeadTexture ) : void
BossHeadRotation ( float &rotation ) : void
BossHeadSlot ( int &index ) : void
BossHeadSpriteEffects ( SpriteEffects &spriteEffects ) : void
BossLoot ( string &name, int &potionType ) : void
CanBeHitByItem ( Player player, Item item ) : bool?
CanBeHitByProjectile ( Projectile projectile ) : bool?
CanHitNPC ( Terraria.NPC target ) : bool?
CanHitPlayer ( Player target, int &cooldownSlot ) : bool
CanSpawn ( Terraria.ModLoader.NPCSpawnInfo spawnInfo ) : float
CanTownNPCSpawn ( int numTownNPCs, int money ) : bool
CheckActive ( ) : bool
CheckConditions ( int left, int right, int top, int bottom ) : bool
CheckDead ( ) : bool
DrawEffects ( Color &drawColor ) : void
DrawHealthBar ( byte hbPosition, float &scale, Vector2 &position ) : bool?
DrawTownAttackGun ( float &scale, int &item, int &closeness ) : void
DrawTownAttackSwing ( Texture2D &item, int &itemSize, float &scale, Vector2 &offset ) : void
FindFrame ( int frameHeight ) : void
GetAlpha ( Color drawColor ) : Color?
GetChat ( ) : string
HitEffect ( int hitDirection, double damage ) : void
ModNPC ( ) : System
ModifyHitByItem ( Player player, Item item, int &damage, float &knockback, bool &crit ) : void
ModifyHitByProjectile ( Projectile projectile, int &damage, float &knockback, bool &crit ) : void
ModifyHitNPC ( Terraria.NPC target, int &damage, float &knockback, bool &crit ) : void
ModifyHitPlayer ( Player target, int &damage, bool &crit ) : void
NPCLoot ( ) : void
OnChatButtonClicked ( bool firstButton, bool &shop ) : void
OnHitByItem ( Player player, Item item, int damage, float knockback, bool crit ) : void
OnHitByProjectile ( Projectile projectile, int damage, float knockback, bool crit ) : void
OnHitNPC ( Terraria.NPC target, int damage, float knockback, bool crit ) : void
OnHitPlayer ( Player target, int damage, bool crit ) : void
PostAI ( ) : void
PostDraw ( SpriteBatch spriteBatch, Color drawColor ) : void
PreAI ( ) : bool
PreDraw ( SpriteBatch spriteBatch, Color drawColor ) : bool
PreNPCLoot ( ) : bool
ReceiveExtraAI ( BinaryReader reader ) : void
ResetEffects ( ) : void
ScaleExpertStats ( int numPlayers, float bossLifeScale ) : void
SendExtraAI ( BinaryWriter writer ) : void
SetChatButtons ( string &button, string &button2 ) : void
SetDefaults ( ) : void
SetupShop ( Chest shop, int &nextSlot ) : void
SpawnNPC ( int tileX, int tileY ) : int
StrikeNPC ( double &damage, int defense, float &knockback, int hitDirection, bool &crit ) : bool
TownNPCAttackCooldown ( int &cooldown, int &randExtraCooldown ) : void
TownNPCAttackMagic ( float &auraLightMultiplier ) : void
TownNPCAttackProj ( int &projType, int &attackDelay ) : void
TownNPCAttackProjSpeed ( float &multiplier, float &gravityCorrection, float &randomOffset ) : void
TownNPCAttackShoot ( bool &inBetweenShots ) : void
TownNPCAttackStrength ( int &damage, float &knockback ) : void
TownNPCAttackSwing ( int &itemWidth, int &itemHeight ) : void
TownNPCName ( ) : string
UpdateLifeRegen ( int &damage ) : void
UsesPartyHat ( ) : bool

비공개 메소드들

메소드 설명
SetupNPC ( Terraria.NPC npc ) : void

메소드 상세

AI() 공개 메소드

public AI ( ) : void
리턴 void

Autoload() 공개 메소드

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

AutoloadHead() 공개 메소드

public AutoloadHead ( string &headTexture, string &bossHeadTexture ) : void
headTexture string
bossHeadTexture string
리턴 void

BossHeadRotation() 공개 메소드

public BossHeadRotation ( float &rotation ) : void
rotation float
리턴 void

BossHeadSlot() 공개 메소드

public BossHeadSlot ( int &index ) : void
index int
리턴 void

BossHeadSpriteEffects() 공개 메소드

public BossHeadSpriteEffects ( SpriteEffects &spriteEffects ) : void
spriteEffects SpriteEffects
리턴 void

BossLoot() 공개 메소드

public BossLoot ( string &name, int &potionType ) : void
name string
potionType int
리턴 void

CanBeHitByItem() 공개 메소드

public CanBeHitByItem ( Player player, Item item ) : bool?
player Terraria.Player
item Item
리턴 bool?

CanBeHitByProjectile() 공개 메소드

public CanBeHitByProjectile ( Projectile projectile ) : bool?
projectile Terraria.Projectile
리턴 bool?

CanHitNPC() 공개 메소드

public CanHitNPC ( Terraria.NPC target ) : bool?
target Terraria.NPC
리턴 bool?

CanHitPlayer() 공개 메소드

public CanHitPlayer ( Player target, int &cooldownSlot ) : bool
target Terraria.Player
cooldownSlot int
리턴 bool

CanSpawn() 공개 메소드

public CanSpawn ( Terraria.ModLoader.NPCSpawnInfo spawnInfo ) : float
spawnInfo Terraria.ModLoader.NPCSpawnInfo
리턴 float

CanTownNPCSpawn() 공개 메소드

public CanTownNPCSpawn ( int numTownNPCs, int money ) : bool
numTownNPCs int
money int
리턴 bool

CheckActive() 공개 메소드

public CheckActive ( ) : bool
리턴 bool

CheckConditions() 공개 메소드

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

CheckDead() 공개 메소드

public CheckDead ( ) : bool
리턴 bool

DrawEffects() 공개 메소드

public DrawEffects ( Color &drawColor ) : void
drawColor Color
리턴 void

DrawHealthBar() 공개 메소드

public DrawHealthBar ( byte hbPosition, float &scale, Vector2 &position ) : bool?
hbPosition byte
scale float
position Vector2
리턴 bool?

DrawTownAttackGun() 공개 메소드

public DrawTownAttackGun ( float &scale, int &item, int &closeness ) : void
scale float
item int
closeness int
리턴 void

DrawTownAttackSwing() 공개 메소드

public DrawTownAttackSwing ( Texture2D &item, int &itemSize, float &scale, Vector2 &offset ) : void
item Texture2D
itemSize int
scale float
offset Vector2
리턴 void

FindFrame() 공개 메소드

public FindFrame ( int frameHeight ) : void
frameHeight int
리턴 void

GetAlpha() 공개 메소드

public GetAlpha ( Color drawColor ) : Color?
drawColor Color
리턴 Color?

GetChat() 공개 메소드

public GetChat ( ) : string
리턴 string

HitEffect() 공개 메소드

public HitEffect ( int hitDirection, double damage ) : void
hitDirection int
damage double
리턴 void

ModNPC() 공개 메소드

public ModNPC ( ) : System
리턴 System

ModifyHitByItem() 공개 메소드

public ModifyHitByItem ( Player player, Item item, int &damage, float &knockback, bool &crit ) : void
player Terraria.Player
item Item
damage int
knockback float
crit bool
리턴 void

ModifyHitByProjectile() 공개 메소드

public ModifyHitByProjectile ( Projectile projectile, int &damage, float &knockback, bool &crit ) : void
projectile Terraria.Projectile
damage int
knockback float
crit bool
리턴 void

ModifyHitNPC() 공개 메소드

public ModifyHitNPC ( Terraria.NPC target, int &damage, float &knockback, bool &crit ) : void
target Terraria.NPC
damage int
knockback float
crit bool
리턴 void

ModifyHitPlayer() 공개 메소드

public ModifyHitPlayer ( Player target, int &damage, bool &crit ) : void
target Terraria.Player
damage int
crit bool
리턴 void

NPCLoot() 공개 메소드

public NPCLoot ( ) : void
리턴 void

OnChatButtonClicked() 공개 메소드

public OnChatButtonClicked ( bool firstButton, bool &shop ) : void
firstButton bool
shop bool
리턴 void

OnHitByItem() 공개 메소드

public OnHitByItem ( Player player, Item item, int damage, float knockback, bool crit ) : void
player Terraria.Player
item Item
damage int
knockback float
crit bool
리턴 void

OnHitByProjectile() 공개 메소드

public OnHitByProjectile ( Projectile projectile, int damage, float knockback, bool crit ) : void
projectile Terraria.Projectile
damage int
knockback float
crit bool
리턴 void

OnHitNPC() 공개 메소드

public OnHitNPC ( Terraria.NPC target, int damage, float knockback, bool crit ) : void
target Terraria.NPC
damage int
knockback float
crit bool
리턴 void

OnHitPlayer() 공개 메소드

public OnHitPlayer ( Player target, int damage, bool crit ) : void
target Terraria.Player
damage int
crit bool
리턴 void

PostAI() 공개 메소드

public PostAI ( ) : void
리턴 void

PostDraw() 공개 메소드

public PostDraw ( SpriteBatch spriteBatch, Color drawColor ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
drawColor Color
리턴 void

PreAI() 공개 메소드

public PreAI ( ) : bool
리턴 bool

PreDraw() 공개 메소드

public PreDraw ( SpriteBatch spriteBatch, Color drawColor ) : bool
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
drawColor Color
리턴 bool

PreNPCLoot() 공개 메소드

public PreNPCLoot ( ) : bool
리턴 bool

ReceiveExtraAI() 공개 메소드

public ReceiveExtraAI ( BinaryReader reader ) : void
reader System.IO.BinaryReader
리턴 void

ResetEffects() 공개 메소드

public ResetEffects ( ) : void
리턴 void

ScaleExpertStats() 공개 메소드

public ScaleExpertStats ( int numPlayers, float bossLifeScale ) : void
numPlayers int
bossLifeScale float
리턴 void

SendExtraAI() 공개 메소드

public SendExtraAI ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
리턴 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

SpawnNPC() 공개 메소드

public SpawnNPC ( int tileX, int tileY ) : int
tileX int
tileY int
리턴 int

StrikeNPC() 공개 메소드

public StrikeNPC ( double &damage, int defense, float &knockback, int hitDirection, bool &crit ) : bool
damage double
defense int
knockback float
hitDirection int
crit bool
리턴 bool

TownNPCAttackCooldown() 공개 메소드

public TownNPCAttackCooldown ( int &cooldown, int &randExtraCooldown ) : void
cooldown int
randExtraCooldown int
리턴 void

TownNPCAttackMagic() 공개 메소드

public TownNPCAttackMagic ( float &auraLightMultiplier ) : void
auraLightMultiplier float
리턴 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

TownNPCAttackShoot() 공개 메소드

public TownNPCAttackShoot ( bool &inBetweenShots ) : void
inBetweenShots bool
리턴 void

TownNPCAttackStrength() 공개 메소드

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

TownNPCAttackSwing() 공개 메소드

public TownNPCAttackSwing ( int &itemWidth, int &itemHeight ) : void
itemWidth int
itemHeight int
리턴 void

TownNPCName() 공개 메소드

public TownNPCName ( ) : string
리턴 string

UpdateLifeRegen() 공개 메소드

public UpdateLifeRegen ( int &damage ) : void
damage int
리턴 void

UsesPartyHat() 공개 메소드

public UsesPartyHat ( ) : bool
리턴 bool

프로퍼티 상세

aiType 공개적으로 프로퍼티

public int aiType
리턴 int

animationType 공개적으로 프로퍼티

public int animationType
리턴 int

banner 공개적으로 프로퍼티

public int banner
리턴 int

bannerItem 공개적으로 프로퍼티

public int bannerItem
리턴 int

bossBag 공개적으로 프로퍼티

public int bossBag
리턴 int

drawOffsetY 공개적으로 프로퍼티

public float drawOffsetY
리턴 float

music 공개적으로 프로퍼티

public int music
리턴 int