C# Class Terraria.ModLoader.ModProjectile

Afficher le fichier Open project: bluemagic123/tModLoader Class Usage Examples

Méthodes publiques

Свойство Type Description
aiType int
cooldownSlot int
drawHeldProjInFrontOfHeldItemAndArms bool
drawOffsetX int
drawOriginOffsetX float
drawOriginOffsetY int

Méthodes publiques

Méthode Description
AI ( ) : void
Autoload ( string &name, string &texture ) : bool
CanCutTiles ( ) : bool?
CanDamage ( ) : bool
CanHitNPC ( Terraria.NPC target ) : bool?
CanHitPlayer ( Player target ) : bool
CanHitPvp ( Player target ) : bool
CanUseGrapple ( Player player ) : bool?
Colliding ( Rectangle projHitbox, Rectangle targetHitbox ) : bool?
DrawBehind ( int index, List drawCacheProjsBehindNPCsAndTiles, List drawCacheProjsBehindNPCs, List drawCacheProjsBehindProjectiles, List drawCacheProjsOverWiresUI ) : void
GetAlpha ( Color lightColor ) : Color?
GrappleRange ( ) : float
GrappleRetreatSpeed ( Player player, float &speed ) : void
Kill ( int timeLeft ) : void
MinionContactDamage ( ) : bool
ModProjectile ( ) : System
ModifyHitNPC ( Terraria.NPC target, int &damage, float &knockback, bool &crit, int &hitDirection ) : void
ModifyHitPlayer ( Player target, int &damage, bool &crit ) : void
ModifyHitPvp ( Player target, int &damage, bool &crit ) : void
NumGrappleHooks ( Player player, int &numHooks ) : void
OnHitNPC ( Terraria.NPC target, int damage, float knockback, bool crit ) : void
OnHitPlayer ( Player target, int damage, bool crit ) : void
OnHitPvp ( Player target, int damage, bool crit ) : void
OnTileCollide ( Vector2 oldVelocity ) : bool
PostAI ( ) : void
PostDraw ( SpriteBatch spriteBatch, Color lightColor ) : void
PreAI ( ) : bool
PreDraw ( SpriteBatch spriteBatch, Color lightColor ) : bool
PreDrawExtras ( SpriteBatch spriteBatch ) : bool
PreKill ( int timeLeft ) : bool
ReceiveExtraAI ( BinaryReader reader ) : void
SendExtraAI ( BinaryWriter writer ) : void
SetDefaults ( ) : void
ShouldUpdatePosition ( ) : bool
SingleGrappleHook ( Player player ) : bool?
TileCollideStyle ( int &width, int &height, bool &fallThrough ) : void
UseGrapple ( Player player, int &type ) : void

Private Methods

Méthode Description
SetupProjectile ( Projectile projectile ) : void

Method Details

AI() public méthode

public AI ( ) : void
Résultat void

Autoload() public méthode

public Autoload ( string &name, string &texture ) : bool
name string
texture string
Résultat bool

CanCutTiles() public méthode

public CanCutTiles ( ) : bool?
Résultat bool?

CanDamage() public méthode

public CanDamage ( ) : bool
Résultat bool

CanHitNPC() public méthode

public CanHitNPC ( Terraria.NPC target ) : bool?
target Terraria.NPC
Résultat bool?

CanHitPlayer() public méthode

public CanHitPlayer ( Player target ) : bool
target Terraria.Player
Résultat bool

CanHitPvp() public méthode

public CanHitPvp ( Player target ) : bool
target Terraria.Player
Résultat bool

CanUseGrapple() public méthode

public CanUseGrapple ( Player player ) : bool?
player Terraria.Player
Résultat bool?

Colliding() public méthode

public Colliding ( Rectangle projHitbox, Rectangle targetHitbox ) : bool?
projHitbox Microsoft.Xna.Framework.Rectangle
targetHitbox Microsoft.Xna.Framework.Rectangle
Résultat bool?

DrawBehind() public méthode

public DrawBehind ( int index, List drawCacheProjsBehindNPCsAndTiles, List drawCacheProjsBehindNPCs, List drawCacheProjsBehindProjectiles, List drawCacheProjsOverWiresUI ) : void
index int
drawCacheProjsBehindNPCsAndTiles List
drawCacheProjsBehindNPCs List
drawCacheProjsBehindProjectiles List
drawCacheProjsOverWiresUI List
Résultat void

