C# 클래스 Terraria.ModLoader.ItemLoader

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

Private Properties

프로퍼티 타입 설명
AnimatedItemFrame Microsoft.Xna.Framework.Rectangle
DrawAnimatedItem void
GeneralPrefix bool
GetItemInfo ItemInfo
IsModItem bool
ItemLoader System
MagicPrefix bool
MeleePrefix bool
RangedPrefix bool
ReadNetGlobalOrder void
ReserveItemID int
ResizeArrays void
SetupItem void
SetupItemInfo void
Unload void
WeaponPrefix bool
WriteNetGlobalOrder void

공개 메소드들

메소드 설명
AltFunctionUse ( Item item, Player player ) : bool
AnglerChat ( bool turningInFish, bool anglerQuestFinished, int type, string &chat, string &catchLocation ) : void
ArmorArmGlowMask ( int slot, Player drawPlayer, float shadow, int &glowMask, Color &color ) : void
ArmorSetShadows ( Player player ) : void
AutoLightSelect ( Item item, bool &dryTorch, bool &wetTorch, bool &glowstick ) : void
CanEquipAccessory ( Item item, int slot ) : bool
CanHitNPC ( Item item, Player player, Terraria.NPC target ) : bool?
CanHitPvp ( Item item, Player player, Player target ) : bool
CanRightClick ( Item item ) : bool
CanUseItem ( Item item, Player player ) : bool
CaughtFishStack ( Item item ) : void
CheckProjOnSwing ( Player player, Item item ) : bool
ConsumeAmmo ( Item item, Item ammo, Player player ) : bool
ConsumeItem ( Item item, Player player ) : bool
DrawArmorColor ( EquipType type, int slot, Player drawPlayer, float shadow, Color &color, int &glowMask, Color &glowMaskColor ) : void
DrawBody ( Player player ) : bool
DrawHair ( Player player, bool &drawHair, bool &drawAltHair ) : void
DrawHands ( Player player, bool &drawHands, bool &drawArms ) : void
DrawHead ( Player player ) : bool
DrawLegs ( Player player ) : bool
ExtractinatorUse ( int &resultType, int &resultStack, int extractType ) : void
GetAlpha ( Item item, Color lightColor ) : Color?
GetItem ( int type ) : ModItem
GetWeaponDamage ( Item item, Player player, int &damage ) : void
GetWeaponKnockback ( Item item, Player player, float &knockback ) : void
GetWing ( Player player ) : Item
GrabRange ( Item item, Player player, int &grabRange ) : void
GrabStyle ( Item item, Player player ) : bool
HoldItem ( Item item, Player player ) : void
HoldItemFrame ( Item item, Player player ) : bool
HoldStyle ( Item item, Player player ) : void
HoldoutOffset ( float gravDir, int type, Vector2 &offset ) : void
HoldoutOrigin ( Player player, Vector2 &origin ) : void
HorizontalWingSpeeds ( Player player ) : void
IsAnglerQuestAvailable ( int itemID, bool &notAvailable ) : void
IsModBossBag ( Item item ) : bool
MeleeEffects ( Item item, Player player, Rectangle hitbox ) : void
ModifyHitNPC ( Item item, Player player, NPC target, int &damage, float &knockBack, bool &crit ) : void
ModifyHitPvp ( Item item, Player player, Player target, int &damage, bool &crit ) : void
ModifyTooltips ( Item item, int &numTooltips, string names, string &text, bool &modifier, bool &badModifier, int &oneDropLogo, Color &overrideColor ) : void
NeedsModSaving ( Item item ) : bool
OnCraft ( Item item, Recipe recipe ) : void
OnHitNPC ( Item item, Player player, NPC target, int damage, float knockBack, bool crit ) : void
OnHitPvp ( Item item, Player player, Player target, int damage, bool crit ) : void
OnPickup ( Item item, Player player ) : bool
OpenBossBag ( int type, Player player, int &npc ) : void
OpenVanillaBag ( string context, Player player, int arg ) : void
PostDrawInInventory ( Item item, SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale ) : void
PostDrawInWorld ( Item item, SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI ) : void
PostReforge ( Item item ) : void
PostUpdate ( Item item ) : void
PreDrawInInventory ( Item item, SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale ) : bool
PreDrawInWorld ( Item item, SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float &rotation, float &scale, int whoAmI ) : bool
PreOpenVanillaBag ( string context, Player player, int arg ) : bool
PreReforge ( Item item ) : void
PreUpdateVanitySet ( Player player ) : void
RightClick ( Item item, Player player ) : void
SetMatch ( int armorSlot, int type, bool male, int &equipSlot, bool &robes ) : void
Shoot ( Item item, Player player, Vector2 &position, float &speedX, float &speedY, int &type, int &damage, float &knockBack ) : bool
Update ( Item item, float &gravity, float &maxFallSpeed ) : void
UpdateAccessory ( Item item, Player player, bool hideVisual ) : void
UpdateArmorSet ( Player player, Item head, Item body, Item legs ) : void
UpdateEquip ( Item item, Player player ) : void
UpdateInventory ( Item item, Player player ) : void
UpdateVanity ( Player player ) : void
UpdateVanitySet ( Player player ) : void
UseItem ( Item item, Player player ) : bool
UseItemFrame ( Item item, Player player ) : bool
UseItemHitbox ( Item item, Player player, Rectangle &hitbox, bool &noHitbox ) : void
UseStyle ( Item item, Player player ) : void
VerticalWingSpeeds ( Player player, float &ascentWhenFalling, float &ascentWhenRising, float &maxCanAscendMultiplier, float &maxAscentMultiplier, float &constantAscend ) : void
WingUpdate ( Player player, bool inUse ) : void

