public static RequestRandomEventAllowedChange Send(string userId, string adminToken, bool randomEventsAllowed) { RequestRandomEventAllowedChange msg = new RequestRandomEventAllowedChange { Userid = userId, AdminToken = adminToken, RandomEventsAllowed = randomEventsAllowed }; msg.Send(); return(msg); }
public void ToggleRandomEvents() { currentData.randomEventsAllowed = randomEventToggle.isOn; RequestRandomEventAllowedChange.Send(ServerData.UserID, PlayerList.Instance.AdminToken, randomEventToggle.isOn); }
public void ToggleRandomEvents() { currentData.randomEventsAllowed = randomEventToggle.isOn; RequestRandomEventAllowedChange.Send(randomEventToggle.isOn); }