From f3fd128173b61558212ec473d442d0acf7a315f1 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 13 Jan 2024 21:43:21 +0100 Subject: [PATCH] gamestate.cfg file and ressource --- OpenCS2hock/Resources.Designer.cs | 88 +++++++++++++++++++ OpenCS2hock/Resources.resx | 24 +++++ .../gamestate_integration_opencs2hock.cfg | 23 +++++ 3 files changed, 135 insertions(+) create mode 100644 OpenCS2hock/Resources.Designer.cs create mode 100644 OpenCS2hock/Resources.resx create mode 100644 OpenCS2hock/gamestate_integration_opencs2hock.cfg diff --git a/OpenCS2hock/Resources.Designer.cs b/OpenCS2hock/Resources.Designer.cs new file mode 100644 index 0000000..fe02fff --- /dev/null +++ b/OpenCS2hock/Resources.Designer.cs @@ -0,0 +1,88 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace OpenCS2hock { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("OpenCS2Hock.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to "OpenCS2hock" + ///{ + ///"uri" "http://127.0.0.1:3000" + ///"timeout" "5.0" + ///"buffer" "0.1" + ///"throttle" "0.5" + ///"heartbeat" "60.0" + ///"output" + /// { + /// "precision_time" "3" + /// "precision_position" "1" + /// "precision_vector" "3" + /// } + ///"data" + /// { + /// "provider" "1" // general info about client being listened to: game name, appid, client steamid, etc. + /// "map" "1" // map, gamemode, and current match phase ('warmup', 'intermission', 'gameover', 'live') and current score + /// [rest of string was truncated]";. + /// + internal static string GSI_CFG_Content { + get { + return ResourceManager.GetString("GSI_CFG_Content", resourceCulture); + } + } + } +} diff --git a/OpenCS2hock/Resources.resx b/OpenCS2hock/Resources.resx new file mode 100644 index 0000000..d80b24a --- /dev/null +++ b/OpenCS2hock/Resources.resx @@ -0,0 +1,24 @@ + + + + + + + + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + gamestate_integration_opencs2hock.cfg;System.String, mscorlib, Version=4.0.0.0, Culture=neutral + + \ No newline at end of file diff --git a/OpenCS2hock/gamestate_integration_opencs2hock.cfg b/OpenCS2hock/gamestate_integration_opencs2hock.cfg new file mode 100644 index 0000000..36a1456 --- /dev/null +++ b/OpenCS2hock/gamestate_integration_opencs2hock.cfg @@ -0,0 +1,23 @@ +"OpenCS2hock" +{ +"uri" "http://127.0.0.1:3000" +"timeout" "5.0" +"buffer" "0.1" +"throttle" "0.5" +"heartbeat" "60.0" +"output" + { + "precision_time" "3" + "precision_position" "1" + "precision_vector" "3" + } +"data" + { + "provider" "1" // general info about client being listened to: game name, appid, client steamid, etc. + "map" "1" // map, gamemode, and current match phase ('warmup', 'intermission', 'gameover', 'live') and current score + "round" "1" // round phase ('freezetime', 'over', 'live'), bomb state ('planted', 'exploded', 'defused'), and round winner (if any) + "player_id" "1" // player name, clan tag, observer slot (ie key to press to observe this player) and team + "player_state" "1" // player state for this current round such as health, armor, kills this round, etc. + "player_match_stats" "1" // player stats this match such as kill, assists, score, deaths and MVPs + } +} \ No newline at end of file