Broke Protocol Game API Reference  1.39
Code reference for server and client scripting
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
BrokeProtocol.Utility.HackingGame Class Reference
Inheritance diagram for BrokeProtocol.Utility.HackingGame:
BrokeProtocol.Utility.Minigame

Public Member Functions

 HackingGame (ShPlayer player, int targetID, string id, string optionID, float difficulty)
 
override void StartServerside ()
 
void PlaceProbe (Vector2 location)
 
void PlaceMark (Vector2 location)
 
- Public Member Functions inherited from BrokeProtocol.Utility.Minigame
 Minigame (ShPlayer player, int targetID, string id, string optionID, float difficulty)
 

Public Attributes

byte probeID
 
int bugsLeft
 
int probesLeft
 
readonly List< HackingBugbugs = new()
 
readonly List< HackingProbeprobes = new()
 
- Public Attributes inherited from BrokeProtocol.Utility.Minigame
readonly ShPlayer player
 
readonly int targetID
 
readonly string id
 
readonly string optionID
 
readonly float difficulty
 
bool gameActive
 

Static Public Attributes

const float hitDistance = 0.015f
 
const int minBugCount = 4
 
const int maxBugCount = 30
 
const float sqrDistance = hitDistance * hitDistance
 
const float sqrSeparation = sqrDistance * 4f
 

Protected Member Functions

override void GameOver (bool successful)
 

Constructor & Destructor Documentation

◆ HackingGame()

BrokeProtocol.Utility.HackingGame.HackingGame ( ShPlayer player,
int targetID,
string id,
string optionID,
float difficulty )
inline

Member Function Documentation

◆ GameOver()

override void BrokeProtocol.Utility.HackingGame.GameOver ( bool successful)
inlineprotectedvirtual

Reimplemented from BrokeProtocol.Utility.Minigame.

◆ PlaceMark()

void BrokeProtocol.Utility.HackingGame.PlaceMark ( Vector2 location)
inline

◆ PlaceProbe()

void BrokeProtocol.Utility.HackingGame.PlaceProbe ( Vector2 location)
inline

◆ StartServerside()

override void BrokeProtocol.Utility.HackingGame.StartServerside ( )
inlinevirtual

Reimplemented from BrokeProtocol.Utility.Minigame.

Member Data Documentation

◆ bugs

readonly List<HackingBug> BrokeProtocol.Utility.HackingGame.bugs = new()

◆ bugsLeft

int BrokeProtocol.Utility.HackingGame.bugsLeft

◆ hitDistance

const float BrokeProtocol.Utility.HackingGame.hitDistance = 0.015f
static

◆ maxBugCount

const int BrokeProtocol.Utility.HackingGame.maxBugCount = 30
static

◆ minBugCount

const int BrokeProtocol.Utility.HackingGame.minBugCount = 4
static

◆ probeID

byte BrokeProtocol.Utility.HackingGame.probeID

◆ probes

readonly List<HackingProbe> BrokeProtocol.Utility.HackingGame.probes = new()

◆ probesLeft

int BrokeProtocol.Utility.HackingGame.probesLeft

◆ sqrDistance

const float BrokeProtocol.Utility.HackingGame.sqrDistance = hitDistance * hitDistance
static

◆ sqrSeparation

const float BrokeProtocol.Utility.HackingGame.sqrSeparation = sqrDistance * 4f
static

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