public void ReceiveMessage(LampMessage message)
        {
            switch (message.Type) {
                case LampMessageType.Action:
                    LampAction lampAction = ( (LampAction) message );

                    List<LampAction> lampActions = Actions[lampAction.TickToInitiate] = Actions[lampAction.TickToInitiate] ?? new List<LampAction>(); //set it and forget it!

                    lampActions.Add(lampAction);

                    break;
            }
        }
 public void SendMessageToPlayers(LampMessage message, params LampPlayer[] players)
 {
     myManager.EmitAll(players.Cast<List<LampPlayer>>(), message);
 }
 public void SendMessageToPlayer(LampMessage message, LampPlayer player)
 {
     myManager.Emit(player, message);
 }