diff --git a/RenX.AlwaysRecord/RenX.AlwaysRecord.vcxproj b/RenX.AlwaysRecord/RenX.AlwaysRecord.vcxproj new file mode 100644 index 0000000..3f0d1f5 --- /dev/null +++ b/RenX.AlwaysRecord/RenX.AlwaysRecord.vcxproj @@ -0,0 +1,85 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {C5CDEDF5-BAFB-4D5B-A4DB-4331E13DBD58} + RenX.AlwaysRecord + + + + Application + true + v140 + MultiByte + + + DynamicLibrary + false + v140 + true + Unicode + + + + + + + + + + + + + $(SolutionDir)$(Configuration)\Plugins\ + AllRules.ruleset + + + + Level3 + Disabled + true + + + true + + + + + Level3 + MaxSpeed + true + true + true + ../Bot;../Jupiter;../RenX.Core + _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + + true + true + true + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RenX.AlwaysRecord/RenX.AlwaysRecord.vcxproj.filters b/RenX.AlwaysRecord/RenX.AlwaysRecord.vcxproj.filters new file mode 100644 index 0000000..d9b473c --- /dev/null +++ b/RenX.AlwaysRecord/RenX.AlwaysRecord.vcxproj.filters @@ -0,0 +1,38 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Header Files + + + + + Source Files + + + + + Resource Files + + + Resource Files + + + Resource Files + + + \ No newline at end of file diff --git a/RenX.AlwaysRecord/RenX_AlwaysRecord.cpp b/RenX.AlwaysRecord/RenX_AlwaysRecord.cpp new file mode 100644 index 0000000..37ac757 --- /dev/null +++ b/RenX.AlwaysRecord/RenX_AlwaysRecord.cpp @@ -0,0 +1,35 @@ +/** + * Copyright (C) 2015 Jessica James. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION + * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * Written by Jessica James + */ + +#include "RenX_Server.h" +#include "RenX_AlwaysRecord.h" + +using namespace Jupiter::literals; + +void RenX_AlwaysRecord::RenX_OnMapStart(RenX::Server *server, const Jupiter::ReadableString &) +{ + server->send("demorec"_jrs); +} + +// Plugin instantiation and entry point. +RenX_AlwaysRecord pluginInstance; + +extern "C" __declspec(dllexport) Jupiter::Plugin *getPlugin() +{ + return &pluginInstance; +} diff --git a/RenX.AlwaysRecord/RenX_AlwaysRecord.h b/RenX.AlwaysRecord/RenX_AlwaysRecord.h new file mode 100644 index 0000000..87fc410 --- /dev/null +++ b/RenX.AlwaysRecord/RenX_AlwaysRecord.h @@ -0,0 +1,38 @@ +/** + * Copyright (C) 2015 Jessica James. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION + * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * Written by Jessica James + */ + +#if !defined _RENX_ALWAYSRECORD_H_HEADER +#define _RENX_ALWAYSRECORD_H_HEADER + +#include "Jupiter/Plugin.h" +#include "Jupiter/Reference_String.h" +#include "RenX_Plugin.h" + +class RenX_AlwaysRecord : public RenX::Plugin +{ +public: // RenX::Plugin + void RenX_OnMapStart(RenX::Server *server, const Jupiter::ReadableString &); + +public: // Jupiter::Plugin + const Jupiter::ReadableString &getName() override { return name; } + +private: + STRING_LITERAL_AS_NAMED_REFERENCE(name, "RenX.AlwaysRecord"); +}; + +#endif // _RENX_ALWAYSRECORD_H_HEADER \ No newline at end of file