C# 클래스 Terraria.ModLoader.ModPlayer

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

공개 메소드들

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

비공개 메소드들

메소드 설명
CreateFor ( Player newPlayer ) : ModPlayer

메소드 상세

AnglerQuestReward() 공개 메소드

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

Autoload() 공개 메소드

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

CanBeHitByNPC() 공개 메소드

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

CanBeHitByProjectile() 공개 메소드

public CanBeHitByProjectile ( Projectile proj ) : bool
proj Projectile
리턴 bool

CanHitNPC() 공개 메소드

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

CanHitNPCWithProj() 공개 메소드

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

CanHitPvp() 공개 메소드

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

CanHitPvpWithProj() 공개 메소드

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

CatchFish() 공개 메소드

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

ConsumeAmmo() 공개 메소드

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

CopyCustomBiomesTo() 공개 메소드

public CopyCustomBiomesTo ( Player other ) : void
other Player
리턴 void

CustomBiomesMatch() 공개 메소드

public CustomBiomesMatch ( Player other ) : bool
other Player
리턴 bool

DrawEffects() 공개 메소드

public 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 FrameEffects ( ) : void
리턴 void

GetDyeTraderReward() 공개 메소드

public GetDyeTraderReward ( List rewardPool ) : void
rewardPool List
리턴 void

GetFishingLevel() 공개 메소드

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

GetMapBackgroundImage() 공개 메소드

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

GetWeaponDamage() 공개 메소드

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

GetWeaponKnockback() 공개 메소드

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

Hurt() 공개 메소드

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

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

Kill() 공개 메소드

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

Load() 공개 메소드

public Load ( TagCompound tag ) : void
tag TagCompound
리턴 void

LoadLegacy() 공개 메소드

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

MeleeEffects() 공개 메소드

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

ModifyDrawHeadLayers() 공개 메소드

public ModifyDrawHeadLayers ( List layers ) : void
layers List
리턴 void

ModifyDrawInfo() 공개 메소드

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

ModifyDrawLayers() 공개 메소드

public ModifyDrawLayers ( List layers ) : void
layers List
리턴 void

ModifyHitByNPC() 공개 메소드

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

ModifyHitByProjectile() 공개 메소드

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

ModifyHitNPC() 공개 메소드

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

ModifyHitNPCWithProj() 공개 메소드

public 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 ModifyHitPvp ( System.Item item, Player target, int &damage, bool &crit ) : void
item System.Item
target Player
damage int
crit bool
리턴 void

ModifyHitPvpWithProj() 공개 메소드

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

ModifyScreenPosition() 공개 메소드

public ModifyScreenPosition ( ) : void
리턴 void

ModifyZoom() 공개 메소드

public ModifyZoom ( float &zoom ) : void
zoom float
리턴 void

NaturalLifeRegen() 공개 메소드

public NaturalLifeRegen ( float &regen ) : void
regen float
리턴 void

OnEnterWorld() 공개 메소드

public OnEnterWorld ( Player player ) : void
player Player
리턴 void

OnHitAnything() 공개 메소드

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

OnHitByNPC() 공개 메소드

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

OnHitByProjectile() 공개 메소드

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

OnHitNPC() 공개 메소드

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

OnHitNPCWithProj() 공개 메소드

public 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 OnHitPvp ( System.Item item, Player target, int damage, bool crit ) : void
item System.Item
target Player
damage int
crit bool
리턴 void

OnHitPvpWithProj() 공개 메소드

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

PlayerConnect() 공개 메소드

public PlayerConnect ( Player player ) : void
player Player
리턴 void

PlayerDisconnect() 공개 메소드

public PlayerDisconnect ( Player player ) : void
player Player
리턴 void

PostHurt() 공개 메소드

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

PostItemCheck() 공개 메소드

public PostItemCheck ( ) : void
리턴 void

PostUpdate() 공개 메소드

public PostUpdate ( ) : void
리턴 void

PostUpdateBuffs() 공개 메소드

public PostUpdateBuffs ( ) : void
리턴 void

PostUpdateEquips() 공개 메소드

public PostUpdateEquips ( ) : void
리턴 void

PostUpdateMiscEffects() 공개 메소드

public PostUpdateMiscEffects ( ) : void
리턴 void

PostUpdateRunSpeeds() 공개 메소드

public PostUpdateRunSpeeds ( ) : void
리턴 void

PreHurt() 공개 메소드

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

PreItemCheck() 공개 메소드

public PreItemCheck ( ) : bool
리턴 bool

PreKill() 공개 메소드

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

PreSaveCustomData() 공개 메소드

public PreSaveCustomData ( ) : void
리턴 void

PreUpdate() 공개 메소드

public PreUpdate ( ) : void
리턴 void

PreUpdateBuffs() 공개 메소드

public PreUpdateBuffs ( ) : void
리턴 void

ProcessTriggers() 공개 메소드

public ProcessTriggers ( TriggersSet triggersSet ) : void
triggersSet TriggersSet
리턴 void

ReceiveCustomBiomes() 공개 메소드

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

ResetEffects() 공개 메소드

public ResetEffects ( ) : void
리턴 void

Save() 공개 메소드

public Save ( ) : TagCompound
리턴 TagCompound

SendClientChanges() 공개 메소드

public SendClientChanges ( ModPlayer clientPlayer ) : void
clientPlayer ModPlayer
리턴 void

SendCustomBiomes() 공개 메소드

public SendCustomBiomes ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
리턴 void

SetControls() 공개 메소드

public SetControls ( ) : void
리턴 void

SetupStartInventory() 공개 메소드

public SetupStartInventory ( IList items ) : void
items IList
리턴 void

Shoot() 공개 메소드

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

SyncPlayer() 공개 메소드

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

TypeEquals() 공개 메소드

public TypeEquals ( ModPlayer other ) : bool
other ModPlayer
리턴 bool

UpdateBadLifeRegen() 공개 메소드

public UpdateBadLifeRegen ( ) : void
리턴 void

UpdateBiomeVisuals() 공개 메소드

public UpdateBiomeVisuals ( ) : void
리턴 void

UpdateBiomes() 공개 메소드

public UpdateBiomes ( ) : void
리턴 void

UpdateDead() 공개 메소드

public UpdateDead ( ) : void
리턴 void

UpdateEquips() 공개 메소드

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

UpdateLifeRegen() 공개 메소드

public UpdateLifeRegen ( ) : void
리턴 void

UpdateVanityAccessories() 공개 메소드

public UpdateVanityAccessories ( ) : void
리턴 void

clientClone() 공개 메소드

public clientClone ( ModPlayer clientClone ) : void
clientClone ModPlayer
리턴 void