Pathfinder  v3.0
The definitive Hacknet programmable modding system
Pathfinder.PathfinderHooks Class Reference

Function hooks for the Pathfinder mod system More...

Static Public Member Functions

static bool onMain (string[] args)
 
static void onLoadContent (Game1 self)
 
static bool onCommandSent (out bool disconnects, ref bool returnFlag, object osObj, string[] arguments)
 
static bool onOSDraw (OS self, ref GameTime time)
 
static bool onLoadSession (OS self)
 
static void onPostLoadSession (OS self)
 
static void onUnloadSession (OS self)
 
static bool onMainMenuDraw (MainMenu self, GameTime gameTime)
 
static void onMainMenuButtonsDraw (MainMenu self, ref int mainButtonY, ref int secondaryButtonY)
 
static bool onLoadSaveFile (OS self, ref Stream stream, ref XmlReader xmlReader)
 
static bool onSaveFile (OS self, string filename)
 
static void onSaveWrite (OS self, ref string saveString, string filename)
 
static bool onLoadNetmapContent (NetworkMap self)
 
static bool onExecutableExecute (out int result, ref Computer com, ref Folder fol, ref int finde, ref string exeFileData, ref OS os, ref string[] args)
 
static bool onPortExecutableExecute (OS self, ref Rectangle dest, ref string name, ref string data, ref int port, ref string[] args, ref string originalName)
 
static void onLoadComputer (ref XmlReader reader, string filename, bool preventAddingToNetmap, bool preventInitDaemons, Computer createdComputer)
 
static bool onDrawMainMenuTitles (MainMenu self, out bool result, ref Rectangle dest)
 
static void onGameUnloadContent (Game1 self)
 
static void onGameUpdate (Game1 self, ref GameTime time)
 
static void onPortNameDraw (DisplayModule self, ref Rectangle rect, ref Computer computer, ref Vector2 lockPos)
 
static bool onDisplayModuleUpdate (DisplayModule self, ref float time)
 
static bool onDisplayModuleDraw (DisplayModule self, ref float time)
 
static bool onExtensionsMenuScreenDraw (Hacknet.Screens.ExtensionsMenuScreen self, ref Vector2 buttonPos, ref Rectangle dest, ref SpriteBatch sb, ref ScreenManager manager)
 
static bool onExtensionsMenuListDraw (Hacknet.Screens.ExtensionsMenuScreen self, out Vector2 result, ref Vector2 drawPos, ref Rectangle dest, ref SpriteBatch sb)
 
static bool onOptionsMenuDraw (OptionsMenu self, ref GameTime time)
 
static void onOptionsMenuLoadContent (OptionsMenu self)
 
static bool onOptionsMenuUpdate (OptionsMenu self, ref GameTime time, ref bool notFocused, ref bool isCovered)
 
static void onOptionsApply (OptionsMenu self)
 

Detailed Description

Place all functions to be hooked into Hacknet here

Member Function Documentation

◆ onCommandSent()

static bool Pathfinder.PathfinderHooks.onCommandSent ( out bool  disconnects,
ref bool  returnFlag,
object  osObj,
string []  arguments 
)
static

◆ onDisplayModuleDraw()

static bool Pathfinder.PathfinderHooks.onDisplayModuleDraw ( DisplayModule  self,
ref float  time 
)
static

◆ onDisplayModuleUpdate()

static bool Pathfinder.PathfinderHooks.onDisplayModuleUpdate ( DisplayModule  self,
ref float  time 
)
static

◆ onDrawMainMenuTitles()

static bool Pathfinder.PathfinderHooks.onDrawMainMenuTitles ( MainMenu  self,
out bool  result,
ref Rectangle  dest 
)
static

◆ onExecutableExecute()

static bool Pathfinder.PathfinderHooks.onExecutableExecute ( out int  result,
ref Computer  com,
ref Folder  fol,
ref int  finde,
ref string  exeFileData,
ref OS  os,
ref string []  args 
)
static

◆ onExtensionsMenuListDraw()

