-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from SzymonKaminski/encounter-views-timer
Add few encounter views, extract Timer
- Loading branch information
Showing
7 changed files
with
146 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,48 @@ | ||
using Aero.Gen.Attributes; | ||
using AeroMessages.Common; | ||
using static Aero.Gen.Attributes.AeroMessageIdAttribute; | ||
using static Aero.Gen.Attributes.AeroIfAttribute; | ||
using System; | ||
|
||
namespace AeroMessages.GSS.V66.Generic | ||
{ | ||
[Aero] | ||
[AeroMessageId(MsgType.GSS, MsgSrc.Message, 0, 100)] | ||
public partial class EncounterUIScopeIn | ||
{ | ||
public EncounterUIScopeIn(int size) | ||
{ | ||
_size = size; | ||
} | ||
|
||
public EncounterUIScopeIn() | ||
{ | ||
} | ||
|
||
public EntityId EncounterId; | ||
|
||
[AeroArray(typeof(ushort))] | ||
public byte[] BlobData; // Text keys with values inbetween or? | ||
public byte[] Header; | ||
|
||
public ushort SchemaVersion; // must be equal to 2 | ||
|
||
[AeroArray(typeof(byte))] public SinCardData[] SinCard; | ||
|
||
public ushort Unk1; | ||
[AeroArray(typeof(byte))] public EncounterUIData[] Unk2; | ||
[AeroString] public string Unk3; // Consume remaining bytes, this is probably json? | ||
private int _size; | ||
|
||
[AeroArray(nameof(_size))] | ||
public byte[] ShadowFieldValues; | ||
} | ||
|
||
[AeroBlock] | ||
public struct EncounterUIData | ||
public struct SinCardData | ||
{ | ||
public ulong Unk1; | ||
public ulong Unk2; | ||
public int Unk3; | ||
[AeroArray(typeof(byte))] public SinCardFieldData[] Unk4; | ||
public ulong Guid; | ||
|
||
public EntityId Target; | ||
|
||
[AeroSdb("dbencounterdata::SinCardTemplate", "Id")] | ||
//[AeroSdb("dbencounterdata::SinCardFields", "TemplateId")] | ||
public int Type; | ||
|
||
[AeroArray(typeof(byte))] public SinCardFieldData[] Fields; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
AeroMessages/GSS/V66/Generic/Event/EncounterView/AirTrafficControlView.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Aero.Gen; | ||
using Aero.Gen.Attributes; | ||
|
||
namespace AeroMessages.GSS.V66.Generic.Event.EncounterView | ||
{ | ||
[Aero(AeroGenTypes.View)] | ||
[AeroEncounter("AirTrafficControl")] | ||
public partial class AirTrafficControlView | ||
{ | ||
// has no fields | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
AeroMessages/GSS/V66/Generic/Event/EncounterView/ArcView.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Aero.Gen; | ||
using Aero.Gen.Attributes; | ||
using AeroMessages.Common; | ||
|
||
namespace AeroMessages.GSS.V66.Generic.Event.EncounterView | ||
{ | ||
[Aero(AeroGenTypes.View)] | ||
[AeroEncounter("arc")] | ||
public partial class ArcView | ||
{ | ||
[AeroSdb("dblocalization::LocalizedText", "id")] | ||
private uint arc_name; | ||
|
||
[AeroSdb("dblocalization::LocalizedText", "id")] | ||
private uint activity_string; | ||
|
||
private ushort activity_visible; | ||
|
||
private ushort healthbar_1_visible; | ||
|
||
[AeroNullable] | ||
private EntityId healthbar_1; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
AeroMessages/GSS/V66/Generic/Event/EncounterView/HudTimerView.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Aero.Gen; | ||
using Aero.Gen.Attributes; | ||
|
||
namespace AeroMessages.GSS.V66.Generic.Event.EncounterView | ||
{ | ||
[Aero(AeroGenTypes.View)] | ||
[AeroEncounter("default")] | ||
public partial class HudTimerView | ||
{ | ||
private Timer hudtimer_timer; | ||
|
||
private uint hudtimer_label; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
AeroMessages/GSS/V66/Generic/Event/EncounterView/RaceView.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Aero.Gen; | ||
using Aero.Gen.Attributes; | ||
|
||
namespace AeroMessages.GSS.V66.Generic.Event.EncounterView | ||
{ | ||
[Aero(AeroGenTypes.View)] | ||
[AeroEncounter("race")] | ||
public partial class RaceView | ||
{ | ||
private ushort race_type; | ||
|
||
[AeroSdb("dblocalization::LocalizedText", "id")] | ||
private uint track_name; | ||
|
||
[AeroSdb("dblocalization::LocalizedText", "id")] | ||
private uint challenge_name; | ||
|
||
private ushort waypoint_counter; | ||
|
||
private ushort waypoint_goal; | ||
|
||
private ushort lap_counter; | ||
|
||
private ushort lap_goal; | ||
|
||
private Timer objective_timer; | ||
|
||
private ushort race_started; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters