Table of Contents

Class SurfaceNetworkHandler

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class SurfaceNetworkHandler : MonoBehaviourPunCallbacks, IConnectionCallbacks, IMatchmakingCallbacks, IInRoomCallbacks, ILobbyCallbacks, IWebRpcCallback, IErrorInfoCallback
Inheritance
MonoBehaviourPun
MonoBehaviourPunCallbacks
SurfaceNetworkHandler
Implements
IConnectionCallbacks
IMatchmakingCallbacks
IInRoomCallbacks
ILobbyCallbacks
IWebRpcCallback
IErrorInfoCallback
Inherited Members
MonoBehaviourPunCallbacks.OnEnable()
MonoBehaviourPunCallbacks.OnDisable()
MonoBehaviourPunCallbacks.OnConnected()
MonoBehaviourPunCallbacks.OnLeftRoom()
MonoBehaviourPunCallbacks.OnMasterClientSwitched(Player)
MonoBehaviourPunCallbacks.OnCreatedRoom()
MonoBehaviourPunCallbacks.OnJoinedLobby()
MonoBehaviourPunCallbacks.OnLeftLobby()
MonoBehaviourPunCallbacks.OnDisconnected(DisconnectCause)
MonoBehaviourPunCallbacks.OnRegionListReceived(RegionHandler)
MonoBehaviourPunCallbacks.OnPlayerEnteredRoom(Player)
MonoBehaviourPunCallbacks.OnPlayerLeftRoom(Player)
MonoBehaviourPunCallbacks.OnConnectedToMaster()
MonoBehaviourPunCallbacks.OnPlayerPropertiesUpdate(Player, Hashtable)
MonoBehaviourPunCallbacks.OnWebRpcResponse(OperationResponse)
MonoBehaviourPunCallbacks.OnErrorInfo(ErrorInfo)
MonoBehaviourPun.photonView
Extension Methods

Constructors

SurfaceNetworkHandler()

public SurfaceNetworkHandler()

Fields

DAYS_PER_QUOTA

public const int DAYS_PER_QUOTA = 3

Field Value

int

PlayersAliveFromUnderWorld

public static ICollection<Player> PlayersAliveFromUnderWorld

Field Value

ICollection<Player>

ReturnToSurfaceAction

public Action ReturnToSurfaceAction

Field Value

Action

StartGameAction

public Action StartGameAction

Field Value

Action

firstDay

public bool firstDay

Field Value

bool

m_FailedQuota

public bool m_FailedQuota

Field Value

bool

m_HeadingToUnderWorld

public bool m_HeadingToUnderWorld

Field Value

bool

m_OnStatsChangedAction

public Action<RoomStatsHolder> m_OnStatsChangedAction

Field Value

Action<RoomStatsHolder>

m_RequestedSleep

public bool m_RequestedSleep

Field Value

bool

m_Started

public static bool m_Started

Field Value

bool

m_SteamLobby

public SteamLobbyHandler m_SteamLobby

Field Value

SteamLobbyHandler

m_VideoCameraSpawner

[SerializeField]
public PickupSpawner m_VideoCameraSpawner

Field Value

PickupSpawner

m_View

public PhotonView m_View

Field Value

PhotonView

m_VoiceConnection

public VoiceConnection m_VoiceConnection

Field Value

VoiceConnection

Properties

HasStarted

public static bool HasStarted { get; }

Property Value

bool

Instance

public static SurfaceNetworkHandler Instance { get; set; }

Property Value

SurfaceNetworkHandler

NumberOfPlayersAliveFromUnderWorld

public static int NumberOfPlayersAliveFromUnderWorld { get; }

Property Value

int

ReturnedFromLostWorldWithCamera

public static bool ReturnedFromLostWorldWithCamera { get; set; }

Property Value

bool

RoomStats

public static RoomStatsHolder RoomStats { get; set; }

Property Value

RoomStatsHolder

ShopHandler

public ShopHandler ShopHandler { get; set; }

