示例#1
0
    public static RequestRandomEventAllowedChange Send(string userId, string adminToken, bool randomEventsAllowed)
    {
        RequestRandomEventAllowedChange msg = new RequestRandomEventAllowedChange
        {
            Userid              = userId,
            AdminToken          = adminToken,
            RandomEventsAllowed = randomEventsAllowed
        };

        msg.Send();
        return(msg);
    }
示例#2
0
 public void ToggleRandomEvents()
 {
     currentData.randomEventsAllowed = randomEventToggle.isOn;
     RequestRandomEventAllowedChange.Send(ServerData.UserID, PlayerList.Instance.AdminToken, randomEventToggle.isOn);
 }
示例#3
0
 public void ToggleRandomEvents()
 {
     currentData.randomEventsAllowed = randomEventToggle.isOn;
     RequestRandomEventAllowedChange.Send(randomEventToggle.isOn);
 }