-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* + OmsiSound Completed for @sjain882 + OmsiBoolClass + Required Structs * + Convert to IntPtr * + BetterCast * + .ToInt32()
- Loading branch information
1 parent
cab059e
commit e021204
Showing
3 changed files
with
258 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace OmsiHook | ||
{ | ||
/// <summary> | ||
/// Defines a set of conditions based on various data types. | ||
/// </summary> | ||
public class OmsiBoolClass : OmsiObject | ||
{ | ||
internal OmsiBoolClass(Memory omsiMemory, int baseAddress) : base(omsiMemory, baseAddress) { } | ||
public OmsiBoolClass() : base() { } | ||
|
||
public OmsiBoolClassCondiBool[] CondisBool | ||
{ | ||
get => Memory.ReadMemoryStructArray<OmsiBoolClassCondiBool>(Address + 0x4); | ||
} | ||
public OmsiBoolClassCondiInt[] CondisInt | ||
{ | ||
get => Memory.ReadMemoryStructArray<OmsiBoolClassCondiInt>(Address + 0x8); | ||
} | ||
public OmsiBoolClassCondiFloat[] CondisFloat | ||
{ | ||
get => Memory.ReadMemoryStructArray<OmsiBoolClassCondiFloat>(Address + 0xc); | ||
} | ||
} | ||
} |
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