From e29d959e38fdca8a8ae09e8783d72bdae6411afa Mon Sep 17 00:00:00 2001 From: Virx Date: Sat, 10 Aug 2024 13:29:06 -0400 Subject: [PATCH] Update to new spec --- Cargo.lock | 10 +++++----- Cargo.toml | 2 +- flatbuffers-schema | 2 +- pytest.py | 10 +++++----- src/lib.rs | 5 ++++- 5 files changed, 16 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b82c111..2f48377 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -281,7 +281,7 @@ dependencies = [ [[package]] name = "rlbot-flatbuffers-py" -version = "0.6.0" +version = "0.7.0" dependencies = [ "flatbuffers", "get-size", @@ -306,18 +306,18 @@ checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" -version = "1.0.204" +version = "1.0.205" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12" +checksum = "e33aedb1a7135da52b7c21791455563facbbcc43d0f0f66165b42c21b3dfb150" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.204" +version = "1.0.205" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222" +checksum = "692d6f5ac90220161d6774db30c662202721e64aed9058d2c394f451261420c1" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index dcb7a05..84390a1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rlbot-flatbuffers-py" -version = "0.6.0" +version = "0.7.0" edition = "2021" description = "A Python module implemented in Rust for serializing and deserializing RLBot's flatbuffers" repository = "https://github.com/VirxEC/rlbot_flatbuffers_py" diff --git a/flatbuffers-schema b/flatbuffers-schema index fc972ab..3787cd9 160000 --- a/flatbuffers-schema +++ b/flatbuffers-schema @@ -1 +1 @@ -Subproject commit fc972ab24893a44f6df316c41d3eaf12b0c8ead1 +Subproject commit 3787cd9957e54d4a1adaa4edbcf3c300e50e2e7b diff --git a/pytest.py b/pytest.py index 7ead4cb..73e8f13 100644 --- a/pytest.py +++ b/pytest.py @@ -15,7 +15,7 @@ def random_string(): def random_player_config(): return PlayerConfiguration( - variety=Psyonix(1.0), + variety=Psyonix(PsyonixSkill.AllStar), name=random_string(), location=random_string(), run_command=random_string(), @@ -42,10 +42,10 @@ def random_script_config(): player_info = PlayerInfo(accolades=["MVP", "Hat Trick"]) eval(repr(player_info)) - ready_message = ReadyMessage(True, close_after_match=True) - print(hash(ready_message)) - print(ready_message) - eval(repr(ready_message)) + connection_settings = ConnectionSettings(True, close_after_match=True) + print(hash(connection_settings)) + print(connection_settings) + eval(repr(connection_settings)) print() dgs = DesiredGameState( diff --git a/src/lib.rs b/src/lib.rs index 73121c2..962bdf3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -182,6 +182,7 @@ pynamedmodule! { CarAnchor, CollisionShape, Color, + ConnectionSettings, ConsoleCommand, ControllerState, CylinderShape, @@ -203,6 +204,7 @@ pynamedmodule! { GoalInfo, GravityOption, Human, + InitComplete, Launcher, Line3D, LoadoutPaint, @@ -223,8 +225,8 @@ pynamedmodule! { PolyLine3D, PredictionSlice, Psyonix, + PsyonixSkill, RLBot, - ReadyMessage, RelativeAnchor, RemoveRenderGroup, RenderAnchor, @@ -238,6 +240,7 @@ pynamedmodule! { ScoreInfo, ScriptConfiguration, SeriesLengthOption, + SetLoadout, SphereShape, StartCommand, StopCommand,