aboutsummaryrefslogtreecommitdiff
path: root/reference/game.c
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-05-28 00:39:29 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-05-28 00:39:29 -0300
commit5505f28c358a50e9d610784303485cc757459162 (patch)
tree7756da65dde0d3c125ae71f2ce2afdeb7dc8cd54 /reference/game.c
parent42959207914208438261810757abea43422a28fe (diff)
downloadgame-5505f28c358a50e9d610784303485cc757459162.tar.gz
game-5505f28c358a50e9d610784303485cc757459162.zip
finish objects.cc
Diffstat (limited to 'reference/game.c')
-rw-r--r--reference/game.c689
1 files changed, 0 insertions, 689 deletions
diff --git a/reference/game.c b/reference/game.c
index b8991a1..722a5aa 100644
--- a/reference/game.c
+++ b/reference/game.c
@@ -4398,695 +4398,6 @@ void __static_initialization_and_destruction_0(int __initialize_p,int __priority
return;
}
-
-
-int GetFlagByName(char *Name)
-
-{
- int iVar1;
- int i;
- int iVar2;
- char (*s1) [20];
-
- iVar2 = 0;
- s1 = FlagNames;
- do {
- iVar1 = stricmp(*s1,Name,-1);
- if (iVar1 == 0) {
- return iVar2;
- }
- iVar2 = iVar2 + 1;
- s1 = s1 + 1;
- } while (iVar2 < 0x42);
- return -1;
-}
-
-
-
-int GetTypeAttributeByName(char *Name)
-
-{
- int iVar1;
- int i;
- int iVar2;
- char (*s1) [30];
-
- iVar2 = 0;
- s1 = TypeAttributeNames;
- do {
- iVar1 = stricmp(*s1,Name,-1);
- if (iVar1 == 0) {
- return iVar2;
- }
- iVar2 = iVar2 + 1;
- s1 = s1 + 1;
- } while (iVar2 < 0x3e);
- return -1;
-}
-
-
-
-// WARNING: Unknown calling convention -- yet parameter storage is locked
-
-void LoadObjects(void)
-
-{
- FLAG FVar1;
- bool bVar2;
- bool bVar3;
- char cVar4;
- char *pcVar5;
- TObjectType *pTVar6;
- ulong uVar7;
- int iVar8;
- uint uVar9;
- int iVar10;
- int TypeID;
- int i;
- FLAG FVar11;
- char *pcVar12;
- undefined1 uVar13;
- char *pcVar14;
- char (*local_5084) [20];
- char (*local_5080) [30];
- int local_5074;
- uchar b;
- char *local_5050;
- int local_5048;
- int i_2;
- int Offset;
- char local_501c [4];
- char Ident [30];
- TReadScriptFile Script;
- char local_101c [4];
- char FileName [4096];
-
- local_5050 = local_101c;
- pcVar14 = DATAPATH;
- sprintf(local_5050,"%s/objects.srv");
- // try { // try from 08054e09 to 08054e0d has its CatchHandler @ 08055640
- TReadScriptFile::TReadScriptFile((TReadScriptFile *)(Ident + 0x1c));
- // try { // try from 08054e1b to 080555fd has its CatchHandler @ 08055620
- TReadScriptFile::open((TReadScriptFile *)(Ident + 0x1c),local_5050,(int)pcVar14);
- pcVar14 = (char *)0xffffffff;
-LAB_08054e25:
- TReadScriptFile::nextToken((TReadScriptFile *)(Ident + 0x1c));
- if (stack0xffffb004 == 0) {
- TReadScriptFile::close((TReadScriptFile *)(Ident + 0x1c),(int)local_5050);
- // try { // try from 08055607 to 0805560b has its CatchHandler @ 08055640
- TReadScriptFile::~TReadScriptFile((TReadScriptFile *)(Ident + 0x1c),(int)local_5050);
- return;
- }
- uVar13 = stack0xffffb004 == 1;
- if (!(bool)uVar13) {
- TReadScriptFile::error((TReadScriptFile *)(Ident + 0x1c),"Identifier expected");
- }
- pcVar5 = TReadScriptFile::getIdentifier((TReadScriptFile *)(Ident + 0x1c));
- strcpy(local_501c,pcVar5);
- local_5050 = (char *)0x3d;
- TReadScriptFile::readSymbol((TReadScriptFile *)(Ident + 0x1c),'=');
- iVar10 = 7;
- pcVar5 = local_501c;
- pcVar12 = "typeid";
- do {
- if (iVar10 == 0) break;
- iVar10 = iVar10 + -1;
- uVar13 = *pcVar5 == *pcVar12;
- pcVar5 = pcVar5 + 1;
- pcVar12 = pcVar12 + 1;
- } while ((bool)uVar13);
- if ((bool)uVar13) {
- pcVar14 = (char *)TReadScriptFile::readNumber((TReadScriptFile *)(Ident + 0x1c));
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)pcVar14);
- pTVar6->Name = (char *)0x0;
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)pcVar14);
- pTVar6->Description = (char *)0x0;
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)pcVar14);
- pTVar6->Flags[0] = '\0';
- pTVar6->Flags[1] = '\0';
- pTVar6->Flags[2] = '\0';
- pTVar6->Flags[3] = '\0';
- iVar10 = 0;
- pTVar6->Flags[4] = '\0';
- pTVar6->Flags[5] = '\0';
- pTVar6->Flags[6] = '\0';
- pTVar6->Flags[7] = '\0';
- pTVar6->Flags[8] = '\0';
- do {
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)pcVar14);
- pTVar6->Attributes[iVar10] = 0;
- iVar10 = iVar10 + 1;
- } while (iVar10 < 0x3e);
- iVar10 = 0;
- do {
- local_5050 = pcVar14;
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)pcVar14);
- pTVar6->AttributeOffsets[iVar10] = -1;
- iVar10 = iVar10 + 1;
- } while (iVar10 < 0x12);
- }
- uVar13 = pcVar14 == (char *)0x0;
- if ((int)pcVar14 < 0) {
- local_5050 = "Invalid type id";
- TReadScriptFile::error((TReadScriptFile *)(Ident + 0x1c),"Invalid type id");
- }
- iVar10 = 5;
- pcVar5 = local_501c;
- pcVar12 = "name";
- do {
- if (iVar10 == 0) break;
- iVar10 = iVar10 + -1;
- uVar13 = *pcVar5 == *pcVar12;
- pcVar5 = pcVar5 + 1;
- pcVar12 = pcVar12 + 1;
- } while ((bool)uVar13);
- if ((bool)uVar13) {
- local_5050 = pcVar14;
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)pcVar14);
- pcVar5 = TReadScriptFile::readString((TReadScriptFile *)(Ident + 0x1c));
- pcVar5 = AddStaticString(pcVar5);
- pTVar6->Name = pcVar5;
- }
- iVar10 = 0xc;
- pcVar5 = local_501c;
- pcVar12 = "description";
- do {
- if (iVar10 == 0) break;
- iVar10 = iVar10 + -1;
- uVar13 = *pcVar5 == *pcVar12;
- pcVar5 = pcVar5 + 1;
- pcVar12 = pcVar12 + 1;
- } while ((bool)uVar13);
- if ((bool)uVar13) {
- local_5050 = pcVar14;
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)pcVar14);
- pcVar5 = TReadScriptFile::readString((TReadScriptFile *)(Ident + 0x1c));
- pcVar5 = AddStaticString(pcVar5);
- pTVar6->Description = pcVar5;
- }
- iVar10 = 6;
- pcVar5 = local_501c;
- pcVar12 = "flags";
- do {
- if (iVar10 == 0) break;
- iVar10 = iVar10 + -1;
- uVar13 = *pcVar5 == *pcVar12;
- pcVar5 = pcVar5 + 1;
- pcVar12 = pcVar12 + 1;
- } while ((bool)uVar13);
- if ((bool)uVar13) {
- TReadScriptFile::readSymbol((TReadScriptFile *)(Ident + 0x1c),'{');
-LAB_08055258:
- TReadScriptFile::nextToken((TReadScriptFile *)(Ident + 0x1c));
- if (stack0xffffb004 != 6) goto LAB_080552b0;
- cVar4 = TReadScriptFile::getSpecial((TReadScriptFile *)(Ident + 0x1c));
- i_2 = 0;
- local_5048 = 0;
- if (cVar4 != '}') goto code_r0x08055295;
- goto LAB_08055365;
- }
- goto LAB_08054f04;
-code_r0x08055295:
- if ((stack0xffffb004 != 6) ||
- (cVar4 = TReadScriptFile::getSpecial((TReadScriptFile *)(Ident + 0x1c)), cVar4 != ',')) {
-LAB_080552b0:
- pcVar5 = TReadScriptFile::getIdentifier((TReadScriptFile *)(Ident + 0x1c));
- iVar10 = 0;
- local_5084 = FlagNames;
- do {
- iVar8 = stricmp(*local_5084,pcVar5,-1);
- if (iVar8 == 0) goto LAB_08055307;
- local_5084 = local_5084 + 1;
- iVar10 = iVar10 + 1;
- } while (iVar10 < 0x42);
- iVar10 = -1;
-LAB_08055307:
- if (iVar10 == -1) {
- TReadScriptFile::error((TReadScriptFile *)(Ident + 0x1c),"Unknown flag");
- }
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)pcVar14);
- iVar8 = iVar10 + 7;
- if (-1 < iVar10) {
- iVar8 = iVar10;
- }
- pTVar6->Flags[iVar8 >> 3] =
- pTVar6->Flags[iVar8 >> 3] |
- (byte)(1 << ((char)iVar10 - (char)((iVar8 >> 3) << 3) & 0x1fU));
- }
- goto LAB_08055258;
-LAB_08055365:
- do {
- bVar3 = false;
- bVar2 = false;
- if ((ObjectTypes.min <= (int)pcVar14) && ((int)pcVar14 <= ObjectTypes.max)) {
- bVar2 = true;
- }
- local_5050 = pcVar14;
- if (!bVar2) {
- error(&DAT_080f0a80,pcVar14);
- local_5050 = (char *)0x0;
- }
- FVar1 = InstanceAttributeFlags[local_5048];
- FVar11 = FVar1;
- if (0x7fffffff < FVar1) {
- FVar11 = FVar1 + USEEVENT;
- }
- uVar9 = 1 << ((char)FVar1 + (char)((int)FVar11 >> 3) * -8 & 0x1fU);
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)local_5050);
- if ((uint)(pTVar6->Flags[(int)FVar11 >> 3] & (byte)uVar9) == (uVar9 & 0xff)) {
-LAB_08055442:
- bVar3 = true;
- }
- else if (local_5048 == 0) {
- bVar2 = false;
- if ((ObjectTypes.min <= (int)pcVar14) && (bVar2 = true, ObjectTypes.max < (int)pcVar14))
- {
- bVar2 = false;
- }
- local_5050 = pcVar14;
- if (!bVar2) {
- error(&DAT_080f0a80,pcVar14);
- local_5050 = (char *)0x0;
- }
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)local_5050);
- if ((pTVar6->Flags[0] & 0x20) != 0) goto LAB_08055442;
- }
- if (bVar3) {
- local_5050 = pcVar14;
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)pcVar14);
- pTVar6->AttributeOffsets[local_5048] = i_2;
- i_2 = i_2 + 1;
- }
- local_5048 = local_5048 + 1;
- uVar13 = local_5048 == 0x11;
- } while (local_5048 < 0x12);
-LAB_08054f04:
- iVar10 = 0xb;
- pcVar5 = local_501c;
- pcVar12 = "attributes";
- do {
- if (iVar10 == 0) break;
- iVar10 = iVar10 + -1;
- uVar13 = *pcVar5 == *pcVar12;
- pcVar5 = pcVar5 + 1;
- pcVar12 = pcVar12 + 1;
- } while ((bool)uVar13);
- if ((bool)uVar13) {
- local_5050 = (char *)0x7b;
- TReadScriptFile::readSymbol((TReadScriptFile *)(Ident + 0x1c),'{');
-LAB_08054f35:
- TReadScriptFile::nextToken((TReadScriptFile *)(Ident + 0x1c));
- if (stack0xffffb004 != 6) goto LAB_08054f7d;
- cVar4 = TReadScriptFile::getSpecial((TReadScriptFile *)(Ident + 0x1c));
- if (cVar4 != '}') goto code_r0x08054f62;
- }
- goto LAB_08054e25;
-code_r0x08054f62:
- if ((stack0xffffb004 != 6) ||
- (cVar4 = TReadScriptFile::getSpecial((TReadScriptFile *)(Ident + 0x1c)), cVar4 != ',')) {
-LAB_08054f7d:
- pcVar5 = TReadScriptFile::getIdentifier((TReadScriptFile *)(Ident + 0x1c));
- local_5074 = 0;
- local_5080 = TypeAttributeNames;
- do {
- iVar10 = stricmp(*local_5080,pcVar5,-1);
- if (iVar10 == 0) goto LAB_08054fde;
- local_5080 = local_5080 + 1;
- local_5074 = local_5074 + 1;
- } while (local_5074 < 0x3e);
- local_5074 = -1;
-LAB_08054fde:
- if (local_5074 == -1) {
- TReadScriptFile::error((TReadScriptFile *)(Ident + 0x1c),"Unknown attribute");
- }
- TReadScriptFile::readSymbol((TReadScriptFile *)(Ident + 0x1c),'=');
- local_5050 = pcVar14;
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)pcVar14);
- uVar7 = TReadScriptFile::readNumber((TReadScriptFile *)(Ident + 0x1c));
- pTVar6->Attributes[local_5074] = uVar7;
- if (local_5074 == 0x3d) {
- local_5050 = pcVar14;
- pTVar6 = vector<>::operator()(&ObjectTypes,(int)pcVar14);
- uVar7 = pTVar6->Attributes[0x3d];
- bVar2 = false;
- if ((0 < (int)uVar7) && ((int)uVar7 < 0x32)) {
- bVar2 = true;
- }
- if (!bVar2) {
- local_5050 = "Unknown meaning";
- TReadScriptFile::error((TReadScriptFile *)(Ident + 0x1c),"Unknown meaning");
- }
- bVar2 = false;
- if ((ObjectTypes.min < 1) && ((uint)ObjectTypes.max < 0x80000000)) {
- bVar2 = true;
- }
- if (!bVar2) {
- local_5050 = (char *)0x0;
- error(&DAT_080f0a80);
- }
- bVar2 = false;
- if ((ObjectTypes.min < 1) && (bVar2 = true, ObjectTypes.max < 0)) {
- bVar2 = false;
- }
- if (!bVar2) {
- local_5050 = (char *)0x0;
- error(&DAT_080f0a80);
- }
- if (SpecialObjects[uVar7].TypeID != 0) {
- local_5050 = "Special object already defined";
- TReadScriptFile::error
- ((TReadScriptFile *)(Ident + 0x1c),"Special object already defined");
- }
- bVar2 = false;
- if ((ObjectTypes.min <= (int)pcVar14) && ((int)pcVar14 <= ObjectTypes.max)) {
- bVar2 = true;
- }
- pcVar5 = pcVar14;
- if (!bVar2) {
- local_5050 = pcVar14;
- error(&DAT_080f0a80);
- pcVar5 = (char *)0x0;
- }
- bVar2 = false;
- if ((ObjectTypes.min <= (int)pcVar5) && ((int)pcVar5 <= ObjectTypes.max)) {
- bVar2 = true;
- }
- if (!bVar2) {
- local_5050 = pcVar5;
- error(&DAT_080f0a80);
- pcVar5 = (char *)0x0;
- }
- iVar8 = ObjectTypes.max;
- iVar10 = ObjectTypes.min;
- SpecialObjects[uVar7].TypeID = (int)pcVar5;
- if ((int)pcVar5 < iVar10 || iVar8 < (int)pcVar5) {
- error(&DAT_080f0a80);
- local_5050 = pcVar5;
- }
- }
- }
- goto LAB_08054f35;
-}
-
-
-
-// WARNING: Unknown calling convention -- yet parameter storage is locked
-
-void LoadConversionList(void)
-
-{
- istream *this;
- int i;
- int iVar1;
- undefined4 *puVar2;
- int local_1148;
- int Type;
- int Number;
- int Group;
- char FileName [4096];
- ifstream IN;
- undefined4 local_134 [3];
- uint auStack_128 [23];
- __basic_file<char> local_cc [25];
- undefined1 local_b3;
- undefined *local_ac;
- ios_base local_a8 [16];
- uint local_98;
-
- this = (istream *)(FileName + 0xffc);
- // try { // try from 0805566b to 0805566f has its CatchHandler @ 08055a21
- std::ios_base::ios_base(local_a8);
- local_ac = (undefined *)0x8128950;
- // try { // try from 0805568e to 08055692 has its CatchHandler @ 080559a2
- std::istream::istream(this,(streambuf *)(std::ifstream::VTT + 4));
- FileName._4092_4_ = &DAT_08128994;
- local_ac = &DAT_081289a8;
- // try { // try from 080556b2 to 080556b6 has its CatchHandler @ 0805599c
- std::filebuf::filebuf((filebuf *)local_134);
- // try { // try from 080556ca to 080556ce has its CatchHandler @ 08055955
- std::ios::init((EVP_PKEY_CTX *)&local_ac);
- iVar1 = 0;
- do {
- OldGroup[iVar1] = '\0';
- OldNumber[iVar1] = '\0';
- iVar1 = iVar1 + 1;
- } while (iVar1 < 0x2000);
- iVar1 = 0;
- do {
- NewType[iVar1] = -1;
- iVar1 = iVar1 + 1;
- } while (iVar1 < 0x10000);
- sprintf((char *)&Group,"%s/conversion.lst",DATAPATH);
- // try { // try from 08055742 to 08055831 has its CatchHandler @ 080559a8
- iVar1 = std::filebuf::open((char *)local_134,(int)&Group,8);
- if (iVar1 == 0) {
- std::ios::clear(this + *(int *)(FileName._4092_4_ + -0xc),
- *(uint *)((int)auStack_128 + *(int *)(FileName._4092_4_ + -0xc)) | 4);
- }
- if ((local_98 & 5) == 0) {
- while( true ) {
- std::istream::operator>>(this,&Number);
- if ((local_98 & 2) != 0) {
- iVar1 = std::filebuf::close((int)local_134);
- if (iVar1 == 0) {
- // try { // try from 08055904 to 0805594f has its CatchHandler @ 080559a8
- std::ios::clear(this + *(int *)(FileName._4092_4_ + -0xc),
- *(uint *)((int)auStack_128 + *(int *)(FileName._4092_4_ + -0xc))
- | 4);
- }
- iVar1 = 0;
- do {
- OldGroup[iVar1] = '\0';
- OldNumber[iVar1] = (uchar)iVar1;
- NewType[iVar1] = iVar1;
- iVar1 = iVar1 + 1;
- } while (iVar1 < 0xb);
- OldGroup[99] = 0xfa;
- NewType[64000] = 99;
- OldNumber[99] = '\0';
- FileName._4092_4_ = &DAT_08128994;
- local_ac = &DAT_081289a8;
- local_134[0] = 0x8128ad0;
- // try { // try from 08055899 to 080558de has its CatchHandler @ 08055a21
- std::filebuf::close((int)local_134);
- local_b3 = 0;
- std::__basic_file<char>::~__basic_file(local_cc);
- std::streambuf::~streambuf((streambuf *)local_134);
- std::istream::~istream(this);
- std::ios::~ios((ios *)&local_ac);
- return;
- }
- std::istream::operator>>(this,&Type);
- std::istream::operator>>(this,&local_1148);
- if (0x1ffe < local_1148 - 1U) break;
- OldGroup[local_1148] = (uchar)Number;
- OldNumber[local_1148] = (uchar)Type;
- NewType[Number * 0x100 + Type] = local_1148;
- }
- error(&DAT_080f0ae0,local_1148);
- puVar2 = (undefined4 *)__cxa_allocate_exception(4);
- *puVar2 = "Error while loading conversion.lst";
- }
- else {
- error(&DAT_080f0b60);
- puVar2 = (undefined4 *)__cxa_allocate_exception(4);
- *puVar2 = "Cannot open conversion.lst";
- }
- // WARNING: Subroutine does not return
- __cxa_throw(puVar2,char_const*::typeinfo,0);
-}
-
-
-
-ObjectType GetNewObjectType(uchar Group,uchar Number)
-
-{
- bool bVar1;
- int Type;
- uint uVar2;
- int iVar3;
- undefined3 in_stack_00000005;
- byte in_stack_0000000c;
-
- uVar2 = (uint)in_stack_0000000c;
- iVar3 = NewType[CONCAT11(Number,in_stack_0000000c)];
- if (iVar3 == -1) {
- error("GetNewObjectType: Objekttyp %d/%d existiert nicht.\n",(uint)Number,uVar2);
- bVar1 = false;
- if ((ObjectTypes.min < 1) && ((uint)ObjectTypes.max < 0x80000000)) {
- bVar1 = true;
- }
- if (!bVar1) {
- error(&DAT_080f0a80,0,uVar2);
- }
- *_Group = 0;
- }
- else {
- bVar1 = false;
- if ((ObjectTypes.min <= iVar3) && (iVar3 <= ObjectTypes.max)) {
- bVar1 = true;
- }
- if (!bVar1) {
- error(&DAT_080f0a80,iVar3);
- iVar3 = 0;
- }
- *_Group = iVar3;
- }
- return (ObjectType)(int)_Group;
-}
-
-
-
-void GetOldObjectType(ObjectType *Type,uchar *Group,uchar *Number)
-
-{
- int iVar1;
- bool bVar2;
-
- bVar2 = false;
- iVar1 = Type->TypeID;
- if ((ObjectTypes.min <= iVar1) && (iVar1 <= ObjectTypes.max)) {
- bVar2 = true;
- }
- if (bVar2) {
- *Group = OldGroup[iVar1];
- *Number = OldNumber[Type->TypeID];
- return;
- }
- error(&DAT_080f0be0);
- return;
-}
-
-
-
-bool ObjectTypeExists(uchar Group,uchar Number)
-
-{
- return (bool)((byte)~(byte)((uint)NewType[CONCAT11(Group,Number)] >> 0x18) >> 7);
-}
-
-ObjectType GetSpecialObject(SPECIALMEANING Meaning)
-
-{
- bool bVar1;
- int in_stack_00000008;
- char *Text;
- int _TypeID;
- ObjectType local_2c [7];
-
- bVar1 = false;
- if ((0 < in_stack_00000008) && (in_stack_00000008 < 0x32)) {
- bVar1 = true;
- }
- if (bVar1) {
- ObjectType::setTypeID(local_2c,0);
- _TypeID = SpecialObjects[in_stack_00000008].TypeID;
- if (_TypeID != local_2c[0].TypeID) goto LAB_08055ec3;
- Text = "GetSpecialObject: Kein Objekttyp mit Bedeutung %d definiert.\n";
- }
- else {
- Text = &DAT_080f0cc0;
- }
- error(Text);
- _TypeID = 0;
-LAB_08055ec3:
- ObjectType::setTypeID((ObjectType *)Meaning,_TypeID);
- return (ObjectType)Meaning;
-}
-
-
-
-ObjectType GetObjectTypeByName(char *SearchName,bool Movable)
-
-{
- TObjectType *pTVar1;
- char *pcVar2;
- int iVar3;
- char *ObjectName;
- int TypeID;
- int _TypeID;
- undefined3 in_stack_00000009;
- char in_stack_0000000c;
- ObjectType _TypeID_00;
- char local_dc [3];
- bool Movable_local;
- char Help [50];
- ObjectType local_9c [4];
- ObjectType local_8c [4];
- ObjectType local_7c;
- ObjectType Type;
- ObjectType local_6c;
- ObjectType BestType;
- char local_5c [4];
- char Pattern [50];
-
- if (_Movable == (char *)0x0) {
- error("GetObjectTypeByName: SearchName ist NULL.\n");
- _TypeID_00.TypeID = 0;
- }
- else {
- snprintf(local_5c,0x32," %s ",_Movable);
- ObjectType::setTypeID(&local_6c,0);
- ObjectType::setTypeID(&local_7c,99);
- _TypeID = local_7c.TypeID + 1;
- _TypeID_00.TypeID = local_6c.TypeID;
- if (_TypeID <= ObjectTypes.max) {
- do {
- ObjectType::setTypeID(&local_7c,_TypeID);
- if ((((in_stack_0000000c == '\0') ||
- (pTVar1 = vector<>::operator()(&ObjectTypes,local_7c.TypeID),
- (pTVar1->Flags[4] & 2) == 0)) &&
- (pcVar2 = ObjectType::getName(&local_7c), pcVar2 != (char *)0x0)) &&
- (*pcVar2 != '\0')) {
- iVar3 = stricmp(pcVar2,_Movable,-1);
- _TypeID_00.TypeID = local_7c.TypeID;
- if (iVar3 == 0) break;
- ObjectType::setTypeID(local_8c,0);
- ObjectType::setTypeID(local_9c,local_8c[0].TypeID);
- if (local_6c.TypeID == local_9c[0].TypeID) {
- snprintf(local_dc,0x32," %s ",pcVar2);
- pcVar2 = strstr(local_dc,local_5c);
- if (pcVar2 != (char *)0x0) {
- ObjectType::setTypeID(local_8c,local_7c.TypeID);
- ObjectType::setTypeID(&local_6c,local_8c[0].TypeID);
- ObjectType::setTypeID(local_9c,local_6c.TypeID);
- }
- }
- }
- _TypeID = _TypeID + 1;
- _TypeID_00.TypeID = local_6c.TypeID;
- } while (_TypeID <= ObjectTypes.max);
- }
- }
- ObjectType::setTypeID((ObjectType *)SearchName,_TypeID_00.TypeID);
- return (ObjectType)(int)SearchName;
-}
-
-
-
-// WARNING: Unknown calling convention -- yet parameter storage is locked
-
-void InitObjects(void)
-
-{
- // try { // try from 08056126 to 0805612f has its CatchHandler @ 08056134
- LoadObjects();
- LoadConversionList();
- return;
-}
-
-
-
-// WARNING: Unknown calling convention -- yet parameter storage is locked
-
-void ExitObjects(void)
-
-{
- return;
-}
-
-
-
void __tcf_0(void *param_1)
{