Initial import of Red Planet v4.10 Win32 source
Imports the current Win32 source for the pod-racing game 'Red Planet', built on the MUNGA engine and its L4 (Win32/DirectX) platform layer: - MUNGA / MUNGA_L4: cross-platform engine core and Win32 backend - RP / RP_L4: Red Planet game logic and Win32 application - DivLoader, Setup1: asset loader and installer project - lib, MUNGA_L4/openal, MUNGA_L4/sos: third-party audio dependencies Removed stale Subversion metadata and added .gitignore/.gitattributes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
#include "munga.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "hostmgr.h"
|
||||
#include "registry.h"
|
||||
#include "app.h"
|
||||
#include "namelist.h"
|
||||
#include "notation.h"
|
||||
#include "entity.h"
|
||||
|
||||
//##########################################################################
|
||||
//############# Entity::StaticVideoSocketIterator ####################
|
||||
//##########################################################################
|
||||
|
||||
Entity__StaticVideoSocketIterator::Entity__StaticVideoSocketIterator(Entity *entity) : SChainIteratorOf<Component*>(&entity->staticVideoSocket)
|
||||
{
|
||||
}
|
||||
|
||||
Entity__StaticVideoSocketIterator::Entity__StaticVideoSocketIterator(const Entity__StaticVideoSocketIterator &iterator) : SChainIteratorOf<Component*>(iterator)
|
||||
{
|
||||
}
|
||||
|
||||
Entity__StaticVideoSocketIterator::~Entity__StaticVideoSocketIterator()
|
||||
{
|
||||
}
|
||||
|
||||
//##########################################################################
|
||||
//############# Entity::DynamicVideoSocketIterator ###################
|
||||
//##########################################################################
|
||||
|
||||
Entity__DynamicVideoSocketIterator::Entity__DynamicVideoSocketIterator(Entity *entity) : SChainIteratorOf<Component*>(&entity->dynamicVideoSocket)
|
||||
{
|
||||
}
|
||||
|
||||
Entity__DynamicVideoSocketIterator::Entity__DynamicVideoSocketIterator(const Entity__DynamicVideoSocketIterator &iterator) : SChainIteratorOf<Component*>(iterator)
|
||||
{
|
||||
}
|
||||
|
||||
Entity__DynamicVideoSocketIterator::~Entity__DynamicVideoSocketIterator()
|
||||
{
|
||||
}
|
||||
|
||||
//##########################################################################
|
||||
//################ Entity::AudioSocketIterator #######################
|
||||
//##########################################################################
|
||||
|
||||
Entity__AudioSocketIterator::Entity__AudioSocketIterator(Entity *entity) : SChainIteratorOf<Component*>(&entity->audioSocket)
|
||||
{
|
||||
}
|
||||
|
||||
Entity__AudioSocketIterator::~Entity__AudioSocketIterator()
|
||||
{
|
||||
}
|
||||
|
||||
int Find_Subsystem_Index(NotationFile *file, const char* name)
|
||||
{
|
||||
Check(file);
|
||||
Check_Pointer(name);
|
||||
|
||||
NameList *namelist = file->MakePageList();
|
||||
Register_Object(namelist);
|
||||
NameList::Entry *entry = namelist->GetFirstEntry();
|
||||
|
||||
int count = 0;
|
||||
while (entry)
|
||||
{
|
||||
if (!strcmp(name, entry->GetName()))
|
||||
{
|
||||
Unregister_Object(namelist);
|
||||
delete namelist;
|
||||
return count;
|
||||
}
|
||||
++count;
|
||||
entry = entry->GetNextEntry();
|
||||
}
|
||||
|
||||
Unregister_Object(namelist);
|
||||
delete namelist;
|
||||
return (!strcmp(name, "None")) ? count : -1;
|
||||
}
|
||||
Reference in New Issue
Block a user