Exemple #1
0
        public Byte GetNewUserMessageId(Byte messageId)
        {
            // beta steam demos, or any other network protocol conversion
            if (!demo.ConvertNetworkProtocol())
            {
                return(messageId);
            }

            if (demo.Game == null || demo.Game.UserMessages == null)
            {
                return(messageId);
            }

            String name = parser.FindMessageIdString(messageId);

            if (!demo.Game.UserMessages.ContainsKey(name))
            {
                // shouldn't happen, must be a bad message
                // let the parser handle it
                return(messageId);
            }

            return(demo.Game.UserMessages[name]);
        }