TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ NPCSegment()

Terraria.GameContent.Animations.Segments.NPCSegment.NPCSegment ( int targetTime,
int npcId,
Vector2 anchorOffset,
Vector2 normalizedNPCHitboxOrigin )
inline

Definition at line 279 of file Segments.cs.

281 {
282 //IL_0076: Unknown result type (might be due to invalid IL or missing references)
283 //IL_0077: Unknown result type (might be due to invalid IL or missing references)
284 //IL_007d: Unknown result type (might be due to invalid IL or missing references)
285 //IL_007f: Unknown result type (might be due to invalid IL or missing references)
286 _npc = new NPC();
287 _npc.SetDefaults(npcId, new NPCSpawnParams
288 {
289 gameModeData = Main.RegisteredGameModes[0],
290 playerCountForMultiplayerDifficultyOverride = 1,
291 sizeScaleOverride = null,
292 strengthMultiplierOverride = 1f
293 });
294 _npc.IsABestiaryIconDummy = true;
297 }
void SetDefaults(int Type, NPCSpawnParams spawnparams=default(NPCSpawnParams))
Definition NPC.cs:3378

References Terraria.GameContent.Animations.Segments.NPCSegment._anchorOffset, Terraria.GameContent.Animations.Segments.NPCSegment._normalizedOriginForHitbox, Terraria.GameContent.Animations.Segments.NPCSegment._npc, Terraria.Main.RegisteredGameModes, and Terraria.NPC.SetDefaults().

+ Here is the call graph for this function: