//ds1 related stuff
public static int GetDS1ObjectFromGameObject(D2Data.GameObjectID GameObjectID)
{
return GetDS1ObjectFromGameObject((int)GameObjectID);
}
public static int GetDS1ObjectFromGameObject(int GameObjectID)
{
for (int i = 0; i < ObjectIndexes.Length; i++)
if (ObjectIndexes[i] == GameObjectID)
return i;
return -1;
}
public static D2Data.GameObjectID GetGameObjectFromDS1(int DS1_index)
{
if (DS1_index > 99)
return D2Data.GameObjectID.NotApplicable;
return (D2Data.GameObjectID)(ObjectIndexes[DS1_index]);
}
public static readonly int[] ObjectIndexes = new int[]{
12,37,39,35,36,5,17,18,19,20,21,22,30,70,70,69,69,29,31,33,34,37,61,65,66,8,26,28,82,2,81,84,83,78,61,103,108,
119,580,130,159,163,169,160,161,162,104,105,106,107,179,180,119,157,247,248,155,174,175,139,140,141,144,6,240,
241,242,54,55,56,57,58,171,178,239,245,250,111,138,132,164,165,77,85,86,262,263,264,265,50,51,79,53,1,3,7,46,
38,256,257,
};