Property Value

ShopHandler

Methods

AddOnStatsUpdateCallBack(Action<RoomStatsHolder>)

public void AddOnStatsUpdateCallBack(Action<RoomStatsHolder> onQuotaUpdate)

Parameters

onQuotaUpdate Action<RoomStatsHolder>

AddQuota(int)

[ConsoleCommand]
public static void AddQuota(int quota)

Parameters

quota int

Awake()

public void Awake()

CheckForHospitalBill()

public void CheckForHospitalBill()

CheckForMasterClientCommands()

public void CheckForMasterClientCommands()

CheckForSleep()

public void CheckForSleep()

CheckIfCameraIsPresent(bool)

public bool CheckIfCameraIsPresent(bool includeBrokencamera)

Parameters

includeBrokencamera bool

Returns

bool

CheckSave()

public void CheckSave()

FailCoroutine()

public IEnumerator FailCoroutine()

Returns

IEnumerator

FailedQuota()

public void FailedQuota()

InitSurface()

public void InitSurface()

LoadSave()

public void LoadSave()

NewWeek(int)

public void NewWeek(int currentRun)

Parameters

currentRun int

NextDay()

public void NextDay()

OnJoinedRoom()

public override void OnJoinedRoom()

OnMoneyAdd(int)

public void OnMoneyAdd(int moneyAdded)

Parameters

moneyAdded int

OnMoneySubtract(int)

public void OnMoneySubtract(int moneySubtracted)

Parameters

moneySubtracted int

OnRoomPropertiesUpdate(Hashtable)

public override void OnRoomPropertiesUpdate(Hashtable propertiesThatChanged)

Parameters

propertiesThatChanged Hashtable

OnSlept()

public void OnSlept()

OpenComputerRoomDoor()

[PunRPC]
public void OpenComputerRoomDoor()

PreCheckHeadToUnderWorld()

public bool PreCheckHeadToUnderWorld()

Returns

bool

RPCA_HelmetText(int, int)

[PunRPC]
public void RPCA_HelmetText(int messageLocaleKey, int daysLeft)

Parameters

messageLocaleKey int
daysLeft int

RPCA_HospitalBill(int, int)

[PunRPC]
public void RPCA_HospitalBill(int actorNumber, int moneyToRemove)

Parameters

actorNumber int
moneyToRemove int

RPCA_OnNewWeek(int)

[PunRPC]
public void RPCA_OnNewWeek(int currentRun)

Parameters

currentRun int

RPCA_OpenDoor()

[PunRPC]
public void RPCA_OpenDoor()

RPCA_Sleep()

[PunRPC]
public void RPCA_Sleep()

RPCM_StartGame()

[PunRPC]
public void RPCM_StartGame()

RPC_LoadScene(string)

[PunRPC]
public void RPC_LoadScene(string level)

Parameters

level string

RPC_QuotaFailed()

[PunRPC]
public void RPC_QuotaFailed()

RequestSleep()

[PunRPC]
public void RequestSleep()

RequestStartGame()

public void RequestStartGame()

ResetReturningFromLostWorld()

public static void ResetReturningFromLostWorld()

ResetSurface()

public static void ResetSurface()

ReturnFromLostWorld()

public static void ReturnFromLostWorld()

SendHospitalBill(List<(int, int)>)

public void SendHospitalBill(List<(int, int)> hospitalBill)

Parameters

hospitalBill List<(int, int)>

SetCurrentDay(int)

[ConsoleCommand]
public static void SetCurrentDay(int day)

Parameters

day int

SetCurrentRun(int)

[ConsoleCommand]
public static void SetCurrentRun(int run)

Parameters

run int

SetPlayersAliveFromUnderworld(ICollection<Player>)

public static void SetPlayersAliveFromUnderworld(ICollection<Player> playersInside)

Parameters

playersInside ICollection<Player>

SpawnSurfacePickups()

public void SpawnSurfacePickups()

Start()

public void Start()

Update()

public void Update()