public void OnReceived() { if (!NetworkServer.active) { // Client display notification ZetDropifact.HandleServerReply(this); } }
public void OnReceived() { if (NetworkServer.active) { // Request from client if (ZetDropifact.HandleClientRequest(this)) { // Notify clients about success ZetDropReply dropReply = new ZetDropReply { Body = Body, DropType = DropType, Index = Index }; dropReply.Send(NetworkDestination.Clients); } } }
public void Awake() { ConfigSetup(Config); ContentManager.collectContentPackProviders += ContentManager_collectContentPackProviders; ZetRevivifact.Init(); ZetMultifact.Init(); ZetDropifact.Init(); ZetLoopifact.Init(); ZetEclifact.Init(); if (LoopifactEnable.Value != 0) { RoR2Application.onLoad += ZetLoopifact.ApplyEarlyEliteProperties; } //On.RoR2.Networking.GameNetworkManager.OnClientConnect += (self, user, t) => { }; }
public void OnPointerClick(PointerEventData eventData) { ZetDropifact.HandlePointerClick(this, eventData); }