C# 클래스 Terraria.ModLoader.GlobalNPC

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

공개 메소드들

메소드 설명
AI ( Terraria.NPC npc ) : void
Autoload ( string &name ) : bool
BossHeadRotation ( Terraria.NPC npc, float &rotation ) : void
BossHeadSlot ( Terraria.NPC npc, int &index ) : void
BossHeadSpriteEffects ( Terraria.NPC npc, SpriteEffects &spriteEffects ) : void
BuffTownNPC ( float &damageMult, int &defense ) : void
CanBeHitByItem ( Terraria.NPC npc, Player player, Item item ) : bool?
CanBeHitByProjectile ( Terraria.NPC npc, Projectile projectile ) : bool?
CanHitNPC ( Terraria.NPC npc, Terraria.NPC target ) : bool?
CanHitPlayer ( Terraria.NPC npc, Player target, int &cooldownSlot ) : bool
CheckActive ( Terraria.NPC npc ) : bool
CheckDead ( Terraria.NPC npc ) : bool
DrawEffects ( Terraria.NPC npc, Color &drawColor ) : void
DrawHealthBar ( Terraria.NPC npc, byte hbPosition, float &scale, Vector2 &position ) : bool?
DrawTownAttackGun ( Terraria.NPC npc, float &scale, int &item, int &closeness ) : void
DrawTownAttackSwing ( Terraria.NPC npc, Texture2D &item, int &itemSize, float &scale, Vector2 &offset ) : void
EditSpawnPool ( float>.IDictionary pool, Terraria.ModLoader.NPCSpawnInfo spawnInfo ) : void
EditSpawnRange ( Player player, int &spawnRangeX, int &spawnRangeY, int &safeRangeX, int &safeRangeY ) : void
EditSpawnRate ( Player player, int &spawnRate, int &maxSpawns ) : void
FindFrame ( Terraria.NPC npc, int frameHeight ) : void
GetAlpha ( Terraria.NPC npc, Color drawColor ) : Color?
GetChat ( Terraria.NPC npc, string &chat ) : void
HitEffect ( Terraria.NPC npc, int hitDirection, double damage ) : void
ModifyHitByItem ( Terraria.NPC npc, Player player, Item item, int &damage, float &knockback, bool &crit ) : void
ModifyHitByProjectile ( Terraria.NPC npc, Projectile projectile, int &damage, float &knockback, bool &crit, int &hitDirection ) : void
ModifyHitNPC ( Terraria.NPC npc, Terraria.NPC target, int &damage, float &knockback, bool &crit ) : void
ModifyHitPlayer ( Terraria.NPC npc, Player target, int &damage, bool &crit ) : void
NPCLoot ( Terraria.NPC npc ) : void
OnHitByItem ( Terraria.NPC npc, Player player, Item item, int damage, float knockback, bool crit ) : void
OnHitByProjectile ( Terraria.NPC npc, Projectile projectile, int damage, float knockback, bool crit ) : void
OnHitNPC ( Terraria.NPC npc, Terraria.NPC target, int damage, float knockback, bool crit ) : void
OnHitPlayer ( Terraria.NPC npc, Player target, int damage, bool crit ) : void
PostAI ( Terraria.NPC npc ) : void
PostDraw ( Terraria.NPC npc, SpriteBatch spriteBatch, Color drawColor ) : void
PreAI ( Terraria.NPC npc ) : bool
PreDraw ( Terraria.NPC npc, SpriteBatch spriteBatch, Color drawColor ) : bool
PreNPCLoot ( Terraria.NPC npc ) : bool
ResetEffects ( Terraria.NPC npc ) : void
ScaleExpertStats ( Terraria.NPC npc, int numPlayers, float bossLifeScale ) : void
SetDefaults ( Terraria.NPC npc ) : void
SetupShop ( int type, Chest shop, int &nextSlot ) : void
SetupTravelShop ( int shop, int &nextSlot ) : void
SpawnNPC ( int npc, int tileX, int tileY ) : void
StrikeNPC ( Terraria.NPC npc, double &damage, int defense, float &knockback, int hitDirection, bool &crit ) : bool
TownNPCAttackCooldown ( Terraria.NPC npc, int &cooldown, int &randExtraCooldown ) : void
TownNPCAttackMagic ( Terraria.NPC npc, float &auraLightMultiplier ) : void
TownNPCAttackProj ( Terraria.NPC npc, int &projType, int &attackDelay ) : void
TownNPCAttackProjSpeed ( Terraria.NPC npc, float &multiplier, float &gravityCorrection, float &randomOffset ) : void
TownNPCAttackShoot ( Terraria.NPC npc, bool &inBetweenShots ) : void
TownNPCAttackStrength ( Terraria.NPC npc, int &damage, float &knockback ) : void
TownNPCAttackSwing ( Terraria.NPC npc, int &itemWidth, int &itemHeight ) : void
UpdateLifeRegen ( Terraria.NPC npc, int &damage ) : void

