public void AddDie(Die.DieType type)
    {
        VirtualDie newDie = new VirtualDie("VDie" + virtualDice.Count, "@VDie" + globalAddressCounter, type, this);

        virtualDice.Add(newDie);
        globalAddressCounter++;
    }
Ejemplo n.º 2
0
    public VirtualDie(string name, string address, Die.DieType type, ICoroutineManager coroutineManager)
    {
        this.name             = name;
        this.address          = address;
        this.dieType          = type;
        this.coroutineManager = coroutineManager;

        messageDelegates = new Dictionary <DieMessageType, MessageReceivedDelegate>();

        // Setup delegates for face and telemetry
        messageDelegates.Add(DieMessageType.RequestState, OnRequestStateMessage);
        messageDelegates.Add(DieMessageType.WhoAreYou, OnWhoAreYouMessage);
    }