Ejemplo n.º 1
0
        ////////////////

        protected override void ReceiveWithServer(int from_who)
        {
            var mymod   = WormholesMod.Instance;
            var myworld = mymod.GetModWorld <WormholesWorld>();
            var mngr    = myworld.Wormholes;

            var link = mngr.GetLinkById(this.Id);

            mngr.Reroll(link);

            WormholeUpdateProtocol.BroadcastToClients(this.Id);
        }
        protected override void ReceiveOnServer(int fromWho)
        {
            var mymod   = WormholesMod.Instance;
            var myworld = ModContent.GetInstance <WormholesWorld>();
            var mngr    = myworld.Wormholes;

            var link = mngr.GetLinkById(this.ID);

            mngr.Reroll(link);

            WormholeUpdateProtocol.BroadcastToClients(this.ID);
        }