summaryrefslogtreecommitdiff
path: root/modules/mono/editor/GodotTools/GodotTools.IdeConnection/Message.cs
blob: f24d324ae3feba2ea7914d347002f98bcfa79dd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System.Linq;

namespace GodotTools.IdeConnection
{
    public struct Message
    {
        public string Id { get; set; }
        public string[] Arguments { get; set; }

        public Message(string id, params string[] arguments)
        {
            Id = id;
            Arguments = arguments;
        }

        public override string ToString()
        {
            return $"(Id: '{Id}', Arguments: '{string.Join(",", Arguments)}')";
        }
    }
}