Example #1
0
 public void OnReceived()
 {
     if (!NetworkServer.active)
     {
         // Client display notification
         ZetDropifact.HandleServerReply(this);
     }
 }
Example #2
0
 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);
         }
     }
 }
Example #3
0
        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) => { };
        }
Example #4
0
 public void OnPointerClick(PointerEventData eventData)
 {
     ZetDropifact.HandlePointerClick(this, eventData);
 }