|
1 | 1 | using Bridge.Models.Message; |
2 | 2 | using Bridge.Packet; |
3 | 3 | using Bridge.State; |
4 | | -using rlbot.flat; |
| 4 | +using RLBot.Flat; |
5 | 5 | using RLBotCS.Model; |
6 | | -using CollisionShapeUnion = rlbot.flat.CollisionShapeUnion; |
| 6 | +using CollisionShapeUnion = RLBot.Flat.CollisionShapeUnion; |
7 | 7 | using MatchPhase = Bridge.Models.Message.MatchPhase; |
8 | 8 | using Rotator = Bridge.Models.Phys.Rotator; |
9 | 9 | using Vector2 = Bridge.Models.Phys.Vector2; |
@@ -86,17 +86,17 @@ public static GamePacketT ToFlatBuffers(this GameState gameState) |
86 | 86 | balls.Add(new() { Physics = ballPhysics, Shape = collisionShape }); |
87 | 87 | } |
88 | 88 |
|
89 | | - rlbot.flat.MatchPhase matchPhase = gameState.MatchPhase switch |
| 89 | + RLBot.Flat.MatchPhase matchPhase = gameState.MatchPhase switch |
90 | 90 | { |
91 | | - MatchPhase.Inactive => rlbot.flat.MatchPhase.Inactive, |
92 | | - MatchPhase.Countdown => rlbot.flat.MatchPhase.Countdown, |
93 | | - MatchPhase.Kickoff => rlbot.flat.MatchPhase.Kickoff, |
94 | | - MatchPhase.Active => rlbot.flat.MatchPhase.Active, |
95 | | - MatchPhase.GoalScored => rlbot.flat.MatchPhase.GoalScored, |
96 | | - MatchPhase.Replay => rlbot.flat.MatchPhase.Replay, |
97 | | - MatchPhase.Paused => rlbot.flat.MatchPhase.Paused, |
98 | | - MatchPhase.Ended => rlbot.flat.MatchPhase.Ended, |
99 | | - _ => rlbot.flat.MatchPhase.Inactive, |
| 91 | + MatchPhase.Inactive => RLBot.Flat.MatchPhase.Inactive, |
| 92 | + MatchPhase.Countdown => RLBot.Flat.MatchPhase.Countdown, |
| 93 | + MatchPhase.Kickoff => RLBot.Flat.MatchPhase.Kickoff, |
| 94 | + MatchPhase.Active => RLBot.Flat.MatchPhase.Active, |
| 95 | + MatchPhase.GoalScored => RLBot.Flat.MatchPhase.GoalScored, |
| 96 | + MatchPhase.Replay => RLBot.Flat.MatchPhase.Replay, |
| 97 | + MatchPhase.Paused => RLBot.Flat.MatchPhase.Paused, |
| 98 | + MatchPhase.Ended => RLBot.Flat.MatchPhase.Ended, |
| 99 | + _ => RLBot.Flat.MatchPhase.Inactive, |
100 | 100 | }; |
101 | 101 |
|
102 | 102 | MatchInfoT matchInfo = new() |
@@ -170,7 +170,7 @@ public static GamePacketT ToFlatBuffers(this GameState gameState) |
170 | 170 | Name = car.Name, |
171 | 171 | Team = car.Team, |
172 | 172 | Boost = car.Boost, |
173 | | - SpawnId = car.SpawnId, |
| 173 | + PlayerId = car.PlayerId, |
174 | 174 | ScoreInfo = new() |
175 | 175 | { |
176 | 176 | Score = car.ScoreInfo.Score, |
|
0 commit comments