GetAlpha() public méthode

public GetAlpha ( Color lightColor ) : Color?
lightColor Color
Résultat Color?

GrappleRange() public méthode

public GrappleRange ( ) : float
Résultat float

GrappleRetreatSpeed() public méthode

public GrappleRetreatSpeed ( Player player, float &speed ) : void
player Terraria.Player
speed float
Résultat void

Kill() public méthode

public Kill ( int timeLeft ) : void
timeLeft int
Résultat void

MinionContactDamage() public méthode

public MinionContactDamage ( ) : bool
Résultat bool

ModProjectile() public méthode

public ModProjectile ( ) : System
Résultat System

ModifyHitNPC() public méthode

public ModifyHitNPC ( Terraria.NPC target, int &damage, float &knockback, bool &crit, int &hitDirection ) : void
target Terraria.NPC
damage int
knockback float
crit bool
hitDirection int
Résultat void

ModifyHitPlayer() public méthode

public ModifyHitPlayer ( Player target, int &damage, bool &crit ) : void
target Terraria.Player
damage int
crit bool
Résultat void

ModifyHitPvp() public méthode

public ModifyHitPvp ( Player target, int &damage, bool &crit ) : void
target Terraria.Player
damage int
crit bool
Résultat void

NumGrappleHooks() public méthode

public NumGrappleHooks ( Player player, int &numHooks ) : void
player Terraria.Player
numHooks int
Résultat void

OnHitNPC() public méthode

public OnHitNPC ( Terraria.NPC target, int damage, float knockback, bool crit ) : void
target Terraria.NPC
damage int
knockback float
crit bool
Résultat void

OnHitPlayer() public méthode

public OnHitPlayer ( Player target, int damage, bool crit ) : void
target Terraria.Player
damage int
crit bool
Résultat void

OnHitPvp() public méthode

public OnHitPvp ( Player target, int damage, bool crit ) : void
target Terraria.Player
damage int
crit bool
Résultat void

OnTileCollide() public méthode

public OnTileCollide ( Vector2 oldVelocity ) : bool
oldVelocity Vector2
Résultat bool

PostAI() public méthode

public PostAI ( ) : void
Résultat void

PostDraw() public méthode

public PostDraw ( SpriteBatch spriteBatch, Color lightColor ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
lightColor Color
Résultat void

PreAI() public méthode

public PreAI ( ) : bool
Résultat bool

PreDraw() public méthode

public PreDraw ( SpriteBatch spriteBatch, Color lightColor ) : bool
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
lightColor Color
Résultat bool

PreDrawExtras() public méthode

public PreDrawExtras ( SpriteBatch spriteBatch ) : bool
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat bool

PreKill() public méthode

public PreKill ( int timeLeft ) : bool
timeLeft int
Résultat bool

ReceiveExtraAI() public méthode

public ReceiveExtraAI ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

SendExtraAI() public méthode

public SendExtraAI ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

SetDefaults() public méthode

public SetDefaults ( ) : void
Résultat void

ShouldUpdatePosition() public méthode

public ShouldUpdatePosition ( ) : bool
Résultat bool

SingleGrappleHook() public méthode

public SingleGrappleHook ( Player player ) : bool?
player Terraria.Player
Résultat bool?

TileCollideStyle() public méthode

public TileCollideStyle ( int &width, int &height, bool &fallThrough ) : void
width int
height int
fallThrough bool
Résultat void

UseGrapple() public méthode

public UseGrapple ( Player player, int &type ) : void
player Terraria.Player
type int
Résultat void

Property Details

aiType public_oe property

public int aiType
Résultat int

cooldownSlot public_oe property

public int cooldownSlot
Résultat int

drawHeldProjInFrontOfHeldItemAndArms public_oe property

public bool drawHeldProjInFrontOfHeldItemAndArms
Résultat bool

drawOffsetX public_oe property

public int drawOffsetX
Résultat int

drawOriginOffsetX public_oe property

public float drawOriginOffsetX
Résultat float

drawOriginOffsetY public_oe property

public int drawOriginOffsetY
Résultat int