비공개 메소드들

메소드 설명
AnimatedItemFrame ( Item item ) : Rectangle
DrawAnimatedItem ( Item item, int whoAmI, Color color, Color alpha, float rotation, float scale ) : void
GeneralPrefix ( Item item ) : bool
GetItemInfo ( Item item, Mod mod, string name ) : ItemInfo
IsModItem ( Item item ) : bool
ItemLoader ( ) : System
MagicPrefix ( Item item ) : bool
MeleePrefix ( Item item ) : bool
RangedPrefix ( Item item ) : bool
ReadNetGlobalOrder ( BinaryReader r ) : void
ReserveItemID ( ) : int
ResizeArrays ( ) : void
SetupItem ( Item item ) : void
SetupItemInfo ( Item item ) : void
Unload ( ) : void
WeaponPrefix ( Item item ) : bool
WriteNetGlobalOrder ( BinaryWriter w ) : void

메소드 상세

AltFunctionUse() 공개 정적인 메소드

public static AltFunctionUse ( Item item, Player player ) : bool
item Item
player Terraria.Player
리턴 bool

AnglerChat() 공개 정적인 메소드

public static AnglerChat ( bool turningInFish, bool anglerQuestFinished, int type, string &chat, string &catchLocation ) : void
turningInFish bool
anglerQuestFinished bool
type int
chat string
catchLocation string
리턴 void

ArmorArmGlowMask() 공개 정적인 메소드

public static ArmorArmGlowMask ( int slot, Player drawPlayer, float shadow, int &glowMask, Color &color ) : void
slot int
drawPlayer Terraria.Player
shadow float
glowMask int
color Color
리턴 void

ArmorSetShadows() 공개 정적인 메소드

public static ArmorSetShadows ( Player player ) : void
player Terraria.Player
리턴 void

AutoLightSelect() 공개 정적인 메소드

public static AutoLightSelect ( Item item, bool &dryTorch, bool &wetTorch, bool &glowstick ) : void
item Item
dryTorch bool
wetTorch bool
glowstick bool
리턴 void

CanEquipAccessory() 공개 정적인 메소드

public static CanEquipAccessory ( Item item, int slot ) : bool
item Item
slot int
리턴 bool

CanHitNPC() 공개 정적인 메소드

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

CanHitPvp() 공개 정적인 메소드

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

CanRightClick() 공개 정적인 메소드

public static CanRightClick ( Item item ) : bool
item Item
리턴 bool

CanUseItem() 공개 정적인 메소드

public static CanUseItem ( Item item, Player player ) : bool
item Item
player Terraria.Player
리턴 bool

CaughtFishStack() 공개 정적인 메소드

public static CaughtFishStack ( Item item ) : void
item Item
리턴 void

CheckProjOnSwing() 공개 정적인 메소드

public static CheckProjOnSwing ( Player player, Item item ) : bool
player Terraria.Player
item Item
리턴 bool

ConsumeAmmo() 공개 정적인 메소드

public static ConsumeAmmo ( Item item, Item ammo, Player player ) : bool
item Item
ammo Item
player Terraria.Player
리턴 bool

ConsumeItem() 공개 정적인 메소드

public static ConsumeItem ( Item item, Player player ) : bool
item Item
player Terraria.Player
리턴 bool

DrawArmorColor() 공개 정적인 메소드

