Esempio n. 1
0
        public ServerMessage method_1(Room Room)
        {
            try
            {
                StringBuilder thatMessage = new StringBuilder();
                ServerMessage Message = new ServerMessage(Outgoing.HeightMap); // P
                string[] array = this.string_1.Split(new char[]
			{
				Convert.ToChar(13)
			});
                for (int i = 0; i < this.int_5; i++)
                {
                    if (i > 0)
                    {
                        array[i] = array[i].Substring(1);
                    }
                    for (int j = 0; j < this.int_4; j++)
                    {
                        string text = array[i].Substring(j, 1).Trim().ToLower();
                       
                        try
                        {
                            List<RoomItem> list = Room.method_93(j, i);
                            double num2 = Room.method_84(j, i, list);

                            if ((int)num2 < 10)
                            {
                                text = ((int)num2).ToString();
                            }
                            else
                            {
                                text = "0";
                            }
                        }
                      
                        catch
                        {

                        }
                      /*  foreach (RoomItem @class in Room.Hashtable_0.Values)
                        {
                            if (@class.GetX == i && @class.Int32_1 == j)
                            {
                                if ([email protected]().Stackable)
                                {
                                    text = "A";
                                    continue;
                                }

                            }
                        }
                        */
                        thatMessage.Append(text);
                    }
                    thatMessage.Append(string.Concat(Convert.ToChar(13)));
                }
                Message.AppendString(thatMessage.ToString());
             
                return Message;
            }
            catch (Exception ex)
            {
                Logging.LogRoomError(ex.ToString());
                return null;
            }
        }