-
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.
Merge pull request #18 from space928/humans
Humans
- Loading branch information
Showing
6 changed files
with
370 additions
and
1 deletion.
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
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,143 @@ | ||
using System; | ||
|
||
namespace OmsiHook | ||
{ | ||
public class OmsiHumanBeing : OmsiComplMapObj | ||
{ | ||
internal OmsiHumanBeing(Memory omsiMemory, int baseAddress) : base(omsiMemory, baseAddress) { } | ||
internal OmsiHumanBeing() : base() { } | ||
|
||
public string Voice | ||
{ | ||
get => Memory.ReadMemoryString(Address + 0x264); | ||
set => Memory.WriteMemory(Address + 0x264, value); | ||
} | ||
public float Age | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x268); | ||
set => Memory.WriteMemory(Address + 0x268, value); | ||
} | ||
public float AssHeight | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x26c); | ||
set => Memory.WriteMemory(Address + 0x26c, value); | ||
} | ||
public float Height | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x270); | ||
set => Memory.WriteMemory(Address + 0x270, value); | ||
} | ||
public float FeetDist | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x274); | ||
set => Memory.WriteMemory(Address + 0x274, value); | ||
} | ||
public D3DVector Shoulder | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x278); | ||
set => Memory.WriteMemory(Address + 0x278, value); | ||
} | ||
public D3DVector Elbow | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x284); | ||
set => Memory.WriteMemory(Address + 0x284, value); | ||
} | ||
public D3DVector Carpus | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x290); | ||
set => Memory.WriteMemory(Address + 0x290, value); | ||
} | ||
public D3DVector Finger | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x29c); | ||
set => Memory.WriteMemory(Address + 0x29c, value); | ||
} | ||
public D3DVector Neck | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x2a8); | ||
set => Memory.WriteMemory(Address + 0x2a8, value); | ||
} | ||
public D3DVector Waist | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x2b4); | ||
set => Memory.WriteMemory(Address + 0x2b4, value); | ||
} | ||
public D3DVector Hip | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x2c0); | ||
set => Memory.WriteMemory(Address + 0x2c0, value); | ||
} | ||
public D3DVector Knee | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x2cc); | ||
set => Memory.WriteMemory(Address + 0x2cc, value); | ||
} | ||
/// <summary> | ||
/// Incriment | ||
/// </summary> | ||
public float Anim_Walk_Schritteweite | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x2d8); | ||
set => Memory.WriteMemory(Address + 0x2d8, value); | ||
} | ||
/// <summary> | ||
/// Arm Swing? | ||
/// </summary> | ||
public float Anim_Walk_ArmSchwing | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x2dc); | ||
set => Memory.WriteMemory(Address + 0x2dc, value); | ||
} | ||
/// <summary> | ||
/// Hips? | ||
/// </summary> | ||
public float Anim_Walk_Huefte | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x2e0); | ||
set => Memory.WriteMemory(Address + 0x2e0, value); | ||
} | ||
/// <summary> | ||
/// Waist? | ||
/// </summary> | ||
public float Anim_Walk_Taille | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x2e4); | ||
set => Memory.WriteMemory(Address + 0x2e4, value); | ||
} | ||
public float Anim_Walk_Upper_Arm_Beta | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x2e8); | ||
set => Memory.WriteMemory(Address + 0x2e8, value); | ||
} | ||
public D3DVector UA_L_Vec | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x2ec); | ||
set => Memory.WriteMemory(Address + 0x2cc, value); | ||
} | ||
public D3DVector UA_R_Vec | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x2f8); | ||
set => Memory.WriteMemory(Address + 0x2cc, value); | ||
} | ||
public D3DVector OA_L_Vec | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x304); | ||
set => Memory.WriteMemory(Address + 0x2cc, value); | ||
} | ||
public D3DVector OA_R_Vec | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x310); | ||
set => Memory.WriteMemory(Address + 0x2cc, value); | ||
} | ||
public D3DVector OS_L_Vec | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x31c); | ||
set => Memory.WriteMemory(Address + 0x2cc, value); | ||
} | ||
public D3DVector OS_R_Vec | ||
{ | ||
get => Memory.ReadMemory<D3DVector>(Address + 0x328); | ||
set => Memory.WriteMemory(Address + 0x2cc, 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,20 @@ | ||
namespace OmsiHook | ||
{ | ||
public class OmsiSound : OmsiObject | ||
{ | ||
internal OmsiSound(Memory omsiMemory, int baseAddress) : base(omsiMemory, baseAddress) { } | ||
public OmsiSound() : base() { } | ||
|
||
/*public DirectSound8 Device | ||
{ | ||
get => Memory.ReadMemory<DirectSound8>(Address + 0x4); | ||
set => Memory.WriteMemory(Address + 0x4, value); | ||
}*/ | ||
public string FileName | ||
{ | ||
get => Memory.ReadMemoryString(Memory.ReadMemory<int>(Address + 0x8)); | ||
set => Memory.WriteMemory(Address + 0x8, 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,79 @@ | ||
namespace OmsiHook | ||
{ | ||
public class OmsiSoundPack : OmsiObject | ||
{ | ||
internal OmsiSoundPack(Memory omsiMemory, int baseAddress) : base(omsiMemory, baseAddress) { } | ||
internal OmsiSoundPack() : base() { } | ||
|
||
/*public DirectSound8 Device | ||
{ | ||
get => Memory.ReadMemory<DirectSound8>(Address + 0x4); | ||
set => Memory.WriteMemory(Address + 0x4, value); | ||
}*/ | ||
public string FileName | ||
{ | ||
get => Memory.ReadMemoryString(Memory.ReadMemory<int>(Address + 0x8)); | ||
set => Memory.WriteMemory(Address + 0x8, value); | ||
} | ||
public bool AI | ||
{ | ||
get => Memory.ReadMemory<bool>(Address + 0xc); | ||
set => Memory.WriteMemory(Address + 0xc, value); | ||
} | ||
public string Path | ||
{ | ||
get => Memory.ReadMemoryString(Memory.ReadMemory<int>(Address + 0x10)); | ||
set => Memory.WriteMemory(Address + 0x10, value); | ||
} | ||
public int SoundCount | ||
{ | ||
get => Memory.ReadMemory<int>(Address + 0x14); | ||
set => Memory.WriteMemory(Address + 0x14, value); | ||
} | ||
public OmsiSound[] Sounds | ||
{ | ||
get => Memory.ReadMemoryObjArray<OmsiSound>(Address + 0x18); | ||
} | ||
public float RefRange | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x1c); | ||
set => Memory.WriteMemory(Address + 0x1c, value); | ||
} | ||
/* TODO: | ||
public floatptr[] Vars | ||
{ | ||
get => Memory.ReadMemoryStructArray<floatptr>(Address + 0x20); | ||
}*/ | ||
public D3DMatrix KoordSystem | ||
{ | ||
get => Memory.ReadMemory<D3DMatrix>(Memory.ReadMemory<int>(Address + 0x24)); | ||
set => Memory.WriteMemory(Memory.ReadMemory<int>(Address + 0x24), value); | ||
} | ||
public bool Loaded | ||
{ | ||
get => Memory.ReadMemory<bool>(Address + 0x28); | ||
set => Memory.WriteMemory(Address + 0x28, value); | ||
} | ||
public float Dist | ||
{ | ||
get => Memory.ReadMemory<float>(Address + 0x2c); | ||
set => Memory.WriteMemory(Address + 0x2c, value); | ||
} | ||
public string SoundIdent | ||
{ | ||
get => Memory.ReadMemoryString(Memory.ReadMemory<int>(Address + 0x30), true); | ||
set => Memory.WriteMemory(Address + 0x30, value); | ||
} | ||
public bool TooFar | ||
{ | ||
get => Memory.ReadMemory<bool>(Address + 0x34); | ||
set => Memory.WriteMemory(Address + 0x34, value); | ||
} | ||
public bool Stopped_TooFar | ||
{ | ||
get => Memory.ReadMemory<bool>(Address + 0x35); | ||
set => Memory.WriteMemory(Address + 0x35, 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