Skip to content
Tor Jacob Neple edited this page Apr 27, 2023 · 1 revision

Modes

Scripts

This component includes three scripts.

ModeBtnBridge

Summary

A bridge between a BNG button and a Game for selecting modes.

Configuration

ButtonType(enum) buttonType: What mode should the button be corrolated to?

Functions

void Awake:

Summary:

Sets which game the button is tied to.

void OnButton:

*Summary:

Calls function in Modes to change mode in given game on buttonpush.

ModeLoader

Summary

Class which loads list of mode configurations defined in XML.

Functions

*void Start:

Summary:

Loads the XML document, and starts coroutine to convert to instances of Mode.

*IEnumerator (Coroutine) AssignData

Summary:

Assigns data from XML document to instances of Mode.

Related Classes

Mode

Summary:

A representation of a mode in the fishFeeding scenario.

Has fields:

  • string name
  • Tut(enum) tutorial
  • bool hud
  • int timeLimit
  • float failureThreshold
  • bool isUnlocked
  • float modifier

Note:

Some of these fields remain unused in this scenario, however, they remain in the codebase. This is a result of the extensibility they provide, and probable usecase in other scenarios.

Modes

Summary

Binding class between a Game and a ModeLoader

Functions

void Start

Summary:

Sets related ModeLoader.

void Update

Summary:

Stores all modes, as well as current mode if ModeLoader has finished loading from mode configuration file.

Prefabs

ModeBtn

Levels

Blue Sector Wiki

Components

Accessibility

Reception Scene

The reception scene is the first scene the player will find themselves in after the application has started. It serves as a central hub between the different work place scenarios.

Fish Laboratory

The fish laboratory is a subsystem of blue-sector, which runs a simulation of tasks related to analysing the health of the salmon population in a fish farm.

Components

Fish Factory

The fish factory is a subsystem of blue-sector, which runs a simulation of several tasks at a farmed Atlantic salmon processing facility.

Components

Other

Fish Feeding

Fish feeding is a subsystem of blue-sector, which runs a simulation of feeding salmon in a fish farming facility.

NPC AI

This section is related to the improvements to the NPC AI functionality and the connecting system that it now works with.

Clone this wiki locally