static bool Pathfinder.PathfinderHooks.onExtensionsMenuListDraw ( Hacknet.Screens.ExtensionsMenuScreen  self,
out Vector2  result,
ref Vector2  drawPos,
ref Rectangle  dest,
ref SpriteBatch  sb 
)
static

◆ onExtensionsMenuScreenDraw()

static bool Pathfinder.PathfinderHooks.onExtensionsMenuScreenDraw ( Hacknet.Screens.ExtensionsMenuScreen  self,
ref Vector2  buttonPos,
ref Rectangle  dest,
ref SpriteBatch  sb,
ref ScreenManager  manager 
)
static

◆ onGameUnloadContent()

static void Pathfinder.PathfinderHooks.onGameUnloadContent ( Game1  self)
static

◆ onGameUpdate()

static void Pathfinder.PathfinderHooks.onGameUpdate ( Game1  self,
ref GameTime  time 
)
static

◆ onLoadComputer()

static void Pathfinder.PathfinderHooks.onLoadComputer ( ref XmlReader  reader,
string  filename,
bool  preventAddingToNetmap,
bool  preventInitDaemons,
Computer  createdComputer 
)
static

◆ onLoadContent()

static void Pathfinder.PathfinderHooks.onLoadContent ( Game1  self)
static

◆ onLoadNetmapContent()

static bool Pathfinder.PathfinderHooks.onLoadNetmapContent ( NetworkMap  self)
static

◆ onLoadSaveFile()

static bool Pathfinder.PathfinderHooks.onLoadSaveFile ( OS  self,
ref Stream  stream,
ref XmlReader  xmlReader 
)
static

◆ onLoadSession()

static bool Pathfinder.PathfinderHooks.onLoadSession ( OS  self)
static

◆ onMain()

static bool Pathfinder.PathfinderHooks.onMain ( string []  args)
static

◆ onMainMenuButtonsDraw()

static void Pathfinder.PathfinderHooks.onMainMenuButtonsDraw ( MainMenu  self,
ref int  mainButtonY,
ref int  secondaryButtonY 
)
static

◆ onMainMenuDraw()

static bool Pathfinder.PathfinderHooks.onMainMenuDraw ( MainMenu  self,
GameTime  gameTime 
)
static

◆ onOptionsApply()

static void Pathfinder.PathfinderHooks.onOptionsApply ( OptionsMenu  self)
static

◆ onOptionsMenuDraw()

static bool Pathfinder.PathfinderHooks.onOptionsMenuDraw ( OptionsMenu  self,
ref GameTime  time 
)
static

◆ onOptionsMenuLoadContent()

static void Pathfinder.PathfinderHooks.onOptionsMenuLoadContent ( OptionsMenu  self)
static

◆ onOptionsMenuUpdate()

static bool Pathfinder.PathfinderHooks.onOptionsMenuUpdate ( OptionsMenu  self,
ref GameTime  time,
ref bool  notFocused,
ref bool  isCovered 
)
static

◆ onOSDraw()

static bool Pathfinder.PathfinderHooks.onOSDraw ( OS  self,
ref GameTime  time 
)
static

◆ onPortExecutableExecute()

static bool Pathfinder.PathfinderHooks.onPortExecutableExecute ( OS  self,
ref Rectangle  dest,
ref string  name,
ref string  data,
ref int  port,
ref string []  args,
ref string  originalName 
)
static

◆ onPortNameDraw()

static void Pathfinder.PathfinderHooks.onPortNameDraw ( DisplayModule  self,
ref Rectangle  rect,
ref Computer  computer,
ref Vector2  lockPos 
)
static

◆ onPostLoadSession()

static void Pathfinder.PathfinderHooks.onPostLoadSession ( OS  self)
static

◆ onSaveFile()

static bool Pathfinder.PathfinderHooks.onSaveFile ( OS  self,
string  filename 
)
static

◆ onSaveWrite()

static void Pathfinder.PathfinderHooks.onSaveWrite ( OS  self,
ref string  saveString,
string  filename 
)
static

◆ onUnloadSession()

static void Pathfinder.PathfinderHooks.onUnloadSession ( OS  self)
static

The documentation for this class was generated from the following file: