-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 #43 from BigBang1112/patch-small
GBX.NET 0.15.1
- Loading branch information
Showing
8 changed files
with
208 additions
and
88 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
11 changes: 11 additions & 0 deletions
11
Src/GBX.NET/Engines/Game/CGameCtnMediaBlockOpponentVisibility.EVisibility.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,11 @@ | ||
namespace GBX.NET.Engines.Game; | ||
|
||
public partial class CGameCtnMediaBlockOpponentVisibility | ||
{ | ||
public enum EVisibility | ||
{ | ||
Hidden, | ||
Ghost, | ||
Opaque | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
Src/GBX.NET/Engines/Game/CGameCtnMediaBlockOpponentVisibility.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,63 @@ | ||
namespace GBX.NET.Engines.Game; | ||
|
||
/// <summary> | ||
/// MediaTracker block - Opponent visibility (0x0338B000) | ||
/// </summary> | ||
[Node(0x0338B000)] | ||
public partial class CGameCtnMediaBlockOpponentVisibility : CGameCtnMediaBlock, CGameCtnMediaBlock.IHasTwoKeys | ||
{ | ||
private TimeSingle start; | ||
private TimeSingle end = TimeSingle.FromSeconds(3); | ||
private EVisibility visibility; | ||
|
||
[NodeMember] | ||
public TimeSingle Start { get => start; set => start = value; } | ||
|
||
[NodeMember] | ||
public TimeSingle End { get => end; set => end = value; } | ||
|
||
[NodeMember] | ||
public EVisibility Visibility { get => visibility; set => visibility = value; } | ||
|
||
protected CGameCtnMediaBlockOpponentVisibility() | ||
{ | ||
|
||
} | ||
|
||
#region Chunks | ||
|
||
#region 0x000 chunk | ||
|
||
/// <summary> | ||
/// CGameCtnMediaBlockOpponentVisibility 0x000 chunk | ||
/// </summary> | ||
[Chunk(0x0338B000)] | ||
public class Chunk0338B000 : Chunk<CGameCtnMediaBlockOpponentVisibility> | ||
{ | ||
public override void ReadWrite(CGameCtnMediaBlockOpponentVisibility n, GameBoxReaderWriter rw) | ||
{ | ||
rw.TimeSingle(ref n.start); | ||
rw.TimeSingle(ref n.end); | ||
} | ||
} | ||
|
||
#endregion | ||
|
||
#region 0x001 chunk | ||
|
||
/// <summary> | ||
/// CGameCtnMediaBlockOpponentVisibility 0x001 chunk | ||
/// </summary> | ||
[Chunk(0x0338B001)] | ||
public class Chunk0338B001 : Chunk<CGameCtnMediaBlockOpponentVisibility> | ||
{ | ||
public override void ReadWrite(CGameCtnMediaBlockOpponentVisibility n, GameBoxReaderWriter rw) | ||
{ | ||
rw.EnumInt32<EVisibility>(ref n.visibility); | ||
} | ||
} | ||
|
||
#endregion | ||
|
||
#endregion | ||
} |
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
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
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
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
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