C# Class Pluton.Hooks

Mostra file Open project: Notulp/Pluton Class Usage Examples

Public Methods

Method Description
CreateOrUpdateSubjects ( ) : Subject>.Dictionary
On_BeingHammered ( HitInfo info, BasePlayer ownerPlayer ) : void
On_BuildingPartDemolished ( BuildingBlock bb, BaseEntity msg ) : void
On_BuildingPartGradeChange ( BuildingBlock bb, BaseEntity msg ) : void
On_ClientAuth ( ConnectionAuth ca, Network.Connection connection ) : void
On_ClientConsole ( ConsoleSystem arg, String rconCmd ) : void
On_CombatEntityHurt ( BaseCombatEntity combatEnt, HitInfo info, bool useProtection = true ) : void
On_Command ( ConsoleSystem arg ) : void
On_ConsumeFuel ( BaseOven bo, System.Item fuel, ItemModBurnable burn ) : void
On_DoorCode ( CodeLock doorLock, BaseEntity rpc ) : void
On_DoorUse ( Door door, BaseEntity rpc, bool open ) : void
On_EventTriggered ( TriggeredEventPrefab tep ) : void
On_ItemAdded ( ItemContainer ic, System.Item i ) : void
On_ItemLoseCondition ( System.Item i, float f ) : void
On_ItemPickup ( CollectibleEntity ce, BaseEntity msg, System.Item i ) : void
On_ItemRemoved ( ItemContainer ic, System.Item i ) : void
On_ItemRepaired ( RepairBench rb, BaseEntity msg ) : void
On_ItemUsed ( System.Item item, int amountToConsume ) : void
On_LandmineArmed ( Landmine l ) : void
On_LandmineExploded ( Landmine l ) : void
On_LandmineTriggered ( Landmine landmine, BasePlayer basePlayer ) : void
On_LootingEntity ( PlayerLoot playerLoot ) : void
On_LootingItem ( PlayerLoot playerLoot ) : void
On_LootingPlayer ( PlayerLoot playerLoot ) : void
On_NPCKilled ( BaseNPC bnpc, HitInfo info ) : void
On_NetworkableKill ( BaseNetworkable bn ) : void
On_Placement ( Construction construction, Construction target, bool bNeedsValidPlacement ) : BaseEntity
On_PlayerAssisted ( BasePlayer bp ) : void
On_PlayerClothingChanged ( PlayerInventory pi, System.Item i ) : void
On_PlayerConnected ( BasePlayer player ) : void
On_PlayerDied ( BasePlayer player, HitInfo info ) : void
On_PlayerDisconnected ( BasePlayer player ) : void
On_PlayerGathering ( ResourceDispenser dispenser, BaseEntity to, ItemAmount itemAmt, float gatherDamage, float destroyFraction ) : void
On_PlayerHealthChange ( BasePlayer p, float f, float f2 ) : void
On_PlayerLoaded ( BasePlayer bp ) : void
On_PlayerSleep ( BasePlayer bp ) : void
On_PlayerStartCrafting ( ItemCrafter self, ItemBlueprint bp, BasePlayer owner, ProtoBuf instanceData = null, int amount = 1, int skinID ) : bool
On_PlayerSyringeOther ( SyringeWeapon sw, BaseEntity msg ) : void
On_PlayerSyringeSelf ( SyringeWeapon sw, BaseEntity msg ) : void
On_PlayerTakeRadiation ( BasePlayer player, float radAmount ) : void
On_PlayerWakeUp ( BasePlayer bp ) : void
On_PlayerWounded ( BasePlayer bp ) : void
On_QuarryMining ( MiningQuarry miningQuarry ) : void
On_Respawn ( BasePlayer player, Vector3 pos, Quaternion quat ) : void
On_RocketShooting ( BaseLauncher baseLauncher, BaseEntity msg, BaseEntity baseEntity ) : void
On_ServerConsole ( ConsoleSystem arg, string cmd ) : void
On_ServerInit ( ) : void
On_ServerSaved ( ) : void
On_ServerShutdown ( ) : void
On_Shooting ( BaseProjectile baseProjectile, BaseEntity msg ) : void
On_WeaponThrow ( ThrownWeapon thrownWeapon, BaseEntity msg ) : void
SetModded ( ) : void
Subscribe ( string hookname, Action callback ) : Hook
Subscribe ( string hookname, BasePlugin plugin ) : Hook

Private Methods

Method Description
OnNext ( string hook ) : void
On_Chat ( ConsoleSystem arg ) : void

Method Details