메소드 상세

AI() 공개 메소드

public AI ( Terraria.NPC npc ) : void
npc Terraria.NPC
리턴 void

Autoload() 공개 메소드

public Autoload ( string &name ) : bool
name string
리턴 bool

BossHeadRotation() 공개 메소드

public BossHeadRotation ( Terraria.NPC npc, float &rotation ) : void
npc Terraria.NPC
rotation float
리턴 void

BossHeadSlot() 공개 메소드

public BossHeadSlot ( Terraria.NPC npc, int &index ) : void
npc Terraria.NPC
index int
리턴 void

BossHeadSpriteEffects() 공개 메소드

public BossHeadSpriteEffects ( Terraria.NPC npc, SpriteEffects &spriteEffects ) : void
npc Terraria.NPC
spriteEffects SpriteEffects
리턴 void

BuffTownNPC() 공개 메소드

public BuffTownNPC ( float &damageMult, int &defense ) : void
damageMult float
defense int
리턴 void

CanBeHitByItem() 공개 메소드

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

CanBeHitByProjectile() 공개 메소드

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

CanHitNPC() 공개 메소드

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

CanHitPlayer() 공개 메소드

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

CheckActive() 공개 메소드

public CheckActive ( Terraria.NPC npc ) : bool
npc Terraria.NPC
리턴 bool

CheckDead() 공개 메소드

public CheckDead ( Terraria.NPC npc ) : bool
npc Terraria.NPC
리턴 bool

DrawEffects() 공개 메소드

public DrawEffects ( Terraria.NPC npc, Color &drawColor ) : void
npc Terraria.NPC
drawColor Color
리턴 void

DrawHealthBar() 공개 메소드

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

DrawTownAttackGun() 공개 메소드

public DrawTownAttackGun ( Terraria.NPC npc, float &scale, int &item, int &closeness ) : void
npc Terraria.NPC
scale float
item int
closeness int
리턴 void

DrawTownAttackSwing() 공개 메소드

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

EditSpawnPool() 공개 메소드

public EditSpawnPool ( float>.IDictionary pool, Terraria.ModLoader.NPCSpawnInfo spawnInfo ) : void
pool float>.IDictionary
spawnInfo Terraria.ModLoader.NPCSpawnInfo
리턴 void

EditSpawnRange() 공개 메소드

public EditSpawnRange ( Player player, int &spawnRangeX, int &spawnRangeY, int &safeRangeX, int &safeRangeY ) : void
player Terraria.Player
spawnRangeX int
spawnRangeY int
safeRangeX int
safeRangeY int
리턴 void

EditSpawnRate() 공개 메소드

public EditSpawnRate ( Player player, int &spawnRate, int &maxSpawns ) : void
player Terraria.Player
spawnRate int
maxSpawns int
리턴 void

FindFrame() 공개 메소드

public FindFrame ( Terraria.NPC npc, int frameHeight ) : void
npc Terraria.NPC
frameHeight int
리턴 void

GetAlpha() 공개 메소드

public GetAlpha ( Terraria.NPC npc, Color drawColor ) : Color?
npc Terraria.NPC
drawColor Color
리턴 Color?

GetChat() 공개 메소드

