Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Minor changes before 0.5 Release.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntINFINAit authored and AntINFINAit committed Nov 21, 2020
1 parent 70e74cc commit 5f20669
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -343,3 +343,5 @@ healthchecksdb
*.bat
Server.Test
Server.Test/
/ImpostorHQ.Command/ImpostorHQ.TestPlugins.antiSync
/ImpostorHQ.Command/SupremeSyncServer
4 changes: 2 additions & 2 deletions ImpostorHQ.Command/Impostor.Command.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Monitors.Tests", "Monitors.
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LogParser", "LogParser\LogParser.csproj", "{0D072C9E-1BDA-478A-90C3-144CD637FB40}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Plugin.Test", "Plugin.Test\Plugin.Test.csproj", "{C916DC6C-D2AD-4869-9B5E-8C79D83A14AD}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Plugin.Test", "Plugin.Test\Plugin.Test.csproj", "{C916DC6C-D2AD-4869-9B5E-8C79D83A14AD}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugin Examples", "Plugin Examples", "{591D8590-F104-4D3A-AD0B-B8C825AA66B7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImpostorHQ.Plugin.Fashionable", "ImpostorHQ.Plugin.Fashionable\ImpostorHQ.Plugin.Fashionable.csproj", "{F4D0DB97-AEE8-49B8-A568-0D5B2F714AA0}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ImpostorHQ.Plugin.Fashionable", "ImpostorHQ.Plugin.Fashionable\ImpostorHQ.Plugin.Fashionable.csproj", "{F4D0DB97-AEE8-49B8-A568-0D5B2F714AA0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImpostorHQ.Plugin.Fashionable.Designer", "ImpostorHQ.Plugin.Fashionable.Designer\ImpostorHQ.Plugin.Fashionable.Designer.csproj", "{76E59656-C45F-4F28-A184-9CB15EE5AF73}"
EndProject
Expand Down
25 changes: 24 additions & 1 deletion ImpostorHQ.Command/Impostor.Commands.Core/GamePluginInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,40 @@ public void OnPlayerSpawned(IPlayerSpawnedEvent evt)
{
OnPlayerSpawnedFirst?.Invoke(evt);
}

[EventListener]
public void OnPlayerDestroyed(IPlayerDestroyedEvent evt)
{
OnPlayerLeft?.Invoke(evt);
}
[EventListener]
public void OnGameCreated(IGameCreatedEvent evt)
{
OnLobbyCreated?.Invoke(evt);
}
[EventListener]
public void OnGameDestroyed(IGameDestroyedEvent evt)
{
OnLobbyTerminated?.Invoke(evt);
}
[EventListener]
public void OnGameStarted(IGameStartedEvent evt)
{
OnLobbyStarted?.Invoke(evt);
}


public delegate void DelPlayerCommandReceived(string command, string data, IPlayerChatEvent source);
public delegate void DelPlayerSpawned(IPlayerSpawnedEvent evg);
public delegate void DelPlayerDestroyed(IPlayerDestroyedEvent evt);
public delegate void DelGameCreated(IGameCreatedEvent evt);
public delegate void DelGameDestroyed(IGameDestroyedEvent evt);
public delegate void DelGameStarted(IGameStartedEvent evt);

public event DelPlayerCommandReceived OnPlayerCommandReceived;
public event DelPlayerSpawned OnPlayerSpawnedFirst;
public event DelPlayerDestroyed OnPlayerLeft;
public event DelGameCreated OnLobbyCreated;
public event DelGameDestroyed OnLobbyTerminated;
public event DelGameStarted OnLobbyStarted;
}
}

0 comments on commit 5f20669

Please sign in to comment.