CreateOrUpdateSubjects() public static method

public static CreateOrUpdateSubjects ( ) : Subject>.Dictionary
return Subject>.Dictionary

On_BeingHammered() public static method

public static On_BeingHammered ( HitInfo info, BasePlayer ownerPlayer ) : void
info HitInfo
ownerPlayer BasePlayer
return void

On_BuildingPartDemolished() public static method

public static On_BuildingPartDemolished ( BuildingBlock bb, BaseEntity msg ) : void
bb BuildingBlock
msg BaseEntity
return void

On_BuildingPartGradeChange() public static method

public static On_BuildingPartGradeChange ( BuildingBlock bb, BaseEntity msg ) : void
bb BuildingBlock
msg BaseEntity
return void

On_ClientAuth() public static method

public static On_ClientAuth ( ConnectionAuth ca, Network.Connection connection ) : void
ca ConnectionAuth
connection Network.Connection
return void

On_ClientConsole() public static method

public static On_ClientConsole ( ConsoleSystem arg, String rconCmd ) : void
arg ConsoleSystem
rconCmd String
return void

On_CombatEntityHurt() public static method

public static On_CombatEntityHurt ( BaseCombatEntity combatEnt, HitInfo info, bool useProtection = true ) : void
combatEnt BaseCombatEntity
info HitInfo
useProtection bool
return void

On_Command() public static method

public static On_Command ( ConsoleSystem arg ) : void
arg ConsoleSystem
return void

On_ConsumeFuel() public static method

public static On_ConsumeFuel ( BaseOven bo, System.Item fuel, ItemModBurnable burn ) : void
bo BaseOven
fuel System.Item
burn ItemModBurnable
return void

On_DoorCode() public static method

public static On_DoorCode ( CodeLock doorLock, BaseEntity rpc ) : void
doorLock CodeLock
rpc BaseEntity
return void

On_DoorUse() public static method

public static On_DoorUse ( Door door, BaseEntity rpc, bool open ) : void
door Door
rpc BaseEntity
open bool
return void

On_EventTriggered() public static method

public static On_EventTriggered ( TriggeredEventPrefab tep ) : void
tep TriggeredEventPrefab
return void

On_ItemAdded() public static method

public static On_ItemAdded ( ItemContainer ic, System.Item i ) : void
ic ItemContainer
i System.Item
return void

On_ItemLoseCondition() public static method

public static On_ItemLoseCondition ( System.Item i, float f ) : void
i System.Item
f float
return void

On_ItemPickup() public static method

public static On_ItemPickup ( CollectibleEntity ce, BaseEntity msg, System.Item i ) : void
ce CollectibleEntity
msg BaseEntity
i System.Item
return void

On_ItemRemoved() public static method

public static On_ItemRemoved ( ItemContainer ic, System.Item i ) : void
ic ItemContainer
i System.Item
return void

On_ItemRepaired() public static method

public static On_ItemRepaired ( RepairBench rb, BaseEntity msg ) : void
rb RepairBench
msg BaseEntity
return void

On_ItemUsed() public static method

public static On_ItemUsed ( System.Item item, int amountToConsume ) : void
item System.Item
amountToConsume int
return void

On_LandmineArmed() public static method

public static On_LandmineArmed ( Landmine l ) : void
l Landmine
return void

On_LandmineExploded() public static method

public static On_LandmineExploded ( Landmine l ) : void
l Landmine
return void

On_LandmineTriggered() public static method

public static On_LandmineTriggered ( Landmine landmine, BasePlayer basePlayer ) : void
landmine Landmine
basePlayer BasePlayer
return void

On_LootingEntity() public static method

public static On_LootingEntity ( PlayerLoot playerLoot ) : void
playerLoot PlayerLoot
return void

On_LootingItem() public static method

public static On_LootingItem ( PlayerLoot playerLoot ) : void
playerLoot PlayerLoot
return void

On_LootingPlayer() public static method

public static On_LootingPlayer ( PlayerLoot playerLoot ) : void
playerLoot PlayerLoot
return void

On_NPCKilled() public static method

public static On_NPCKilled ( BaseNPC bnpc, HitInfo info ) : void
bnpc BaseNPC
info HitInfo
return void

On_NetworkableKill() public static method

public static On_NetworkableKill ( BaseNetworkable bn ) : void
bn BaseNetworkable
return void

On_Placement() public static method

public static On_Placement ( Construction construction, Construction target, bool bNeedsValidPlacement ) : BaseEntity
construction Construction
target Construction
bNeedsValidPlacement bool
return BaseEntity

