forked from igorseabra4/HeroesPowerPlant
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76003ec
commit d290159
Showing
10 changed files
with
734 additions
and
248 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
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
32 changes: 32 additions & 0 deletions
32
HeroesPowerPlant/LayoutEditor/SetObjects/ObjectClassesShadow/List00/Object0007_Case.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,32 @@ | ||
namespace HeroesPowerPlant.LayoutEditor | ||
{ | ||
public class Object0007_Case : SetObjectManagerShadow | ||
{ | ||
public string Note => "Not all misc. settings are in list yet."; | ||
|
||
public int Type | ||
{ | ||
get => ReadInt(0); | ||
set => Write(0, value); | ||
} | ||
|
||
public float ScaleX | ||
{ | ||
get => ReadFloat(4); | ||
set => Write(4, value); | ||
} | ||
|
||
public float ScaleY | ||
{ | ||
get => ReadFloat(8); | ||
set => Write(8, value); | ||
} | ||
|
||
public float ScaleZ | ||
{ | ||
get => ReadFloat(12); | ||
set => Write(12, 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
32 changes: 32 additions & 0 deletions
32
HeroesPowerPlant/LayoutEditor/SetObjects/ObjectClassesShadow/List00/Object0065_GUNBeetle.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,32 @@ | ||
namespace HeroesPowerPlant.LayoutEditor | ||
{ | ||
public class Object0065_GUNBeetle : Object_ShadowEmpty | ||
{ | ||
public string Note => "Not all misc. settings are in list yet."; | ||
|
||
public int Attack | ||
{ | ||
get => ReadInt(32); | ||
set => Write(32, value); | ||
} | ||
|
||
public float PatrolWidth | ||
{ | ||
get => ReadInt(40); | ||
set => Write(40, value); | ||
} | ||
|
||
public int Type | ||
{ | ||
get => ReadInt(56); | ||
set => Write(56, value); | ||
} | ||
|
||
public int Weapon | ||
{ | ||
get => ReadInt(60); | ||
set => Write(60, value); | ||
} | ||
} | ||
} | ||
|
52 changes: 51 additions & 1 deletion
52
HeroesPowerPlant/LayoutEditor/SetObjects/ObjectClassesShadow/Object_ShadowEmpty.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 |
---|---|---|
@@ -1,6 +1,56 @@ | ||
namespace HeroesPowerPlant.LayoutEditor | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
|
||
namespace HeroesPowerPlant.LayoutEditor | ||
{ | ||
public class Object_ShadowEmpty : SetObjectManagerShadow | ||
{ | ||
[Browsable(true)] | ||
public byte[] MiscSettingsBytes | ||
{ | ||
get => MiscSettings; | ||
set => MiscSettings = value; | ||
} | ||
|
||
public int[] MiscSettingInts | ||
{ | ||
get | ||
{ | ||
List<int> result = new List<int>(); | ||
for (int i = 0; i < MiscSettings.Length; i += 4) | ||
{ | ||
result.Add(BitConverter.ToInt32(MiscSettings, i)); | ||
} | ||
return result.ToArray(); | ||
} | ||
set | ||
{ | ||
List<byte> result = new List<byte>(); | ||
foreach (int i in value) | ||
result.AddRange(BitConverter.GetBytes(i)); | ||
MiscSettings = result.ToArray(); | ||
} | ||
} | ||
|
||
public float[] MiscSettingFloats | ||
{ | ||
get | ||
{ | ||
List<float> result = new List<float>(); | ||
for (int i = 0; i < MiscSettings.Length; i += 4) | ||
{ | ||
result.Add(BitConverter.ToSingle(MiscSettings, i)); | ||
} | ||
return result.ToArray(); | ||
} | ||
set | ||
{ | ||
List<byte> result = new List<byte>(); | ||
foreach (float i in value) | ||
result.AddRange(BitConverter.GetBytes(i)); | ||
MiscSettings = result.ToArray(); | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.