|
Broke Protocol Game API Reference
1.39
Code reference for server and client scripting
|
Public Member Functions | |
| void | SendGameMessageToConnection (Peer connection, string message) |
| bool | Connected (Peer peer) |
| IEnumerator | TransferData (ConnectData c, byte[] buffer, ClPacket packetType) |
| void | DrawLine (Vector3 start, Vector3 end, Color color, float duration) |
| void | SendToAll (PacketFlags channel, ClPacket packet, params object[] args) |
| void | SvCustomEnvironmentPacket (ShPlayer player) |
| void | SvCustomEnvironment () |
| void | SvSetDefaultEnvironment () |
| void | SvSetTimeScale (float timeScale) |
| void | SvSetDayFraction (float fraction) |
| void | SvSetWeatherFraction (float fraction) |
| void | SvSetSkyColor (Color color) |
| void | SvSetCloudColor (Color color) |
| void | SvSetWaterColor (Color color) |
| void | SvSetCloudHeight (float height) |
| IEnumerator | StartVote () |
| void | SendTextMenu (Peer connection, string title, string text, string id="", float xMin=0.25f, float yMin=0.1f, float xMax=0.75f, float yMax=0.9f) |
| void | SendOptionMenu (Peer connection, string title, int targetID, string id, LabelID[] options, LabelID[] actions, float xMin=0.25f, float yMin=0.1f, float xMax=0.75f, float yMax=0.9f) |
| void | SendInputMenu (Peer connection, string title, int targetID, string id, InputField.ContentType contentType=InputField.ContentType.Alphanumeric, int characterLimit=16, float xMin=0.25f, float yMin=0.35f, float xMax=0.75f, float yMax=0.65f) |
| void | SendTextPanel (Peer connection, string text, string id="", LabelID[] options=default, int initialOptionIndex=default) |
| void | SendText (Peer connection, string text, float timeout, Vector2 anchor, string id="", int fontSize=Util.defaultTextSize, TextAnchor alignment=TextAnchor.MiddleCenter) |
| void | SendTimer (Peer connection, float timeout, Vector2 anchor, string id="", int fontSize=Util.defaultTextSize, TextAnchor alignment=TextAnchor.MiddleCenter) |
| void | SendRegisterMenu (Peer connection, bool allowLogin, List< ShPlayer > skinPrefabs) |
| void | DestroyMenu (Peer connection, string id="") |
| void | DestroyTextPanel (Peer connection, string id="") |
| void | DestroyText (Peer connection, string id="") |
| void | SaveAll () |
| void | UpdateVideos () |
| void | UpdateServerInfo () |
| void | UpdateAnnouncements () |
| void | UpdateWhitelist () |
| void | ParseFile (ref HashSet< string > hashSet, string file) |
| void | SendPlayerCount () |
| void | LoadSavedPlayer (User playerData, ConnectData c) |
| void | AddNewPlayer (ShPlayer prefab, ConnectData connectData, Persistent persistent, Vector3 position, Quaternion rotation, Transform parent, int spawnJobIndex=0) |
| void | AddNewEntityDelay (ShEntity prefab, Place place, Vector3 position, Quaternion rotation, Vector3 scale, bool respawnable, string data, float delay) |
| T | AddNewEntity< T > (T prefab, Place place, Vector3 position, Quaternion rotation, bool respawnable, ShPlayer spawner=null, bool thrown=false) |
| T | AddNewEntity< T > (T prefab, Place place, Vector3 position, Quaternion rotation, IDCollection< ShPlayer > subscribedPlayers) |
| void | AddNewEntityExisting (ShEntity entity, bool respawnable=true) |
| bool | HandleWhitelist (string accountID) |
| void | RegisterFail (Peer connection, string message) |
| bool | TryGetUserData (string accountID, out User playerData) |
| void | ForceQuit (string message=null, bool restart=false) |
| void | SendToMaster (MasterPacket masterPacket, params object[] args) |
| void | SendToConnection (Peer connection, PacketFlags channel) |
| void | KickConnection (Peer connection) |
| void | Disconnect (Peer connection, uint data) |
| void | RemoveConnection (Peer connection) |
Static Public Attributes | |
| static readonly ChatMode[] | chatModeArray = (ChatMode[])Enum.GetValues(typeof(ChatMode)) |
| static readonly ManagerEvents | events = new() |
Protected Member Functions | |
| void | ProcessPlaces (bool doVisibility) |
Protected Member Functions inherited from BrokeProtocol.Utility.MonoBehaviourSingleton< SvManager > | |
| virtual void | Awake () |
Properties | |
| RecastGraph | GetMainGraph [get] |
Properties inherited from BrokeProtocol.Utility.MonoBehaviourSingleton< SvManager > | |
| virtual bool | DontDestroy [get] |
| static T | Instance [get] |
Additional Inherited Members | |
Static Public Member Functions inherited from BrokeProtocol.Utility.MonoBehaviourSingleton< SvManager > | |
| static void | Instantiate () |
|
inline |
| T | : | ShEntity |
|
inline |
| T | : | ShEntity |
| void BrokeProtocol.Managers.SvManager.AddNewEntityDelay | ( | ShEntity | prefab, |
| Place | place, | ||
| Vector3 | position, | ||
| Quaternion | rotation, | ||
| Vector3 | scale, | ||
| bool | respawnable, | ||
| string | data, | ||
| float | delay ) |
|
inline |
|
inline |
| bool BrokeProtocol.Managers.SvManager.Connected | ( | Peer | peer | ) |
|
inline |
|
inline |
|
inline |
|
inline |
| void BrokeProtocol.Managers.SvManager.DrawLine | ( | Vector3 | start, |
| Vector3 | end, | ||
| Color | color, | ||
| float | duration ) |
|
inline |
| bool BrokeProtocol.Managers.SvManager.HandleWhitelist | ( | string | accountID | ) |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void BrokeProtocol.Managers.SvManager.SvCustomEnvironmentPacket | ( | ShPlayer | player | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void BrokeProtocol.Managers.SvManager.UpdateAnnouncements | ( | ) |
|
inline |
|
inline |
| void BrokeProtocol.Managers.SvManager.UpdateWhitelist | ( | ) |
| HashSet<string> BrokeProtocol.Managers.SvManager.announcements = new () |
| Dictionary<int, ShApartment> BrokeProtocol.Managers.SvManager.apartments = new () |
| AstarPath BrokeProtocol.Managers.SvManager.aStarPath |
| ShEntity [] BrokeProtocol.Managers.SvManager.briefcasePrefabs |
| BuyerType [] BrokeProtocol.Managers.SvManager.buyerTypes |
|
static |
| readonly Dictionary<uint, ShPlayer> BrokeProtocol.Managers.SvManager.connectedPlayers = new () |
| readonly Dictionary<Peer, ConnectData> BrokeProtocol.Managers.SvManager.connections = new () |
| Driver BrokeProtocol.Managers.SvManager.database |
| ShEntity BrokeProtocol.Managers.SvManager.deathZonePrefab |
| readonly Dictionary<GraphNode, uint> BrokeProtocol.Managers.SvManager.decayNodes = new() |
|
static |
| ShEntity BrokeProtocol.Managers.SvManager.firePrefab |
| HashSet<ShEntity> BrokeProtocol.Managers.SvManager.fires = new () |
| Queue<int> BrokeProtocol.Managers.SvManager.freeIDs = new() |
| ShEntity BrokeProtocol.Managers.SvManager.greenCheckpointPrefab |
| Action<ShPlayer> [] BrokeProtocol.Managers.SvManager.handler |
| LimitQueue<string> BrokeProtocol.Managers.SvManager.kickedConnections = new (0, 600f) |
| ShManager BrokeProtocol.Managers.SvManager.manager |
| ShEntity BrokeProtocol.Managers.SvManager.markerGoalPrefab |
| ShEntity BrokeProtocol.Managers.SvManager.markerSelfPrefab |
| string [] BrokeProtocol.Managers.SvManager.names |
| LimitQueue<int> BrokeProtocol.Managers.SvManager.overwatchPositions = new(0, 5f) |
| LimitQueue<string> BrokeProtocol.Managers.SvManager.packetLimit = new(150, 3f) |
| LimitQueue<ShPlayer> BrokeProtocol.Managers.SvManager.pathing = new(7, 2f) |
| ShPlayer BrokeProtocol.Managers.SvManager.pathPlayer |
| readonly Dictionary<ShPlayer, Vector3> BrokeProtocol.Managers.SvManager.pathQueue = new() |
| GraphUpdateScene BrokeProtocol.Managers.SvManager.penaltyModifier |
| Transform BrokeProtocol.Managers.SvManager.penaltyModifierT |
| LimitQueue<ShPlayer> BrokeProtocol.Managers.SvManager.placedItem = new (8, 20f) |
| int BrokeProtocol.Managers.SvManager.playerCount |
| readonly Queue<PlayerRecord> BrokeProtocol.Managers.SvManager.playerRecords = new () |
| LimitQueue<string> BrokeProtocol.Managers.SvManager.recentConnections = new (5, 30f) |
| ShEntity BrokeProtocol.Managers.SvManager.redCheckpointPrefab |
| string BrokeProtocol.Managers.SvManager.serverInfo |
| readonly CustomData BrokeProtocol.Managers.SvManager.sessionData = new() |
| Settings BrokeProtocol.Managers.SvManager.settings |
| bool BrokeProtocol.Managers.SvManager.singlePlayer |
| LimitQueue<ShPlayer> BrokeProtocol.Managers.SvManager.startedVote = new (0, 60f) |
| VideoOption [] BrokeProtocol.Managers.SvManager.videoOptions = new VideoOption[0] |
| readonly Dictionary<int, VisNode[]> BrokeProtocol.Managers.SvManager.visMap = new() |
| Vote BrokeProtocol.Managers.SvManager.vote |
| HashSet<ShPlayer> BrokeProtocol.Managers.SvManager.votedNo = new () |
| HashSet<ShPlayer> BrokeProtocol.Managers.SvManager.votedYes = new () |
| HashSet<string> BrokeProtocol.Managers.SvManager.whitelist = new () |
|
get |