-
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.
+ Added OmsiStructPtr and OmsiStruct attributes for complex structs and pointers to structs within structs + Added demarshalling for new attributes + Added a load of new structs + Added OmsiMapKachel (and skeletons of its dependant classes) * Replaced license file with license expression in csproj * Marked some APIs as obsolete * Updated accessibility modifiers of some classes * Refactoring
- Loading branch information
Showing
23 changed files
with
753 additions
and
45 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,4 @@ | ||
[*.cs] | ||
|
||
# IDE0055: Fix formatting | ||
dotnet_diagnostic.IDE0055.severity = silent |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace OmsiHook | ||
{ | ||
public class OmsiComplMapSceneObjInst : OmsiComplMapObjInst | ||
{ | ||
public OmsiComplMapSceneObjInst() : base() { } | ||
|
||
internal OmsiComplMapSceneObjInst(Memory omsiMemory, int baseAddress) : base(omsiMemory, baseAddress) { } | ||
|
||
//TODO: OmsiComplMapSceneObjInst | ||
} | ||
} |
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,9 @@ | ||
namespace OmsiHook | ||
{ | ||
public class OmsiFileObject : OmsiObject | ||
{ | ||
public OmsiFileObject() : base() { } | ||
|
||
internal OmsiFileObject(Memory memory, int address) : base(memory, address) { } | ||
} | ||
} |
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 OmsiHook | ||
{ | ||
public class OmsiFileSpline : OmsiObject | ||
{ | ||
public OmsiFileSpline() : base() { } | ||
|
||
internal OmsiFileSpline(Memory memory, int address) : base(memory, address) { } | ||
|
||
//TODO: OmsiFileSpline | ||
} | ||
} |
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,41 @@ | ||
namespace OmsiHook | ||
{ | ||
public class OmsiFileTerrain : OmsiObject | ||
{ | ||
public OmsiFileTerrain() : base() { } | ||
|
||
internal OmsiFileTerrain(Memory memory, int address) : base(memory, address) { } | ||
|
||
/*TODO: This looks like a 61x61 array of floats representing height + an additional float/int | ||
* It's not correctly defined in IDR so dissassembly is required to work out how to use it. | ||
public float[] Elevs | ||
{ | ||
get => Memory.ReadMemoryStruct<float[]>(Address + 0x4); | ||
}*/ | ||
/*public ? Inactive | ||
{ | ||
get => Memory.ReadMemory<?>(Address + 0x3a2c); | ||
set => Memory.WriteMemory(Address + 0x3a2c, value); | ||
}*/ | ||
public short Count_Inactive | ||
{ | ||
get => Memory.ReadMemory<short>(Address + 0x483c); | ||
set => Memory.WriteMemory(Address + 0x483c, value); | ||
} | ||
public float Width_S | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x4840); | ||
set => Memory.WriteMemory(Address + 0x4840, value); | ||
} | ||
public float Width_N | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x4844); | ||
set => Memory.WriteMemory(Address + 0x4844, value); | ||
} | ||
public int MyKachel | ||
{ | ||
get => Memory.ReadMemory<int>(Address + 0x4848); | ||
set => Memory.WriteMemory(Address + 0x4848, value); | ||
} | ||
} | ||
} |
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 OmsiHook | ||
{ | ||
public class OmsiFileWater : OmsiObject | ||
{ | ||
public OmsiFileWater() : base() { } | ||
|
||
internal OmsiFileWater(Memory memory, int address) : base(memory, address) { } | ||
|
||
//TODO: OmsiFileWater | ||
} | ||
} |
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
Oops, something went wrong.