public static DrawArmorColor ( EquipType type, int slot, Player drawPlayer, float shadow, Color &color, int &glowMask, Color &glowMaskColor ) : void
type EquipType
slot int
drawPlayer Terraria.Player
shadow float
color Color
glowMask int
glowMaskColor Color
리턴 void

DrawBody() 공개 정적인 메소드

public static DrawBody ( Player player ) : bool
player Terraria.Player
리턴 bool

DrawHair() 공개 정적인 메소드

public static DrawHair ( Player player, bool &drawHair, bool &drawAltHair ) : void
player Terraria.Player
drawHair bool
drawAltHair bool
리턴 void

DrawHands() 공개 정적인 메소드

public static DrawHands ( Player player, bool &drawHands, bool &drawArms ) : void
player Terraria.Player
drawHands bool
drawArms bool
리턴 void

DrawHead() 공개 정적인 메소드

public static DrawHead ( Player player ) : bool
player Terraria.Player
리턴 bool

DrawLegs() 공개 정적인 메소드

public static DrawLegs ( Player player ) : bool
player Terraria.Player
리턴 bool

ExtractinatorUse() 공개 정적인 메소드

public static ExtractinatorUse ( int &resultType, int &resultStack, int extractType ) : void
resultType int
resultStack int
extractType int
리턴 void

GetAlpha() 공개 정적인 메소드

public static GetAlpha ( Item item, Color lightColor ) : Color?
item Item
lightColor Color
리턴 Color?

GetItem() 공개 정적인 메소드

public static GetItem ( int type ) : ModItem
type int
리턴 ModItem

GetWeaponDamage() 공개 정적인 메소드

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

GetWeaponKnockback() 공개 정적인 메소드

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

GetWing() 공개 정적인 메소드

public static GetWing ( Player player ) : Item
player Terraria.Player
리턴 Item

GrabRange() 공개 정적인 메소드

public static GrabRange ( Item item, Player player, int &grabRange ) : void
item Item
player Player
grabRange int
리턴 void

GrabStyle() 공개 정적인 메소드

public static GrabStyle ( Item item, Player player ) : bool
item Item
player Player
리턴 bool

HoldItem() 공개 정적인 메소드

public static HoldItem ( Item item, Player player ) : void
item Item
player Player
리턴 void

HoldItemFrame() 공개 정적인 메소드

public static HoldItemFrame ( Item item, Player player ) : bool
item Item
player Player
리턴 bool

HoldStyle() 공개 정적인 메소드

public static HoldStyle ( Item item, Player player ) : void
item Item
player Player
리턴 void

HoldoutOffset() 공개 정적인 메소드

public static HoldoutOffset ( float gravDir, int type, Vector2 &offset ) : void
gravDir float
type int
offset Vector2
리턴 void

HoldoutOrigin() 공개 정적인 메소드

public static HoldoutOrigin ( Player player, Vector2 &origin ) : void
player Player
origin Vector2
리턴 void

HorizontalWingSpeeds() 공개 정적인 메소드

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

IsAnglerQuestAvailable() 공개 정적인 메소드

public static IsAnglerQuestAvailable ( int itemID, bool &notAvailable ) : void
itemID int
notAvailable bool
리턴 void

IsModBossBag() 공개 정적인 메소드

public static IsModBossBag ( Item item ) : bool
item Item
리턴 bool

MeleeEffects() 공개 정적인 메소드

public static MeleeEffects ( Item item, Player player, Rectangle hitbox ) : void
item Item
player Player
hitbox Rectangle
리턴 void

ModifyHitNPC() 공개 정적인 메소드

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

ModifyHitPvp() 공개 정적인 메소드

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

ModifyTooltips() 공개 정적인 메소드

public static ModifyTooltips ( Item item, int &numTooltips, string names, string &text, bool &modifier, bool &badModifier, int &oneDropLogo, Color &overrideColor ) : void
item Item
numTooltips int
names string
text string
modifier bool
badModifier bool
oneDropLogo int
overrideColor Color
리턴 void

NeedsModSaving() 공개 정적인 메소드

public static NeedsModSaving ( Item item ) : bool
item Item
리턴 bool

OnCraft() 공개 정적인 메소드

public static OnCraft ( Item item, Recipe recipe ) : void
item Item
recipe Recipe
리턴 void

OnHitNPC() 공개 정적인 메소드

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

OnHitPvp() 공개 정적인 메소드

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

OnPickup() 공개 정적인 메소드

public static OnPickup ( Item item, Player player ) : bool
item Item
player Player
리턴 bool

OpenBossBag() 공개 정적인 메소드

