C# 클래스 Terraria.ModLoader.PlayerHooks

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

공개 메소드들

메소드 설명
AnglerQuestReward ( Player player, float rareMultiplier, List rewardItems ) : void
CanBeHitByNPC ( Player player, NPC npc, int &cooldownSlot ) : bool
CanBeHitByProjectile ( Player player, Projectile proj ) : bool
CanHitNPC ( Player player, System.Item item, NPC target ) : bool?
CanHitNPCWithProj ( Projectile proj, NPC target ) : bool?
CanHitPvp ( Player player, System.Item item, Player target ) : bool
CanHitPvpWithProj ( Projectile proj, Player target ) : bool
CatchFish ( Player player, System.Item fishingRod, int power, int liquidType, int poolSize, int worldLayer, int questFish, int &caughtType, bool &junk ) : void
ConsumeAmmo ( Player player, System.Item weapon, System.Item ammo ) : bool
CopyCustomBiomesTo ( Player player, Player other ) : void
CustomBiomesMatch ( Player player, Player other ) : bool
DrawEffects ( Terraria.ModLoader.PlayerDrawInfo drawInfo, float &r, float &g, float &b, float &a, bool &fullBright ) : void
FrameEffects ( Player player ) : void
GetDrawHeadLayers ( Player drawPlayer ) : List
GetDrawLayers ( Player drawPlayer ) : List
GetDyeTraderReward ( Player player, List rewardPool ) : void
GetFishingLevel ( Player player, System.Item fishingRod, System.Item bait, int &fishingLevel ) : void
GetMapBackgroundImage ( Player player ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetWeaponDamage ( Player player, System.Item item, int &damage ) : void
GetWeaponKnockback ( Player player, System.Item item, float &knockback ) : void
Hurt ( Player player, bool pvp, bool quiet, double damage, int hitDirection, bool crit ) : void
Kill ( Player player, double damage, int hitDirection, bool pvp, PlayerDeathReason damageSource ) : void
MeleeEffects ( Player player, System.Item item, Rectangle hitbox ) : void
ModifyDrawInfo ( Terraria.ModLoader.PlayerDrawInfo &drawInfo ) : void
ModifyHitByNPC ( Player player, NPC npc, int &damage, bool &crit ) : void
ModifyHitByProjectile ( Player player, Projectile proj, int &damage, bool &crit ) : void
ModifyHitNPC ( Player player, System.Item item, NPC target, int &damage, float &knockback, bool &crit ) : void
ModifyHitNPCWithProj ( Projectile proj, NPC target, int &damage, float &knockback, bool &crit, int &hitDirection ) : void
ModifyHitPvp ( Player player, System.Item item, Player target, int &damage, bool &crit ) : void
ModifyHitPvpWithProj ( Projectile proj, Player target, int &damage, bool &crit ) : void
ModifyScreenPosition ( Player player ) : void
ModifyZoom ( Player player, float &zoom ) : void
NaturalLifeRegen ( Player player, float &regen ) : void
OnEnterWorld ( int playerIndex ) : void
OnHitAnything ( Player player, float x, float y, System.Entity victim ) : void
OnHitByNPC ( Player player, NPC npc, int damage, bool crit ) : void
OnHitByProjectile ( Player player, Projectile proj, int damage, bool crit ) : void
OnHitNPC ( Player player, System.Item item, NPC target, int damage, float knockback, bool crit ) : void
OnHitNPCWithProj ( Projectile proj, NPC target, int damage, float knockback, bool crit ) : void
OnHitPvp ( Player player, System.Item item, Player target, int damage, bool crit ) : void
OnHitPvpWithProj ( Projectile proj, Player target, int damage, bool crit ) : void
PlayerConnect ( int playerIndex ) : void
PlayerDisconnect ( int playerIndex ) : void
PostHurt ( Player player, bool pvp, bool quiet, double damage, int hitDirection, bool crit ) : void
PostItemCheck ( Player player ) : void
PostUpdate ( Player player ) : void
PostUpdateBuffs ( Player player ) : void
PostUpdateEquips ( Player player ) : void
PostUpdateMiscEffects ( Player player ) : void
PostUpdateRunSpeeds ( Player player ) : void
PreHurt ( Player player, bool pvp, bool quiet, int &damage, int &hitDirection, bool &crit, bool &customDamage, bool &playSound, bool &genGore, PlayerDeathReason &damageSource ) : bool
PreItemCheck ( Player player ) : bool
PreKill ( Player player, double damage, int hitDirection, bool pvp, bool &playSound, bool &genGore, PlayerDeathReason &damageSource ) : bool
PreUpdate ( Player player ) : void
PreUpdateBuffs ( Player player ) : void
ProcessTriggers ( Player player, TriggersSet triggersSet ) : void
ReceiveCustomBiomes ( Player player, BinaryReader reader ) : void
ResetEffects ( Player player ) : void
SendClientChanges ( Player player, Player clientPlayer ) : void
SendCustomBiomes ( Player player, BinaryWriter writer ) : void
SetControls ( Player player ) : void
SetStartInventory ( Player player ) : void
SetStartInventory ( Player player, IList items ) : void
SetupStartInventory ( Player player ) : IList
Shoot ( Player player, System.Item item, Vector2 &position, float &speedX, float &speedY, int &type, int &damage, float &knockBack ) : bool
SyncPlayer ( Player player, int toWho, int fromWho, bool newPlayer ) : void
UpdateBadLifeRegen ( Player player ) : void
UpdateBiomeVisuals ( Player player ) : void
UpdateBiomes ( Player player ) : void
UpdateDead ( Player player ) : void
UpdateEquips ( Player player, bool &wallSpeedBuff, bool &tileSpeedBuff, bool &tileRangeBuff ) : void
UpdateLifeRegen ( Player player ) : void
UpdateVanityAccessories ( Player player ) : void
clientClone ( Player player, Player clientClone ) : void

비공개 메소드들

메소드 설명
Add ( ModPlayer player ) : void
GetModPlayer ( Player player, Mod mod, string name ) : ModPlayer
SendCustomBiomes ( ModPlayer modPlayer, BinaryWriter writer ) : bool
SetupPlayer ( Player player ) : void
Unload ( ) : void

메소드 상세

AnglerQuestReward() 공개 정적인 메소드

public static AnglerQuestReward ( Player player, float rareMultiplier, List rewardItems ) : void
player Player
rareMultiplier float
rewardItems List
리턴 void

CanBeHitByNPC() 공개 정적인 메소드

public static CanBeHitByNPC ( Player player, NPC npc, int &cooldownSlot ) : bool
player Player
npc NPC
cooldownSlot int
리턴 bool

CanBeHitByProjectile() 공개 정적인 메소드

public static CanBeHitByProjectile ( Player player, Projectile proj ) : bool
player Player
proj Projectile
리턴 bool

CanHitNPC() 공개 정적인 메소드

public static CanHitNPC ( Player player, System.Item item, NPC target ) : bool?
player Player
item System.Item
target NPC
리턴 bool?

CanHitNPCWithProj() 공개 정적인 메소드

public static CanHitNPCWithProj ( Projectile proj, NPC target ) : bool?
proj Projectile
target NPC
리턴 bool?

CanHitPvp() 공개 정적인 메소드

public static CanHitPvp ( Player player, System.Item item, Player target ) : bool
player Player
item System.Item
target Player
리턴 bool

CanHitPvpWithProj() 공개 정적인 메소드

public static CanHitPvpWithProj ( Projectile proj, Player target ) : bool
proj Projectile
target Player
리턴 bool

CatchFish() 공개 정적인 메소드

public static CatchFish ( Player player, System.Item fishingRod, int power, int liquidType, int poolSize, int worldLayer, int questFish, int &caughtType, bool &junk ) : void
player Player
fishingRod System.Item
power int
liquidType int
poolSize int
worldLayer int
questFish int
caughtType int
junk bool
리턴 void

ConsumeAmmo() 공개 정적인 메소드

public static ConsumeAmmo ( Player player, System.Item weapon, System.Item ammo ) : bool
player Player
weapon System.Item
ammo System.Item
리턴 bool

CopyCustomBiomesTo() 공개 정적인 메소드

public static CopyCustomBiomesTo ( Player player, Player other ) : void
player Player
other Player
리턴 void

CustomBiomesMatch() 공개 정적인 메소드

public static CustomBiomesMatch ( Player player, Player other ) : bool
player Player
other Player
리턴 bool

DrawEffects() 공개 정적인 메소드

public static DrawEffects ( Terraria.ModLoader.PlayerDrawInfo drawInfo, float &r, float &g, float &b, float &a, bool &fullBright ) : void
drawInfo Terraria.ModLoader.PlayerDrawInfo
r float
g float
b float
a float
fullBright bool
리턴 void

FrameEffects() 공개 정적인 메소드

public static FrameEffects ( Player player ) : void
player Player
리턴 void

GetDrawHeadLayers() 공개 정적인 메소드

public static GetDrawHeadLayers ( Player drawPlayer ) : List
drawPlayer Player
리턴 List

GetDrawLayers() 공개 정적인 메소드

public static GetDrawLayers ( Player drawPlayer ) : List
drawPlayer Player
리턴 List

GetDyeTraderReward() 공개 정적인 메소드

public static GetDyeTraderReward ( Player player, List rewardPool ) : void
player Player
rewardPool List
리턴 void

GetFishingLevel() 공개 정적인 메소드

public static GetFishingLevel ( Player player, System.Item fishingRod, System.Item bait, int &fishingLevel ) : void
player Player
fishingRod System.Item
bait System.Item
fishingLevel int
리턴 void

GetMapBackgroundImage() 공개 정적인 메소드

public static GetMapBackgroundImage ( Player player ) : Microsoft.Xna.Framework.Graphics.Texture2D
player Player
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

GetWeaponDamage() 공개 정적인 메소드

public static GetWeaponDamage ( Player player, System.Item item, int &damage ) : void
player Player
item System.Item
damage int
리턴 void

GetWeaponKnockback() 공개 정적인 메소드

public static GetWeaponKnockback ( Player player, System.Item item, float &knockback ) : void
player Player
item System.Item
knockback float
리턴 void

Hurt() 공개 정적인 메소드

public static Hurt ( Player player, bool pvp, bool quiet, double damage, int hitDirection, bool crit ) : void
player Player
pvp bool
quiet bool
damage double
hitDirection int
crit bool
리턴 void

Kill() 공개 정적인 메소드

public static Kill ( Player player, double damage, int hitDirection, bool pvp, PlayerDeathReason damageSource ) : void
player Player
damage double
hitDirection int
pvp bool
damageSource PlayerDeathReason
리턴 void

MeleeEffects() 공개 정적인 메소드

public static MeleeEffects ( Player player, System.Item item, Rectangle hitbox ) : void
player Player
item System.Item
hitbox Microsoft.Xna.Framework.Rectangle
리턴 void

ModifyDrawInfo() 공개 정적인 메소드

public static ModifyDrawInfo ( Terraria.ModLoader.PlayerDrawInfo &drawInfo ) : void
drawInfo Terraria.ModLoader.PlayerDrawInfo
리턴 void

ModifyHitByNPC() 공개 정적인 메소드

public static ModifyHitByNPC ( Player player, NPC npc, int &damage, bool &crit ) : void
player Player
npc NPC
damage int
crit bool
리턴 void

ModifyHitByProjectile() 공개 정적인 메소드

public static ModifyHitByProjectile ( Player player, Projectile proj, int &damage, bool &crit ) : void
player Player
proj Projectile
damage int
crit bool
리턴 void

ModifyHitNPC() 공개 정적인 메소드

public static ModifyHitNPC ( Player player, System.Item item, NPC target, int &damage, float &knockback, bool &crit ) : void
player Player
item System.Item
target NPC
damage int
knockback float
crit bool
리턴 void

ModifyHitNPCWithProj() 공개 정적인 메소드

public static ModifyHitNPCWithProj ( Projectile proj, NPC target, int &damage, float &knockback, bool &crit, int &hitDirection ) : void
proj Projectile
target NPC
damage int
knockback float
crit bool
hitDirection int
리턴 void

ModifyHitPvp() 공개 정적인 메소드

public static ModifyHitPvp ( Player player, System.Item item, Player target, int &damage, bool &crit ) : void
player Player
item System.Item
target Player
damage int
crit bool
리턴 void

ModifyHitPvpWithProj() 공개 정적인 메소드

public static ModifyHitPvpWithProj ( Projectile proj, Player target, int &damage, bool &crit ) : void
proj Projectile
target Player
damage int
crit bool
리턴 void

ModifyScreenPosition() 공개 정적인 메소드

public static ModifyScreenPosition ( Player player ) : void
player Player
리턴 void

ModifyZoom() 공개 정적인 메소드

public static ModifyZoom ( Player player, float &zoom ) : void
player Player
zoom float
리턴 void

NaturalLifeRegen() 공개 정적인 메소드

public static NaturalLifeRegen ( Player player, float &regen ) : void
player Player
regen float
리턴 void

OnEnterWorld() 공개 정적인 메소드

public static OnEnterWorld ( int playerIndex ) : void
playerIndex int
리턴 void

OnHitAnything() 공개 정적인 메소드

public static OnHitAnything ( Player player, float x, float y, System.Entity victim ) : void
player Player
x float
y float
victim System.Entity
리턴 void

OnHitByNPC() 공개 정적인 메소드

public static OnHitByNPC ( Player player, NPC npc, int damage, bool crit ) : void
player Player
npc NPC
damage int
crit bool
리턴 void

OnHitByProjectile() 공개 정적인 메소드

public static OnHitByProjectile ( Player player, Projectile proj, int damage, bool crit ) : void
player Player
proj Projectile
damage int
crit bool
리턴 void

OnHitNPC() 공개 정적인 메소드

public static OnHitNPC ( Player player, System.Item item, NPC target, int damage, float knockback, bool crit ) : void
player Player
item System.Item
target NPC
damage int
knockback float
crit bool
리턴 void

OnHitNPCWithProj() 공개 정적인 메소드

public static OnHitNPCWithProj ( Projectile proj, NPC target, int damage, float knockback, bool crit ) : void
proj Projectile
target NPC
damage int
knockback float
crit bool
리턴 void

OnHitPvp() 공개 정적인 메소드

public static OnHitPvp ( Player player, System.Item item, Player target, int damage, bool crit ) : void
player Player
item System.Item
target Player
damage int
crit bool
리턴 void

OnHitPvpWithProj() 공개 정적인 메소드

public static OnHitPvpWithProj ( Projectile proj, Player target, int damage, bool crit ) : void
proj Projectile
target Player
damage int
crit bool
리턴 void

PlayerConnect() 공개 정적인 메소드

public static PlayerConnect ( int playerIndex ) : void
playerIndex int
리턴 void

PlayerDisconnect() 공개 정적인 메소드

public static PlayerDisconnect ( int playerIndex ) : void
playerIndex int
리턴 void

PostHurt() 공개 정적인 메소드

public static PostHurt ( Player player, bool pvp, bool quiet, double damage, int hitDirection, bool crit ) : void
player Player
pvp bool
quiet bool
damage double
hitDirection int
crit bool
리턴 void

PostItemCheck() 공개 정적인 메소드

public static PostItemCheck ( Player player ) : void
player Player
리턴 void

PostUpdate() 공개 정적인 메소드

public static PostUpdate ( Player player ) : void
player Player
리턴 void

PostUpdateBuffs() 공개 정적인 메소드

public static PostUpdateBuffs ( Player player ) : void
player Player
리턴 void

PostUpdateEquips() 공개 정적인 메소드

public static PostUpdateEquips ( Player player ) : void
player Player
리턴 void

PostUpdateMiscEffects() 공개 정적인 메소드

public static PostUpdateMiscEffects ( Player player ) : void
player Player
리턴 void

PostUpdateRunSpeeds() 공개 정적인 메소드

public static PostUpdateRunSpeeds ( Player player ) : void
player Player
리턴 void

PreHurt() 공개 정적인 메소드

public static PreHurt ( Player player, bool pvp, bool quiet, int &damage, int &hitDirection, bool &crit, bool &customDamage, bool &playSound, bool &genGore, PlayerDeathReason &damageSource ) : bool
player Player
pvp bool
quiet bool
damage int
hitDirection int
crit bool
customDamage bool
playSound bool
genGore bool
damageSource PlayerDeathReason
리턴 bool

PreItemCheck() 공개 정적인 메소드

public static PreItemCheck ( Player player ) : bool
player Player
리턴 bool

PreKill() 공개 정적인 메소드

public static PreKill ( Player player, double damage, int hitDirection, bool pvp, bool &playSound, bool &genGore, PlayerDeathReason &damageSource ) : bool
player Player
damage double
hitDirection int
pvp bool
playSound bool
genGore bool
damageSource PlayerDeathReason
리턴 bool

PreUpdate() 공개 정적인 메소드

public static PreUpdate ( Player player ) : void
player Player
리턴 void

PreUpdateBuffs() 공개 정적인 메소드

public static PreUpdateBuffs ( Player player ) : void
player Player
리턴 void

ProcessTriggers() 공개 정적인 메소드

public static ProcessTriggers ( Player player, TriggersSet triggersSet ) : void
player Player
triggersSet TriggersSet
리턴 void

ReceiveCustomBiomes() 공개 정적인 메소드

public static ReceiveCustomBiomes ( Player player, BinaryReader reader ) : void
player Player
reader System.IO.BinaryReader
리턴 void

ResetEffects() 공개 정적인 메소드

public static ResetEffects ( Player player ) : void
player Player
리턴 void

SendClientChanges() 공개 정적인 메소드

public static SendClientChanges ( Player player, Player clientPlayer ) : void
player Player
clientPlayer Player
리턴 void

SendCustomBiomes() 공개 정적인 메소드

public static SendCustomBiomes ( Player player, BinaryWriter writer ) : void
player Player
writer System.IO.BinaryWriter
리턴 void

SetControls() 공개 정적인 메소드

public static SetControls ( Player player ) : void
player Player
리턴 void

SetStartInventory() 공개 정적인 메소드

public static SetStartInventory ( Player player ) : void
player Player
리턴 void

SetStartInventory() 공개 정적인 메소드

public static SetStartInventory ( Player player, IList items ) : void
player Player
items IList
리턴 void

SetupStartInventory() 공개 정적인 메소드

public static SetupStartInventory ( Player player ) : IList
player Player
리턴 IList

Shoot() 공개 정적인 메소드

public static Shoot ( Player player, System.Item item, Vector2 &position, float &speedX, float &speedY, int &type, int &damage, float &knockBack ) : bool
player Player
item System.Item
position Vector2
speedX float
speedY float
type int
damage int
knockBack float
리턴 bool

SyncPlayer() 공개 정적인 메소드

public static SyncPlayer ( Player player, int toWho, int fromWho, bool newPlayer ) : void
player Player
toWho int
fromWho int
newPlayer bool
리턴 void

UpdateBadLifeRegen() 공개 정적인 메소드

public static UpdateBadLifeRegen ( Player player ) : void
player Player
리턴 void

UpdateBiomeVisuals() 공개 정적인 메소드

public static UpdateBiomeVisuals ( Player player ) : void
player Player
리턴 void

UpdateBiomes() 공개 정적인 메소드

public static UpdateBiomes ( Player player ) : void
player Player
리턴 void

UpdateDead() 공개 정적인 메소드

public static UpdateDead ( Player player ) : void
player Player
리턴 void

UpdateEquips() 공개 정적인 메소드

public static UpdateEquips ( Player player, bool &wallSpeedBuff, bool &tileSpeedBuff, bool &tileRangeBuff ) : void
player Player
wallSpeedBuff bool
tileSpeedBuff bool
tileRangeBuff bool
리턴 void

UpdateLifeRegen() 공개 정적인 메소드

public static UpdateLifeRegen ( Player player ) : void
player Player
리턴 void

UpdateVanityAccessories() 공개 정적인 메소드

public static UpdateVanityAccessories ( Player player ) : void
player Player
리턴 void

clientClone() 공개 정적인 메소드

public static clientClone ( Player player, Player clientClone ) : void
player Player
clientClone Player
리턴 void