This serves as the central class from which NPC-related functions are carried out. It also stores a list of mod NPCs by ID.
More...
|
| static T | AddModHook< T > (T hook) |
| |
| static ModNPC | GetNPC (int type) |
| | Gets the ModNPC template instance corresponding to the specified type (not the clone/new instance which gets added to NPCs as the game is played).
|
| |
| static void | ApplyDifficultyAndPlayerScaling (NPC npc, int numPlayers, float balance, float bossAdjustment) |
| |
| static void | SetBestiary (NPC npc, BestiaryDatabase database, BestiaryEntry bestiaryEntry) |
| |
| static void | ModifyTownNPCProfile (NPC npc, ref ITownNPCProfile profile) |
| |
| static void | ResetEffects (NPC npc) |
| |
| static void | NPCAI (NPC npc) |
| |
| static bool | PreAI (NPC npc) |
| |
| static void | AI (NPC npc) |
| |
| static void | PostAI (NPC npc) |
| |
| static void | SendExtraAI (BinaryWriter writer, byte[] extraAI) |
| |
| static byte[] | WriteExtraAI (NPC npc) |
| |
| static byte[] | ReadExtraAI (BinaryReader reader) |
| |
| static void | ReceiveExtraAI (NPC npc, byte[] extraAI) |
| |
| static void | FindFrame (NPC npc, int frameHeight) |
| |
| static void | HitEffect (NPC npc, in NPC.HitInfo hit) |
| |
| static void | UpdateLifeRegen (NPC npc, ref int damage) |
| |
| static bool | CheckActive (NPC npc) |
| |
| static bool | CheckDead (NPC npc) |
| |
| static bool | SpecialOnKill (NPC npc) |
| |
| static bool | PreKill (NPC npc) |
| |
| static void | OnKill (NPC npc) |
| |
| static void | ModifyNPCLoot (NPC npc, NPCLoot npcLoot) |
| |
| static void | ModifyGlobalLoot (GlobalLoot globalLoot) |
| |
| static void | BossLoot (NPC npc, ref string name, ref int potionType) |
| |
| static ? bool | CanFallThroughPlatforms (NPC npc) |
| |
| static ? bool | CanBeCaughtBy (NPC npc, Item item, Player player) |
| |
| static void | OnCaughtBy (NPC npc, Player player, Item item, bool failed) |
| |
| static ? int | PickEmote (NPC npc, Player closestPlayer, List< int > emoteList, WorldUIAnchor anchor) |
| |
| static bool | CanHitPlayer (NPC npc, Player target, ref int cooldownSlot) |
| |
| static void | ModifyHitPlayer (NPC npc, Player target, ref Player.HurtModifiers modifiers) |
| |
| static void | OnHitPlayer (NPC npc, Player target, Player.HurtInfo hurtInfo) |
| |
| static bool | CanHitNPC (NPC npc, NPC target) |
| |
| static void | ModifyHitNPC (NPC npc, NPC target, ref NPC.HitModifiers modifiers) |
| |
| static void | OnHitNPC (NPC npc, NPC target, in NPC.HitInfo hit) |
| |
| static ? bool | CanBeHitByItem (NPC npc, Player player, Item item) |
| |
| static ? bool | CanCollideWithPlayerMeleeAttack (NPC npc, Player player, Item item, Rectangle meleeAttackHitbox) |
| |
| static void | ModifyHitByItem (NPC npc, Player player, Item item, ref NPC.HitModifiers modifiers) |
| |
| static void | OnHitByItem (NPC npc, Player player, Item item, in NPC.HitInfo hit, int damageDone) |
| |
| static ? bool | CanBeHitByProjectile (NPC npc, Projectile projectile) |
| |
| static void | ModifyHitByProjectile (NPC npc, Projectile projectile, ref NPC.HitModifiers modifiers) |
| |
| static void | OnHitByProjectile (NPC npc, Projectile projectile, in NPC.HitInfo hit, int damageDone) |
| |
| static void | ModifyIncomingHit (NPC npc, ref NPC.HitModifiers modifiers) |
| |
| static void | BossHeadSlot (NPC npc, ref int index) |
| |
| static void | BossHeadRotation (NPC npc, ref float rotation) |
| |
| static void | BossHeadSpriteEffects (NPC npc, ref SpriteEffects spriteEffects) |
| |
| static ? Color | GetAlpha (NPC npc, Color lightColor) |
| |
| static void | DrawEffects (NPC npc, ref Color drawColor) |
| |
| static bool | PreDraw (NPC npc, SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) |
| |
| static void | PostDraw (NPC npc, SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) |
| |
| static bool | DrawHealthBar (NPC npc, ref float scale) |
| |
| static void | EditSpawnRate (Player player, ref int spawnRate, ref int maxSpawns) |
| |
| static void | EditSpawnRange (Player player, ref int spawnRangeX, ref int spawnRangeY, ref int safeRangeX, ref int safeRangeY) |
| |
| static ? int | ChooseSpawn (NPCSpawnInfo spawnInfo) |
| |
| static int | SpawnNPC (int type, int tileX, int tileY) |
| |
| static void | CanTownNPCSpawn (int numTownNPCs) |
| |
| static bool | CheckConditions (int type) |
| |
| static string | ModifyTypeName (NPC npc, string typeName) |
| |
| static void | ModifyHoverBoundingBox (NPC npc, ref Rectangle boundingBox) |
| |
| static List< string > | ModifyNPCNameList (NPC npc, List< string > nameList) |
| |
| static bool | UsesPartyHat (NPC npc) |
| |
| static ? bool | CanChat (NPC npc) |
| |
| static void | GetChat (NPC npc, ref string chat) |
| |
| static void | SetChatButtons (ref string button, ref string button2) |
| |
| static bool | PreChatButtonClicked (bool firstButton) |
| |
| static void | OnChatButtonClicked (bool firstButton) |
| |
| static void | AddShops (int type) |
| |
| static void | ModifyShop (NPCShop shop) |
| |
| static void | ModifyActiveShop (NPC npc, string shopName, Item[] shopContents) |
| |
| static void | SetupTravelShop (int[] shop, ref int nextSlot) |
| |
| static ? bool | CanGoToStatue (NPC npc, bool toKingStatue) |
| |
| static void | OnGoToStatue (NPC npc, bool toKingStatue) |
| |
| static void | BuffTownNPC (ref float damageMult, ref int defense) |
| |
| static void | TownNPCAttackStrength (NPC npc, ref int damage, ref float knockback) |
| |
| static void | TownNPCAttackCooldown (NPC npc, ref int cooldown, ref int randExtraCooldown) |
| |
| static void | TownNPCAttackProj (NPC npc, ref int projType, ref int attackDelay) |
| |
| static void | TownNPCAttackProjSpeed (NPC npc, ref float multiplier, ref float gravityCorrection, ref float randomOffset) |
| |
| static void | TownNPCAttackShoot (NPC npc, ref bool inBetweenShots) |
| |
| static void | TownNPCAttackMagic (NPC npc, ref float auraLightMultiplier) |
| |
| static void | TownNPCAttackSwing (NPC npc, ref int itemWidth, ref int itemHeight) |
| |
| static void | DrawTownAttackGun (NPC npc, ref Texture2D item, ref Rectangle itemFrame, ref float scale, ref int horizontalHoldoutOffset) |
| |
| static void | DrawTownAttackSwing (NPC npc, ref Texture2D item, ref Rectangle itemFrame, ref int itemSize, ref float scale, ref Vector2 offset) |
| |
| static bool | ModifyCollisionData (NPC npc, Rectangle victimHitbox, ref int immunityCooldownSlot, ref float damageMultiplier, ref Rectangle npcHitbox) |
| |
| static bool | SavesAndLoads (NPC npc) |
| |
|
| delegate void | DelegateSetBestiary (NPC npc, BestiaryDatabase database, BestiaryEntry bestiaryEntry) |
| |
| delegate ITownNPCProfile | DelegateModifyTownNPCProfile (NPC npc) |
| |
| delegate void | DelegateUpdateLifeRegen (NPC npc, ref int damage) |
| |
| delegate bool | DelegateCanHitPlayer (NPC npc, Player target, ref int cooldownSlot) |
| |
| delegate void | DelegateModifyHitPlayer (NPC npc, Player target, ref Player.HurtModifiers modifiers) |
| |
| delegate void | DelegateModifyHitNPC (NPC npc, NPC target, ref NPC.HitModifiers modifiers) |
| |
| delegate void | DelegateModifyHitByItem (NPC npc, Player player, Item item, ref NPC.HitModifiers modifiers) |
| |
| delegate void | DelegateModifyHitByProjectile (NPC npc, Projectile projectile, ref NPC.HitModifiers modifiers) |
| |
| delegate void | DelegateAddModifyIncomingHit (NPC npc, ref NPC.HitModifiers modifiers) |
| |
| delegate void | DelegateBossHeadSlot (NPC npc, ref int index) |
| |
| delegate void | DelegateBossHeadRotation (NPC npc, ref float rotation) |
| |
| delegate void | DelegateBossHeadSpriteEffects (NPC npc, ref SpriteEffects spriteEffects) |
| |
| delegate void | DelegateDrawEffects (NPC npc, ref Color drawColor) |
| |
| delegate bool | DelegatePreDraw (NPC npc, SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) |
| |
| delegate void | DelegatePostDraw (NPC npc, SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) |
| |
| delegate? bool | DelegateDrawHealthBar (NPC npc, byte bhPosition, ref float scale, ref Vector2 position) |
| |
| delegate void | DelegateEditSpawnRate (Player player, ref int spawnRate, ref int maxSpawns) |
| |
| delegate void | DelegateEditSpawnRange (Player player, ref int spawnRangeX, ref int spawnRangeY, ref int safeRangeX, ref int safeRangeY) |
| |
| delegate void | DelegateModifyTypeName (NPC npc, ref string typeName) |
| |
| delegate void | DelegateModifyHoverBoundingBox (NPC npc, ref Rectangle boundingBox) |
| |
| delegate void | DelegateGetChat (NPC npc, ref string chat) |
| |
| delegate void | DelegateOnChatButtonClicked (NPC npc, bool firstButton) |
| |
| delegate void | DelegateModifyShop (NPCShop shop) |
| |
| delegate void | DelegateModifyActiveShop (NPC npc, string shopName, Item[] items) |
| |
| delegate void | DelegateSetupTravelShop (int[] shop, ref int nextSlot) |
| |
| delegate void | DelegateBuffTownNPC (ref float damageMult, ref int defense) |
| |
| delegate void | DelegateTownNPCAttackStrength (NPC npc, ref int damage, ref float knockback) |
| |
| delegate void | DelegateTownNPCAttackCooldown (NPC npc, ref int cooldown, ref int randExtraCooldown) |
| |
| delegate void | DelegateTownNPCAttackProj (NPC npc, ref int projType, ref int attackDelay) |
| |
| delegate void | DelegateTownNPCAttackProjSpeed (NPC npc, ref float multiplier, ref float gravityCorrection, ref float randomOffset) |
| |
| delegate void | DelegateTownNPCAttackShoot (NPC npc, ref bool inBetweenShots) |
| |
| delegate void | DelegateTownNPCAttackMagic (NPC npc, ref float auraLightMultiplier) |
| |
| delegate void | DelegateTownNPCAttackSwing (NPC npc, ref int itemWidth, ref int itemHeight) |
| |
| delegate void | DelegateDrawTownAttackGun (NPC npc, ref Texture2D item, ref Rectangle itemFrame, ref float scale, ref int horizontalHoldoutOffset) |
| |
| delegate void | DelegateDrawTownAttackSwing (NPC npc, ref Texture2D item, ref Rectangle itemFrame, ref int itemSize, ref float scale, ref Vector2 offset) |
| |
| delegate bool | DelegateModifyCollisionData (NPC npc, Rectangle victimHitbox, ref int immunityCooldownSlot, ref MultipliableFloat damageMultiplier, ref Rectangle npcHitbox) |
| |
| delegate bool | DelegateNeedSaving (NPC npc) |
| |
|
| static readonly List< GlobalHookList< GlobalNPC > > | hooks = new List<GlobalHookList<GlobalNPC>>() |
| |
| static readonly List< GlobalHookList< GlobalNPC > > | modHooks = new List<GlobalHookList<GlobalNPC>>() |
| |
| static GlobalHookList< GlobalNPC > | HookOnSpawn = AddHook((Expression<Func<GlobalNPC, Action<NPC, IEntitySource>>>)((GlobalNPC g) => g.OnSpawn)) |
| |
| static GlobalHookList< GlobalNPC > | HookApplyDifficultyAndPlayerScaling = AddHook((Expression<Func<GlobalNPC, Action<NPC, int, float, float>>>)((GlobalNPC g) => g.ApplyDifficultyAndPlayerScaling)) |
| |
| static GlobalHookList< GlobalNPC > | HookSetBestiary = AddHook((Expression<Func<GlobalNPC, DelegateSetBestiary>>)((GlobalNPC g) => g.SetBestiary)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyTownNPCProfile = AddHook((Expression<Func<GlobalNPC, DelegateModifyTownNPCProfile>>)((GlobalNPC g) => g.ModifyTownNPCProfile)) |
| |
| static GlobalHookList< GlobalNPC > | HookResetEffects = AddHook((Expression<Func<GlobalNPC, Action<NPC>>>)((GlobalNPC g) => g.ResetEffects)) |
| |
| static GlobalHookList< GlobalNPC > | HookPreAI = AddHook((Expression<Func<GlobalNPC, Func<NPC, bool>>>)((GlobalNPC g) => g.PreAI)) |
| |
| static GlobalHookList< GlobalNPC > | HookAI = AddHook((Expression<Func<GlobalNPC, Action<NPC>>>)((GlobalNPC g) => g.AI)) |
| |
| static GlobalHookList< GlobalNPC > | HookPostAI = AddHook((Expression<Func<GlobalNPC, Action<NPC>>>)((GlobalNPC g) => g.PostAI)) |
| |
| static GlobalHookList< GlobalNPC > | HookSendExtraAI = AddHook((Expression<Func<GlobalNPC, Action<NPC, BitWriter, BinaryWriter>>>)((GlobalNPC g) => g.SendExtraAI)) |
| |
| static GlobalHookList< GlobalNPC > | HookReceiveExtraAI = AddHook((Expression<Func<GlobalNPC, Action<NPC, BitReader, BinaryReader>>>)((GlobalNPC g) => g.ReceiveExtraAI)) |
| |
| static GlobalHookList< GlobalNPC > | HookFindFrame = AddHook((Expression<Func<GlobalNPC, Action<NPC, int>>>)((GlobalNPC g) => g.FindFrame)) |
| |
| static GlobalHookList< GlobalNPC > | HookHitEffect = AddHook((Expression<Func<GlobalNPC, Action<NPC, NPC.HitInfo>>>)((GlobalNPC g) => g.HitEffect)) |
| |
| static GlobalHookList< GlobalNPC > | HookUpdateLifeRegen = AddHook((Expression<Func<GlobalNPC, DelegateUpdateLifeRegen>>)((GlobalNPC g) => g.UpdateLifeRegen)) |
| |
| static GlobalHookList< GlobalNPC > | HookCheckActive = AddHook((Expression<Func<GlobalNPC, Func<NPC, bool>>>)((GlobalNPC g) => g.CheckActive)) |
| |
| static GlobalHookList< GlobalNPC > | HookCheckDead = AddHook((Expression<Func<GlobalNPC, Func<NPC, bool>>>)((GlobalNPC g) => g.CheckDead)) |
| |
| static GlobalHookList< GlobalNPC > | HookSpecialOnKill = AddHook((Expression<Func<GlobalNPC, Func<NPC, bool>>>)((GlobalNPC g) => g.SpecialOnKill)) |
| |
| static GlobalHookList< GlobalNPC > | HookPreKill = AddHook((Expression<Func<GlobalNPC, Func<NPC, bool>>>)((GlobalNPC g) => g.PreKill)) |
| |
| static GlobalHookList< GlobalNPC > | HookOnKill = AddHook((Expression<Func<GlobalNPC, Action<NPC>>>)((GlobalNPC g) => g.OnKill)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyNPCLoot = AddHook((Expression<Func<GlobalNPC, Action<NPC, NPCLoot>>>)((GlobalNPC g) => g.ModifyNPCLoot)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyGlobalLoot = AddHook((Expression<Func<GlobalNPC, Action<GlobalLoot>>>)((GlobalNPC g) => g.ModifyGlobalLoot)) |
| |
| static GlobalHookList< GlobalNPC > | HookCanFallThroughPlatforms = AddHook((Expression<Func<GlobalNPC, Func<NPC, bool?>>>)((GlobalNPC g) => g.CanFallThroughPlatforms)) |
| |
| static GlobalHookList< GlobalNPC > | HookCanBeCaughtBy = AddHook((Expression<Func<GlobalNPC, Func<NPC, Item, Player, bool?>>>)((GlobalNPC g) => g.CanBeCaughtBy)) |
| |
| static GlobalHookList< GlobalNPC > | HookOnCaughtBy = AddHook((Expression<Func<GlobalNPC, Action<NPC, Player, Item, bool>>>)((GlobalNPC g) => g.OnCaughtBy)) |
| |
| static GlobalHookList< GlobalNPC > | HookPickEmote = AddHook((Expression<Func<GlobalNPC, Func<NPC, Player, List<int>, WorldUIAnchor, int?>>>)((GlobalNPC g) => g.PickEmote)) |
| |
| static GlobalHookList< GlobalNPC > | HookCanHitPlayer = AddHook((Expression<Func<GlobalNPC, DelegateCanHitPlayer>>)((GlobalNPC g) => g.CanHitPlayer)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyHitPlayer = AddHook((Expression<Func<GlobalNPC, DelegateModifyHitPlayer>>)((GlobalNPC g) => g.ModifyHitPlayer)) |
| |
| static GlobalHookList< GlobalNPC > | HookOnHitPlayer = AddHook((Expression<Func<GlobalNPC, Action<NPC, Player, Player.HurtInfo>>>)((GlobalNPC g) => g.OnHitPlayer)) |
| |
| static GlobalHookList< GlobalNPC > | HookCanHitNPC = AddHook((Expression<Func<GlobalNPC, Func<NPC, NPC, bool>>>)((GlobalNPC g) => g.CanHitNPC)) |
| |
| static GlobalHookList< GlobalNPC > | HookCanBeHitByNPC = AddHook((Expression<Func<GlobalNPC, Func<NPC, NPC, bool>>>)((GlobalNPC g) => g.CanBeHitByNPC)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyHitNPC = AddHook((Expression<Func<GlobalNPC, DelegateModifyHitNPC>>)((GlobalNPC g) => g.ModifyHitNPC)) |
| |
| static GlobalHookList< GlobalNPC > | HookOnHitNPC = AddHook((Expression<Func<GlobalNPC, Action<NPC, NPC, NPC.HitInfo>>>)((GlobalNPC g) => g.OnHitNPC)) |
| |
| static GlobalHookList< GlobalNPC > | HookCanBeHitByItem = AddHook((Expression<Func<GlobalNPC, Func<NPC, Player, Item, bool?>>>)((GlobalNPC g) => g.CanBeHitByItem)) |
| |
| static GlobalHookList< GlobalNPC > | HookCanCollideWithPlayerMeleeAttack = AddHook((Expression<Func<GlobalNPC, Func<NPC, Player, Item, Rectangle, bool?>>>)((GlobalNPC g) => g.CanCollideWithPlayerMeleeAttack)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyHitByItem = AddHook((Expression<Func<GlobalNPC, DelegateModifyHitByItem>>)((GlobalNPC g) => g.ModifyHitByItem)) |
| |
| static GlobalHookList< GlobalNPC > | HookOnHitByItem = AddHook((Expression<Func<GlobalNPC, Action<NPC, Player, Item, NPC.HitInfo, int>>>)((GlobalNPC g) => g.OnHitByItem)) |
| |
| static GlobalHookList< GlobalNPC > | HookCanBeHitByProjectile = AddHook((Expression<Func<GlobalNPC, Func<NPC, Projectile, bool?>>>)((GlobalNPC g) => g.CanBeHitByProjectile)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyHitByProjectile = AddHook((Expression<Func<GlobalNPC, DelegateModifyHitByProjectile>>)((GlobalNPC g) => g.ModifyHitByProjectile)) |
| |
| static GlobalHookList< GlobalNPC > | HookOnHitByProjectile = AddHook((Expression<Func<GlobalNPC, Action<NPC, Projectile, NPC.HitInfo, int>>>)((GlobalNPC g) => g.OnHitByProjectile)) |
| |
| static GlobalHookList< GlobalNPC > | HookAddModifyIncomingHit = AddHook((Expression<Func<GlobalNPC, DelegateAddModifyIncomingHit>>)((GlobalNPC g) => g.ModifyIncomingHit)) |
| |
| static GlobalHookList< GlobalNPC > | HookBossHeadSlot = AddHook((Expression<Func<GlobalNPC, DelegateBossHeadSlot>>)((GlobalNPC g) => g.BossHeadSlot)) |
| |
| static GlobalHookList< GlobalNPC > | HookBossHeadRotation = AddHook((Expression<Func<GlobalNPC, DelegateBossHeadRotation>>)((GlobalNPC g) => g.BossHeadRotation)) |
| |
| static GlobalHookList< GlobalNPC > | HookBossHeadSpriteEffects = AddHook((Expression<Func<GlobalNPC, DelegateBossHeadSpriteEffects>>)((GlobalNPC g) => g.BossHeadSpriteEffects)) |
| |
| static GlobalHookList< GlobalNPC > | HookGetAlpha = AddHook((Expression<Func<GlobalNPC, Func<NPC, Color, Color?>>>)((GlobalNPC g) => g.GetAlpha)) |
| |
| static GlobalHookList< GlobalNPC > | HookDrawEffects = AddHook((Expression<Func<GlobalNPC, DelegateDrawEffects>>)((GlobalNPC g) => g.DrawEffects)) |
| |
| static GlobalHookList< GlobalNPC > | HookPreDraw = AddHook((Expression<Func<GlobalNPC, DelegatePreDraw>>)((GlobalNPC g) => g.PreDraw)) |
| |
| static GlobalHookList< GlobalNPC > | HookPostDraw = AddHook((Expression<Func<GlobalNPC, DelegatePostDraw>>)((GlobalNPC g) => g.PostDraw)) |
| |
| static GlobalHookList< GlobalNPC > | HookDrawBehind = AddHook((Expression<Func<GlobalNPC, Action<NPC, int>>>)((GlobalNPC g) => g.DrawBehind)) |
| |
| static GlobalHookList< GlobalNPC > | HookDrawHealthBar = AddHook((Expression<Func<GlobalNPC, DelegateDrawHealthBar>>)((GlobalNPC g) => g.DrawHealthBar)) |
| |
| static GlobalHookList< GlobalNPC > | HookEditSpawnRate = AddHook((Expression<Func<GlobalNPC, DelegateEditSpawnRate>>)((GlobalNPC g) => g.EditSpawnRate)) |
| |
| static GlobalHookList< GlobalNPC > | HookEditSpawnRange = AddHook((Expression<Func<GlobalNPC, DelegateEditSpawnRange>>)((GlobalNPC g) => g.EditSpawnRange)) |
| |
| static GlobalHookList< GlobalNPC > | HookEditSpawnPool = AddHook((Expression<Func<GlobalNPC, Action<Dictionary<int, float>, NPCSpawnInfo>>>)((GlobalNPC g) => g.EditSpawnPool)) |
| |
| static GlobalHookList< GlobalNPC > | HookSpawnNPC = AddHook((Expression<Func<GlobalNPC, Action<int, int, int>>>)((GlobalNPC g) => g.SpawnNPC)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyTypeName = AddHook((Expression<Func<GlobalNPC, DelegateModifyTypeName>>)((GlobalNPC g) => g.ModifyTypeName)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyHoverBoundingBox = AddHook((Expression<Func<GlobalNPC, DelegateModifyHoverBoundingBox>>)((GlobalNPC g) => g.ModifyHoverBoundingBox)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyNPCNameList = AddHook((Expression<Func<GlobalNPC, Action<NPC, List<string>>>>)((GlobalNPC g) => g.ModifyNPCNameList)) |
| |
| static GlobalHookList< GlobalNPC > | HookCanChat = AddHook((Expression<Func<GlobalNPC, Func<NPC, bool?>>>)((GlobalNPC g) => g.CanChat)) |
| |
| static GlobalHookList< GlobalNPC > | HookGetChat = AddHook((Expression<Func<GlobalNPC, DelegateGetChat>>)((GlobalNPC g) => g.GetChat)) |
| |
| static GlobalHookList< GlobalNPC > | HookPreChatButtonClicked = AddHook((Expression<Func<GlobalNPC, Func<NPC, bool, bool>>>)((GlobalNPC g) => g.PreChatButtonClicked)) |
| |
| static GlobalHookList< GlobalNPC > | HookOnChatButtonClicked = AddHook((Expression<Func<GlobalNPC, DelegateOnChatButtonClicked>>)((GlobalNPC g) => g.OnChatButtonClicked)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyShop = AddHook((Expression<Func<GlobalNPC, DelegateModifyShop>>)((GlobalNPC g) => g.ModifyShop)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyActiveShop = AddHook((Expression<Func<GlobalNPC, DelegateModifyActiveShop>>)((GlobalNPC g) => g.ModifyActiveShop)) |
| |
| static GlobalHookList< GlobalNPC > | HookSetupTravelShop = AddHook((Expression<Func<GlobalNPC, DelegateSetupTravelShop>>)((GlobalNPC g) => g.SetupTravelShop)) |
| |
| static GlobalHookList< GlobalNPC > | HookCanGoToStatue = AddHook((Expression<Func<GlobalNPC, Func<NPC, bool, bool?>>>)((GlobalNPC g) => g.CanGoToStatue)) |
| |
| static GlobalHookList< GlobalNPC > | HookOnGoToStatue = AddHook((Expression<Func<GlobalNPC, Action<NPC, bool>>>)((GlobalNPC g) => g.OnGoToStatue)) |
| |
| static GlobalHookList< GlobalNPC > | HookBuffTownNPC = AddHook((Expression<Func<GlobalNPC, DelegateBuffTownNPC>>)((GlobalNPC g) => g.BuffTownNPC)) |
| |
| static GlobalHookList< GlobalNPC > | HookTownNPCAttackStrength = AddHook((Expression<Func<GlobalNPC, DelegateTownNPCAttackStrength>>)((GlobalNPC g) => g.TownNPCAttackStrength)) |
| |
| static GlobalHookList< GlobalNPC > | HookTownNPCAttackCooldown = AddHook((Expression<Func<GlobalNPC, DelegateTownNPCAttackCooldown>>)((GlobalNPC g) => g.TownNPCAttackCooldown)) |
| |
| static GlobalHookList< GlobalNPC > | HookTownNPCAttackProj = AddHook((Expression<Func<GlobalNPC, DelegateTownNPCAttackProj>>)((GlobalNPC g) => g.TownNPCAttackProj)) |
| |
| static GlobalHookList< GlobalNPC > | HookTownNPCAttackProjSpeed = AddHook((Expression<Func<GlobalNPC, DelegateTownNPCAttackProjSpeed>>)((GlobalNPC g) => g.TownNPCAttackProjSpeed)) |
| |
| static GlobalHookList< GlobalNPC > | HookTownNPCAttackShoot = AddHook((Expression<Func<GlobalNPC, DelegateTownNPCAttackShoot>>)((GlobalNPC g) => g.TownNPCAttackShoot)) |
| |
| static GlobalHookList< GlobalNPC > | HookTownNPCAttackMagic = AddHook((Expression<Func<GlobalNPC, DelegateTownNPCAttackMagic>>)((GlobalNPC g) => g.TownNPCAttackMagic)) |
| |
| static GlobalHookList< GlobalNPC > | HookTownNPCAttackSwing = AddHook((Expression<Func<GlobalNPC, DelegateTownNPCAttackSwing>>)((GlobalNPC g) => g.TownNPCAttackSwing)) |
| |
| static GlobalHookList< GlobalNPC > | HookDrawTownAttackGun = AddHook((Expression<Func<GlobalNPC, DelegateDrawTownAttackGun>>)((GlobalNPC g) => g.DrawTownAttackGun)) |
| |
| static GlobalHookList< GlobalNPC > | HookDrawTownAttackSwing = AddHook((Expression<Func<GlobalNPC, DelegateDrawTownAttackSwing>>)((GlobalNPC g) => g.DrawTownAttackSwing)) |
| |
| static GlobalHookList< GlobalNPC > | HookModifyCollisionData = AddHook((Expression<Func<GlobalNPC, DelegateModifyCollisionData>>)((GlobalNPC g) => g.ModifyCollisionData)) |
| |
| static GlobalHookList< GlobalNPC > | HookNeedSaving = AddHook((Expression<Func<GlobalNPC, DelegateNeedSaving>>)((GlobalNPC g) => g.NeedSaving)) |
| |
This serves as the central class from which NPC-related functions are carried out. It also stores a list of mod NPCs by ID.
Definition at line 25 of file NPCLoader.cs.