C# Class Terraria.ModLoader.ProjectileLoader

Mostra file Open project: bluemagic123/tModLoader Class Usage Examples

Private Properties

Property Type Description
DrawBehind void
GetProjectileInfo ProjectileInfo
IsModProjectile bool
ReserveProjectileID int
ResizeArrays void
SetupProjectile void
SetupProjectileInfo void
Unload void

Public Methods

Method Description
AI ( Projectile projectile ) : void
CanCutTiles ( Projectile projectile ) : bool?
CanDamage ( Projectile projectile ) : bool
CanHitNPC ( Projectile projectile, NPC target ) : bool?
CanHitPlayer ( Projectile projectile, Player target ) : bool
CanHitPvp ( Projectile projectile, Player target ) : bool
CanUseGrapple ( int type, Player player ) : bool?
Colliding ( Projectile projectile, Rectangle projHitbox, Rectangle targetHitbox ) : bool?
DrawHeldProjInFrontOfHeldItemAndArms ( Projectile projectile, bool &flag ) : void
DrawOffset ( Projectile projectile, int &offsetX, int &offsetY, float &originX ) : void
GetAlpha ( Projectile projectile, Color lightColor ) : Color?
GetProjectile ( int type ) : ModProjectile
GrappleOutOfRange ( float distance, Projectile projectile ) : bool
GrappleRetreatSpeed ( Projectile projectile, Player player, float &speed ) : void
Kill ( Projectile projectile, int timeLeft ) : void
MinionContactDamage ( Projectile projectile ) : bool
ModifyHitNPC ( Projectile projectile, NPC target, int &damage, float &knockback, bool &crit, int &hitDirection ) : void
ModifyHitPlayer ( Projectile projectile, Player target, int &damage, bool &crit ) : void
ModifyHitPvp ( Projectile projectile, Player target, int &damage, bool &crit ) : void
NumGrappleHooks ( Projectile projectile, Player player, int &numHooks ) : void
OnHitNPC ( Projectile projectile, NPC target, int damage, float knockback, bool crit ) : void
OnHitPlayer ( Projectile projectile, Player target, int damage, bool crit ) : void
OnHitPvp ( Projectile projectile, Player target, int damage, bool crit ) : void
OnTileCollide ( Projectile projectile, Vector2 oldVelocity ) : bool
PostAI ( Projectile projectile ) : void
PostDraw ( Projectile projectile, SpriteBatch spriteBatch, Color lightColor ) : void
PreAI ( Projectile projectile ) : bool
PreDraw ( Projectile projectile, SpriteBatch spriteBatch, Color lightColor ) : bool
PreDrawExtras ( Projectile projectile, SpriteBatch spriteBatch ) : bool
PreKill ( Projectile projectile, int timeLeft ) : bool
ProjectileAI ( Projectile projectile ) : void
ReadExtraAI ( BinaryReader reader, BitsByte flags ) : byte[]
ReceiveExtraAI ( Projectile projectile, byte extraAI ) : void
SendExtraAI ( Projectile projectile, BitsByte &flags ) : byte[]
ShouldUpdatePosition ( Projectile projectile ) : bool
SingleGrappleHook ( int type, Player player ) : bool?
TileCollideStyle ( Projectile projectile, int &width, int &height, bool &fallThrough ) : void
UseGrapple ( Player player, int &type ) : void

Private Methods

Method Description
DrawBehind ( Projectile projectile, int index, List drawCacheProjsBehindNPCsAndTiles, List drawCacheProjsBehindNPCs, List drawCacheProjsBehindProjectiles, List drawCacheProjsOverWiresUI ) : void
GetProjectileInfo ( Projectile projectile, Mod mod, string name ) : ProjectileInfo
IsModProjectile ( Projectile projectile ) : bool
ReserveProjectileID ( ) : int
ResizeArrays ( ) : void
SetupProjectile ( Projectile projectile ) : void
SetupProjectileInfo ( Projectile projectile ) : void
Unload ( ) : void

Method Details

AI() public static method

public static AI ( Projectile projectile ) : void
projectile Projectile
return void

CanCutTiles() public static method

public static CanCutTiles ( Projectile projectile ) : bool?
projectile Projectile
return bool?

CanDamage() public static method

public static CanDamage ( Projectile projectile ) : bool
projectile Projectile
return bool

CanHitNPC() public static method

public static CanHitNPC ( Projectile projectile, NPC target ) : bool?
projectile Projectile
target NPC
return bool?

CanHitPlayer() public static method

public static CanHitPlayer ( Projectile projectile, Player target ) : bool
projectile Projectile
target Player
return bool

CanHitPvp() public static method

public static CanHitPvp ( Projectile projectile, Player target ) : bool
projectile Projectile
target Player
return bool

CanUseGrapple() public static method

public static CanUseGrapple ( int type, Player player ) : bool?
type int
player Player
return bool?

Colliding() public static method

public static Colliding ( Projectile projectile, Rectangle projHitbox, Rectangle targetHitbox ) : bool?
projectile Projectile
projHitbox Microsoft.Xna.Framework.Rectangle
targetHitbox Microsoft.Xna.Framework.Rectangle
return bool?

