Ejemplo n.º 1
0
        public void AddMessage(Minecraft2DMessage msg)
        {
            MessageList.Add(msg);

            OpacityMod = .8f;
            TimeoutCounter = QueueTimeout;

            if (MessageReceived != null)
                MessageReceived(msg.ID);
        }
Ejemplo n.º 2
0
        public MessageQueue()
        {
            MessageList = new List<Minecraft2DMessage>();
            #if DEBUG
            Minecraft2DMessage debugMessage = new Minecraft2DMessage();
            debugMessage.Global = true;
            debugMessage.Content = "Your game is running in debug mode, be warned.";
            debugMessage.To = null;

            AddMessage(debugMessage);
            #endif
        }