On_PlayerAssisted() public static method

public static On_PlayerAssisted ( BasePlayer bp ) : void
bp BasePlayer
return void

On_PlayerClothingChanged() public static method

public static On_PlayerClothingChanged ( PlayerInventory pi, System.Item i ) : void
pi PlayerInventory
i System.Item
return void

On_PlayerConnected() public static method

public static On_PlayerConnected ( BasePlayer player ) : void
player BasePlayer
return void

On_PlayerDied() public static method

public static On_PlayerDied ( BasePlayer player, HitInfo info ) : void
player BasePlayer
info HitInfo
return void

On_PlayerDisconnected() public static method

public static On_PlayerDisconnected ( BasePlayer player ) : void
player BasePlayer
return void

On_PlayerGathering() public static method

public static On_PlayerGathering ( ResourceDispenser dispenser, BaseEntity to, ItemAmount itemAmt, float gatherDamage, float destroyFraction ) : void
dispenser ResourceDispenser
to BaseEntity
itemAmt ItemAmount
gatherDamage float
destroyFraction float
return void

On_PlayerHealthChange() public static method

public static On_PlayerHealthChange ( BasePlayer p, float f, float f2 ) : void
p BasePlayer
f float
f2 float
return void

On_PlayerLoaded() public static method

public static On_PlayerLoaded ( BasePlayer bp ) : void
bp BasePlayer
return void

On_PlayerSleep() public static method

public static On_PlayerSleep ( BasePlayer bp ) : void
bp BasePlayer
return void

On_PlayerStartCrafting() public static method

public static On_PlayerStartCrafting ( ItemCrafter self, ItemBlueprint bp, BasePlayer owner, ProtoBuf instanceData = null, int amount = 1, int skinID ) : bool
self ItemCrafter
bp ItemBlueprint
owner BasePlayer
instanceData ProtoBuf
amount int
skinID int
return bool

On_PlayerSyringeOther() public static method

public static On_PlayerSyringeOther ( SyringeWeapon sw, BaseEntity msg ) : void
sw SyringeWeapon
msg BaseEntity
return void

On_PlayerSyringeSelf() public static method

public static On_PlayerSyringeSelf ( SyringeWeapon sw, BaseEntity msg ) : void
sw SyringeWeapon
msg BaseEntity
return void

On_PlayerTakeRadiation() public static method

public static On_PlayerTakeRadiation ( BasePlayer player, float radAmount ) : void
player BasePlayer
radAmount float
return void

On_PlayerWakeUp() public static method

public static On_PlayerWakeUp ( BasePlayer bp ) : void
bp BasePlayer
return void

On_PlayerWounded() public static method

public static On_PlayerWounded ( BasePlayer bp ) : void
bp BasePlayer
return void

On_QuarryMining() public static method

public static On_QuarryMining ( MiningQuarry miningQuarry ) : void
miningQuarry MiningQuarry
return void

On_Respawn() public static method

public static On_Respawn ( BasePlayer player, Vector3 pos, Quaternion quat ) : void
player BasePlayer
pos Vector3
quat Quaternion
return void

On_RocketShooting() public static method

public static On_RocketShooting ( BaseLauncher baseLauncher, BaseEntity msg, BaseEntity baseEntity ) : void
baseLauncher BaseLauncher
msg BaseEntity
baseEntity BaseEntity
return void

On_ServerConsole() public static method

public static On_ServerConsole ( ConsoleSystem arg, string cmd ) : void
arg ConsoleSystem
cmd string
return void

On_ServerInit() public static method

public static On_ServerInit ( ) : void
return void

On_ServerSaved() public static method

public static On_ServerSaved ( ) : void
return void

On_ServerShutdown() public static method

public static On_ServerShutdown ( ) : void
return void

On_Shooting() public static method

public static On_Shooting ( BaseProjectile baseProjectile, BaseEntity msg ) : void
baseProjectile BaseProjectile
msg BaseEntity
return void

On_WeaponThrow() public static method

public static On_WeaponThrow ( ThrownWeapon thrownWeapon, BaseEntity msg ) : void
thrownWeapon ThrownWeapon
msg BaseEntity
return void

SetModded() public static method

public static SetModded ( ) : void
return void

Subscribe() public static method

public static Subscribe ( string hookname, Action callback ) : Hook
hookname string
callback Action
return Hook

Subscribe() public static method

public static Subscribe ( string hookname, BasePlugin plugin ) : Hook
hookname string
plugin BasePlugin
return Hook