public GetChat ( Terraria.NPC npc, string &chat ) : void
npc Terraria.NPC
chat string
리턴 void

HitEffect() 공개 메소드

public HitEffect ( Terraria.NPC npc, int hitDirection, double damage ) : void
npc Terraria.NPC
hitDirection int
damage double
리턴 void

ModifyHitByItem() 공개 메소드

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

ModifyHitByProjectile() 공개 메소드

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

ModifyHitNPC() 공개 메소드

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

ModifyHitPlayer() 공개 메소드

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

NPCLoot() 공개 메소드

public NPCLoot ( Terraria.NPC npc ) : void
npc Terraria.NPC
리턴 void

OnHitByItem() 공개 메소드

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

OnHitByProjectile() 공개 메소드

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

OnHitNPC() 공개 메소드

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

OnHitPlayer() 공개 메소드

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

PostAI() 공개 메소드

public PostAI ( Terraria.NPC npc ) : void
npc Terraria.NPC
리턴 void

PostDraw() 공개 메소드

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

PreAI() 공개 메소드

public PreAI ( Terraria.NPC npc ) : bool
npc Terraria.NPC
리턴 bool

PreDraw() 공개 메소드

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

PreNPCLoot() 공개 메소드

public PreNPCLoot ( Terraria.NPC npc ) : bool
npc Terraria.NPC
리턴 bool

ResetEffects() 공개 메소드

public ResetEffects ( Terraria.NPC npc ) : void
npc Terraria.NPC
리턴 void

ScaleExpertStats() 공개 메소드

public ScaleExpertStats ( Terraria.NPC npc, int numPlayers, float bossLifeScale ) : void
npc Terraria.NPC
numPlayers int
bossLifeScale float
리턴 void

SetDefaults() 공개 메소드

public SetDefaults ( Terraria.NPC npc ) : void
npc Terraria.NPC
리턴 void

SetupShop() 공개 메소드

public SetupShop ( int type, Chest shop, int &nextSlot ) : void
type int
shop Terraria.Chest
nextSlot int
리턴 void

SetupTravelShop() 공개 메소드

public SetupTravelShop ( int shop, int &nextSlot ) : void
shop int
nextSlot int
리턴 void

SpawnNPC() 공개 메소드

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

StrikeNPC() 공개 메소드

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

TownNPCAttackCooldown() 공개 메소드

public TownNPCAttackCooldown ( Terraria.NPC npc, int &cooldown, int &randExtraCooldown ) : void
npc Terraria.NPC
cooldown int
randExtraCooldown int
리턴 void

TownNPCAttackMagic() 공개 메소드

public TownNPCAttackMagic ( Terraria.NPC npc, float &auraLightMultiplier ) : void
npc Terraria.NPC
auraLightMultiplier float
리턴 void

TownNPCAttackProj() 공개 메소드

public TownNPCAttackProj ( Terraria.NPC npc, int &projType, int &attackDelay ) : void
npc Terraria.NPC
projType int
attackDelay int
리턴 void

TownNPCAttackProjSpeed() 공개 메소드

public TownNPCAttackProjSpeed ( Terraria.NPC npc, float &multiplier, float &gravityCorrection, float &randomOffset ) : void
npc Terraria.NPC
multiplier float
gravityCorrection float
randomOffset float
리턴 void

TownNPCAttackShoot() 공개 메소드

public TownNPCAttackShoot ( Terraria.NPC npc, bool &inBetweenShots ) : void
npc Terraria.NPC
inBetweenShots bool
리턴 void

TownNPCAttackStrength() 공개 메소드

public TownNPCAttackStrength ( Terraria.NPC npc, int &damage, float &knockback ) : void
npc Terraria.NPC
damage int
knockback float
리턴 void

TownNPCAttackSwing() 공개 메소드

public TownNPCAttackSwing ( Terraria.NPC npc, int &itemWidth, int &itemHeight ) : void
npc Terraria.NPC
itemWidth int
itemHeight int
리턴 void

UpdateLifeRegen() 공개 메소드

public UpdateLifeRegen ( Terraria.NPC npc, int &damage ) : void
npc Terraria.NPC
damage int
리턴 void