DrawHeldProjInFrontOfHeldItemAndArms() public static method

public static DrawHeldProjInFrontOfHeldItemAndArms ( Projectile projectile, bool &flag ) : void
projectile Projectile
flag bool
return void

DrawOffset() public static method

public static DrawOffset ( Projectile projectile, int &offsetX, int &offsetY, float &originX ) : void
projectile Projectile
offsetX int
offsetY int
originX float
return void

GetAlpha() public static method

public static GetAlpha ( Projectile projectile, Color lightColor ) : Color?
projectile Projectile
lightColor Color
return Color?

GetProjectile() public static method

public static GetProjectile ( int type ) : ModProjectile
type int
return ModProjectile

GrappleOutOfRange() public static method

public static GrappleOutOfRange ( float distance, Projectile projectile ) : bool
distance float
projectile Projectile
return bool

GrappleRetreatSpeed() public static method

public static GrappleRetreatSpeed ( Projectile projectile, Player player, float &speed ) : void
projectile Projectile
player Player
speed float
return void

Kill() public static method

public static Kill ( Projectile projectile, int timeLeft ) : void
projectile Projectile
timeLeft int
return void

MinionContactDamage() public static method

public static MinionContactDamage ( Projectile projectile ) : bool
projectile Projectile
return bool

ModifyHitNPC() public static method

public static ModifyHitNPC ( Projectile projectile, NPC target, int &damage, float &knockback, bool &crit, int &hitDirection ) : void
projectile Projectile
target NPC
damage int
knockback float
crit bool
hitDirection int
return void

ModifyHitPlayer() public static method

public static ModifyHitPlayer ( Projectile projectile, Player target, int &damage, bool &crit ) : void
projectile Projectile
target Player
damage int
crit bool
return void

ModifyHitPvp() public static method

public static ModifyHitPvp ( Projectile projectile, Player target, int &damage, bool &crit ) : void
projectile Projectile
target Player
damage int
crit bool
return void

NumGrappleHooks() public static method

public static NumGrappleHooks ( Projectile projectile, Player player, int &numHooks ) : void
projectile Projectile
player Player
numHooks int
return void

OnHitNPC() public static method

public static OnHitNPC ( Projectile projectile, NPC target, int damage, float knockback, bool crit ) : void
projectile Projectile
target NPC
damage int
knockback float
crit bool
return void

OnHitPlayer() public static method

public static OnHitPlayer ( Projectile projectile, Player target, int damage, bool crit ) : void
projectile Projectile
target Player
damage int
crit bool
return void

OnHitPvp() public static method

public static OnHitPvp ( Projectile projectile, Player target, int damage, bool crit ) : void
projectile Projectile
target Player
damage int
crit bool
return void

OnTileCollide() public static method

public static OnTileCollide ( Projectile projectile, Vector2 oldVelocity ) : bool
projectile Projectile
oldVelocity Vector2
return bool

PostAI() public static method

public static PostAI ( Projectile projectile ) : void
projectile Projectile
return void

PostDraw() public static method

public static PostDraw ( Projectile projectile, SpriteBatch spriteBatch, Color lightColor ) : void
projectile Projectile
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
lightColor Color
return void

PreAI() public static method

public static PreAI ( Projectile projectile ) : bool
projectile Projectile
return bool

PreDraw() public static method

public static PreDraw ( Projectile projectile, SpriteBatch spriteBatch, Color lightColor ) : bool
projectile Projectile
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
lightColor Color
return bool

PreDrawExtras() public static method

public static PreDrawExtras ( Projectile projectile, SpriteBatch spriteBatch ) : bool
projectile Projectile
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return bool

PreKill() public static method

public static PreKill ( Projectile projectile, int timeLeft ) : bool
projectile Projectile
timeLeft int
return bool

ProjectileAI() public static method

public static ProjectileAI ( Projectile projectile ) : void
projectile Projectile
return void

ReadExtraAI() public static method

public static ReadExtraAI ( BinaryReader reader, BitsByte flags ) : byte[]
reader System.IO.BinaryReader
flags BitsByte
return byte[]

ReceiveExtraAI() public static method

public static ReceiveExtraAI ( Projectile projectile, byte extraAI ) : void
projectile Projectile
extraAI byte
return void

SendExtraAI() public static method

public static SendExtraAI ( Projectile projectile, BitsByte &flags ) : byte[]
projectile Projectile
flags BitsByte
return byte[]

ShouldUpdatePosition() public static method

public static ShouldUpdatePosition ( Projectile projectile ) : bool
projectile Projectile
return bool

SingleGrappleHook() public static method

public static SingleGrappleHook ( int type, Player player ) : bool?
type int
player Player
return bool?

TileCollideStyle() public static method

public static TileCollideStyle ( Projectile projectile, int &width, int &height, bool &fallThrough ) : void
projectile Projectile
width int
height int
fallThrough bool
return void

UseGrapple() public static method

public static UseGrapple ( Player player, int &type ) : void
player Player
type int
return void