public static OpenBossBag ( int type, Player player, int &npc ) : void
type int
player Player
npc int
리턴 void

OpenVanillaBag() 공개 정적인 메소드

public static OpenVanillaBag ( string context, Player player, int arg ) : void
context string
player Player
arg int
리턴 void

PostDrawInInventory() 공개 정적인 메소드

public static PostDrawInInventory ( Item item, SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale ) : void
item Item
spriteBatch SpriteBatch
position Vector2
frame Rectangle
drawColor Color
itemColor Color
origin Vector2
scale float
리턴 void

PostDrawInWorld() 공개 정적인 메소드

public static PostDrawInWorld ( Item item, SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI ) : void
item Item
spriteBatch SpriteBatch
lightColor Color
alphaColor Color
rotation float
scale float
whoAmI int
리턴 void

PostReforge() 공개 정적인 메소드

public static PostReforge ( Item item ) : void
item Item
리턴 void

PostUpdate() 공개 정적인 메소드

public static PostUpdate ( Item item ) : void
item Item
리턴 void

PreDrawInInventory() 공개 정적인 메소드

public static PreDrawInInventory ( Item item, SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale ) : bool
item Item
spriteBatch SpriteBatch
position Vector2
frame Rectangle
drawColor Color
itemColor Color
origin Vector2
scale float
리턴 bool

PreDrawInWorld() 공개 정적인 메소드

public static PreDrawInWorld ( Item item, SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float &rotation, float &scale, int whoAmI ) : bool
item Item
spriteBatch SpriteBatch
lightColor Color
alphaColor Color
rotation float
scale float
whoAmI int
리턴 bool

PreOpenVanillaBag() 공개 정적인 메소드

public static PreOpenVanillaBag ( string context, Player player, int arg ) : bool
context string
player Player
arg int
리턴 bool

PreReforge() 공개 정적인 메소드

public static PreReforge ( Item item ) : void
item Item
리턴 void

PreUpdateVanitySet() 공개 정적인 메소드

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

RightClick() 공개 정적인 메소드

public static RightClick ( Item item, Player player ) : void
item Item
player Player
리턴 void

SetMatch() 공개 정적인 메소드

public static SetMatch ( int armorSlot, int type, bool male, int &equipSlot, bool &robes ) : void
armorSlot int
type int
male bool
equipSlot int
robes bool
리턴 void

Shoot() 공개 정적인 메소드

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

Update() 공개 정적인 메소드

public static Update ( Item item, float &gravity, float &maxFallSpeed ) : void
item Item
gravity float
maxFallSpeed float
리턴 void

UpdateAccessory() 공개 정적인 메소드

public static UpdateAccessory ( Item item, Player player, bool hideVisual ) : void
item Item
player Player
hideVisual bool
리턴 void

UpdateArmorSet() 공개 정적인 메소드

public static UpdateArmorSet ( Player player, Item head, Item body, Item legs ) : void
player Player
head Item
body Item
legs Item
리턴 void

UpdateEquip() 공개 정적인 메소드

public static UpdateEquip ( Item item, Player player ) : void
item Item
player Player
리턴 void

UpdateInventory() 공개 정적인 메소드

public static UpdateInventory ( Item item, Player player ) : void
item Item
player Player
리턴 void

UpdateVanity() 공개 정적인 메소드

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

UpdateVanitySet() 공개 정적인 메소드

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

UseItem() 공개 정적인 메소드

public static UseItem ( Item item, Player player ) : bool
item Item
player Player
리턴 bool

UseItemFrame() 공개 정적인 메소드

public static UseItemFrame ( Item item, Player player ) : bool
item Item
player Player
리턴 bool

UseItemHitbox() 공개 정적인 메소드

public static UseItemHitbox ( Item item, Player player, Rectangle &hitbox, bool &noHitbox ) : void
item Item
player Player
hitbox Rectangle
noHitbox bool
리턴 void

UseStyle() 공개 정적인 메소드

public static UseStyle ( Item item, Player player ) : void
item Item
player Player
리턴 void

VerticalWingSpeeds() 공개 정적인 메소드

public static VerticalWingSpeeds ( Player player, float &ascentWhenFalling, float &ascentWhenRising, float &maxCanAscendMultiplier, float &maxAscentMultiplier, float &constantAscend ) : void
player Player
ascentWhenFalling float
ascentWhenRising float
maxCanAscendMultiplier float
maxAscentMultiplier float
constantAscend float
리턴 void

WingUpdate() 공개 정적인 메소드

public static WingUpdate ( Player player, bool inUse ) : void
player Player
inUse bool
리턴 void