-
Notifications
You must be signed in to change notification settings - Fork 0
/
Globals.cs
37 lines (33 loc) · 1.59 KB
/
Globals.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
namespace SavegameEditor
{
//-------------------------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------------
internal static class Globals
{
internal const uint MaximumObjectives = 1700;
internal const uint MaximumInventoryItems = 200;
internal const uint MaximumAbilityItems = 50;
internal const uint MaximumSavedTriggers = 100;
internal const uint MaximumInventoryNotes = 10;
internal const string GameLabel = "SPHINX";
internal static string HashCodesFilePath = @"X:\Sphinx\Albert\Hashcodes.h";
//-------------------------------------------------------------------------------------------------------------------------------
internal static uint GetMaxValueArray(uint[] arr)
{
// Initialize maximum element
uint max = 0;
// Traverse array elements from second and
// compare every element with current max
for (int i = 0; i < arr.Length; i++)
{
if (arr[i] > max)
{
max = arr[i];
}
}
return max;
}
}
//-------------------------------------------------------------------------------------------------------------------------------
}