C# Class Terraria.ModLoader.ProjectileLoader

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

Private Properties

Свойство Type Description
DrawBehind void
GetProjectileInfo ProjectileInfo
IsModProjectile bool
ReserveProjectileID int
ResizeArrays void
SetupProjectile void
SetupProjectileInfo void
Unload void

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static AI ( Projectile projectile ) : void
projectile Projectile
Résultat void

CanCutTiles() public static méthode

public static CanCutTiles ( Projectile projectile ) : bool?
projectile Projectile
Résultat bool?

CanDamage() public static méthode

public static CanDamage ( Projectile projectile ) : bool
projectile Projectile
Résultat bool

CanHitNPC() public static méthode

public static CanHitNPC ( Projectile projectile, NPC target ) : bool?
projectile Projectile
target NPC
Résultat bool?

CanHitPlayer() public static méthode

public static CanHitPlayer ( Projectile projectile, Player target ) : bool
projectile Projectile
target Player
Résultat bool

CanHitPvp() public static méthode

public static CanHitPvp ( Projectile projectile, Player target ) : bool
projectile Projectile
target Player
Résultat bool

CanUseGrapple() public static méthode

public static CanUseGrapple ( int type, Player player ) : bool?
type int
player Player
Résultat bool?

Colliding() public static méthode

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

DrawHeldProjInFrontOfHeldItemAndArms() public static méthode

public static DrawHeldProjInFrontOfHeldItemAndArms ( Projectile projectile, bool &flag ) : void
projectile Projectile
flag bool
Résultat void

DrawOffset() public static méthode

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

GetAlpha() public static méthode

public static GetAlpha ( Projectile projectile, Color lightColor ) : Color?
projectile Projectile
lightColor Color
Résultat Color?

GetProjectile() public static méthode

public static GetProjectile ( int type ) : ModProjectile
type int
Résultat ModProjectile

GrappleOutOfRange() public static méthode

public static GrappleOutOfRange ( float distance, Projectile projectile ) : bool
distance float
projectile Projectile
Résultat bool

GrappleRetreatSpeed() public static méthode

public static GrappleRetreatSpeed ( Projectile projectile, Player player, float &speed ) : void
projectile Projectile
player Player
speed float
Résultat void

Kill() public static méthode

public static Kill ( Projectile projectile, int timeLeft ) : void
projectile Projectile
timeLeft int
Résultat void

MinionContactDamage() public static méthode

public static MinionContactDamage ( Projectile projectile ) : bool
projectile Projectile
Résultat bool

ModifyHitNPC() public static méthode

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
Résultat void

ModifyHitPlayer() public static méthode

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

ModifyHitPvp() public static méthode

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

NumGrappleHooks() public static méthode

public static NumGrappleHooks ( Projectile projectile, Player player, int &numHooks ) : void
projectile Projectile
player Player
numHooks int
Résultat void

OnHitNPC() public static méthode

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

OnHitPlayer() public static méthode

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

OnHitPvp() public static méthode

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

OnTileCollide() public static méthode

public static OnTileCollide ( Projectile projectile, Vector2 oldVelocity ) : bool
projectile Projectile
oldVelocity Vector2
Résultat bool

PostAI() public static méthode

public static PostAI ( Projectile projectile ) : void
projectile Projectile
Résultat void

PostDraw() public static méthode

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

PreAI() public static méthode

public static PreAI ( Projectile projectile ) : bool
projectile Projectile
Résultat bool

PreDraw() public static méthode

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

PreDrawExtras() public static méthode

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

PreKill() public static méthode

public static PreKill ( Projectile projectile, int timeLeft ) : bool
projectile Projectile
timeLeft int
Résultat bool

ProjectileAI() public static méthode

public static ProjectileAI ( Projectile projectile ) : void
projectile Projectile
Résultat void

ReadExtraAI() public static méthode

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

ReceiveExtraAI() public static méthode

public static ReceiveExtraAI ( Projectile projectile, byte extraAI ) : void
projectile Projectile
extraAI byte
Résultat void

SendExtraAI() public static méthode

public static SendExtraAI ( Projectile projectile, BitsByte &flags ) : byte[]
projectile Projectile
flags BitsByte
Résultat byte[]

ShouldUpdatePosition() public static méthode

public static ShouldUpdatePosition ( Projectile projectile ) : bool
projectile Projectile
Résultat bool

SingleGrappleHook() public static méthode

public static SingleGrappleHook ( int type, Player player ) : bool?
type int
player Player
Résultat bool?

TileCollideStyle() public static méthode

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

UseGrapple() public static méthode

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