Skip to content
Snippets Groups Projects
  • baletiballo's avatar
    1209fc65
    Refactoring ServerSlots, removed IPcheckGeneration · 1209fc65
    baletiballo authored
    CommunicationEvents now has an Enum for the ServerSlots and a Dictionary to get their data. This e.g. allows iterating over all slots and thus CheckServer is nearly empty now. Most of the other files just had the references adapted.
    
    There seemed to be no use of IPcheckGeneration, as it got decreased if it was to high.
    1209fc65
    History
    Refactoring ServerSlots, removed IPcheckGeneration
    baletiballo authored
    CommunicationEvents now has an Enum for the ServerSlots and a Dictionary to get their data. This e.g. allows iterating over all slots and thus CheckServer is nearly empty now. Most of the other files just had the references adapted.
    
    There seemed to be no use of IPcheckGeneration, as it got decreased if it was to high.
ServerSlotComponent.cs 315 B
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ServerSlotComponent : MonoBehaviour
{
    /// <summary>
    /// Unity cannot just deal with Enums as values for buttons, so this is the workaround
    /// </summary>
    public CommunicationEvents.ServerSlot serverSlot;
}