예제 #1
0
        private Events?Handle(CSVCMsg_CreateStringTable message)
        {
            var table = StringTable.Create(message);

            state.StringsIndex[message.name] = state.Strings.Count;
            state.Strings.Add(table);

            stringTableUpdater.Update(table, message.num_entries, message.string_data);

            return(null);
        }
예제 #2
0
        private Event?Process(CSVCMsg_CreateStringTable message)
        {
            var table = StringTable.Create(message);

            client.StringsIndex[message.name] = client.Strings.Count;
            client.Strings.Add(table);

            stringTableUpdater.Update(table, message.num_entries, message.string_data);

            log.Debug(String.Format(
                          "CSVCMsg_CreateStringTable: name {0} with {1} bytes of data",
                          message.name, message.string_data.Length));
            return(null);
        }
예제 #3
0
파일: Game.cs 프로젝트: vhsoaresr/Dota2
        private Events?Handle(CSVCMsg_UpdateStringTable message)
        {
            var table = state.Strings[message.table_id];

            stringTableUpdater.Update(table, message.num_changed_entries, message.string_data);
            return(null);
        }
예제 #4
0
        private Event?Process(CSVCMsg_UpdateStringTable message)
        {
            StringTable table = client.Strings[message.table_id];

            stringTableUpdater.Update(table, message.num_changed_entries, message.string_data);

            log.Debug(String.Format(
                          "CSVCMsg_UpdateStringTable: id {0} with {1} bytes of data",
                          message.table_id, message.string_data.Length));
            return(null);
        }