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