This repository has been archived by the owner on Nov 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathICommunicationReceive.cs
111 lines (99 loc) · 4.86 KB
/
ICommunicationReceive.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
using System;
using JetBrains.Annotations;
namespace StinxRP.Communications.Server
{
[PublicAPI]
public interface ICommunicationReceive
{
/// <summary>
/// Registers the specified callback.
/// </summary>
/// <param name="callback">The callback.</param>
void On(Action<ICommunicationMessage> callback);
/// <summary>
/// Registers the specified callback.
/// </summary>
/// <typeparam name="T">The type of the first callback parameter.</typeparam>
/// <param name="callback">The callback.</param>
void On<T>(Action<ICommunicationMessage, T> callback);
/// <summary>
/// Registers the specified callback.
/// </summary>
/// <typeparam name="T1">The type of the first callback parameter.</typeparam>
/// <typeparam name="T2">The type of the second callback parameter.</typeparam>
/// <param name="callback">The callback.</param>
void On<T1, T2>(Action<ICommunicationMessage, T1, T2> callback);
/// <summary>
/// Registers the specified callback.
/// </summary>
/// <typeparam name="T1">The type of the first callback parameter.</typeparam>
/// <typeparam name="T2">The type of the second callback parameter.</typeparam>
/// <typeparam name="T3">The type of the third callback parameter.</typeparam>
/// <param name="callback">The callback.</param>
void On<T1, T2, T3>(Action<ICommunicationMessage, T1, T2, T3> callback);
/// <summary>
/// Registers the specified callback.
/// </summary>
/// <typeparam name="T1">The type of the first callback parameter.</typeparam>
/// <typeparam name="T2">The type of the second callback parameter.</typeparam>
/// <typeparam name="T3">The type of the third callback parameter.</typeparam>
/// <typeparam name="T4">The type of the fourth callback parameter.</typeparam>
/// <param name="callback">The callback.</param>
void On<T1, T2, T3, T4>(Action<ICommunicationMessage, T1, T2, T3, T4> callback);
/// <summary>
/// Registers the specified callback.
/// </summary>
/// <typeparam name="T1">The type of the first callback parameter.</typeparam>
/// <typeparam name="T2">The type of the second callback parameter.</typeparam>
/// <typeparam name="T3">The type of the third callback parameter.</typeparam>
/// <typeparam name="T4">The type of the fourth callback parameter.</typeparam>
/// <typeparam name="T5">The type of the fifth callback parameter.</typeparam>
/// <param name="callback">The callback.</param>
void On<T1, T2, T3, T4, T5>(Action<ICommunicationMessage, T1, T2, T3, T4, T5> callback);
/// <summary>
/// Registers the specified callback.
/// </summary>
/// <param name="callback">The callback.</param>
void OnRequest(Action<ICommunicationMessage> callback);
/// <summary>
/// Registers the specified callback.
/// </summary>
/// <typeparam name="T">The type of the first callback parameter.</typeparam>
/// <param name="callback">The callback.</param>
void OnRequest<T>(Action<ICommunicationMessage, T> callback);
/// <summary>
/// Registers the specified callback.
/// </summary>
/// <typeparam name="T1">The type of the first callback parameter.</typeparam>
/// <typeparam name="T2">The type of the second callback parameter.</typeparam>
/// <param name="callback">The callback.</param>
void OnRequest<T1, T2>(Action<ICommunicationMessage, T1, T2> callback);
/// <summary>
/// Registers the specified callback.
/// </summary>
/// <typeparam name="T1">The type of the first callback parameter.</typeparam>
/// <typeparam name="T2">The type of the second callback parameter.</typeparam>
/// <typeparam name="T3">The type of the third callback parameter.</typeparam>
/// <param name="callback">The callback.</param>
void OnRequest<T1, T2, T3>(Action<ICommunicationMessage, T1, T2, T3> callback);
/// <summary>
/// Registers the specified callback.
/// </summary>
/// <typeparam name="T1">The type of the first callback parameter.</typeparam>
/// <typeparam name="T2">The type of the second callback parameter.</typeparam>
/// <typeparam name="T3">The type of the third callback parameter.</typeparam>
/// <typeparam name="T4">The type of the fourth callback parameter.</typeparam>
/// <param name="callback">The callback.</param>
void OnRequest<T1, T2, T3, T4>(Action<ICommunicationMessage, T1, T2, T3, T4> callback);
/// <summary>
/// Registers the specified callback.
/// </summary>
/// <typeparam name="T1">The type of the first callback parameter.</typeparam>
/// <typeparam name="T2">The type of the second callback parameter.</typeparam>
/// <typeparam name="T3">The type of the third callback parameter.</typeparam>
/// <typeparam name="T4">The type of the fourth callback parameter.</typeparam>
/// <typeparam name="T5">The type of the fifth callback parameter.</typeparam>
/// <param name="callback">The callback.</param>
void OnRequest<T1, T2, T3, T4, T5>(Action<ICommunicationMessage, T1, T2, T3, T4, T5> callback);
}
}