Skip to content

Commit

Permalink
Add second data field class, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
soccermitchy committed Dec 20, 2016
1 parent f282de1 commit e60e908
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions gtaserver.core/PluginAPI/Events/PluginResponses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

namespace GTAServer.PluginAPI.Events
{
public class PluginResponse<T>

public class PluginResponse
{
/// <summary>
/// If the event should continue being processed by other plugins
Expand All @@ -15,21 +16,21 @@ public class PluginResponse<T>
/// If the event should continue being processed by the server
/// </summary>
public bool ContinueServerProc;
}

public class PluginResponse<T> : PluginResponse
{
/// <summary>
/// Data specific to the event time, usually specified in the event.
/// Data specific to the event type, usually specified in the event.
/// </summary>
public T Data;
}

public class PluginResponse
public class PluginResponse<T1, T2> : PluginResponse<T1>
{
/// <summary>
/// If the event should continue being processed by other plugins
/// </summary>
public bool ContinuePluginProc;
/// <summary>
/// If the event should continue being processed by the server
/// Second data field specific to event
/// </summary>
public bool ContinueServerProc;
public T2 Data2;
}
}

0 comments on commit e60e908

Please sign in to comment.