|
发表于 2003-10-15 11:19:00
|
显示全部楼层
Re:源码统计,7670个文件
一个主要的Server.DLL,就有1万多个件啊
hl2.exe
launcher.dll
engine.dll
client.dll
studiorender.dll
...
还有好多啊..
我打开hl.dsw时,看到文件数从11544往下减,当时就有点晕了。。
然后看到:
if(!(engine = (IVEngineServer*)engineFactory(INTERFACEVERSION_VENGINESERVER, NULL)) ||
!(g_pVoiceServer = (IVoiceServer*)engineFactory(INTERFACEVERSION_VOICESERVER, NULL)) ||
!(cvar = (ICvar*)engineFactory(VENGINE_CVAR_INTERFACE_VERSION, NULL)) ||
!(networkstringtable = (INetworkStringTableServer *)engineFactory(INTERFACENAME_NETWORKSTRINGTABLESERVER,NULL)) ||
!(staticpropmgr = (IStaticPropMgrServer *)engineFactory(INTERFACEVERSION_STATICPROPMGR_SERVER,NULL)) ||
!(random = (IUniformRandomStream *)engineFactory(VENGINE_SERVER_RANDOM_INTERFACE_VERSION, NULL)) ||
!(enginesound = (IEngineSound *)engineFactory(IENGINESOUND_SERVER_INTERFACE_VERSION, NULL)) ||
!(partition = (ISpatialPartition *)engineFactory(INTERFACEVERSION_SPATIALPARTITION, NULL)) ||
!(modelinfo = (IVModelInfo *)engineFactory(VMODELINFO_SERVER_INTERFACE_VERSION, NULL)) ||
!(enginetrace = (IEngineTrace *)engineFactory(INTERFACEVERSION_ENGINETRACE_SERVER,NULL)) ||
!(filesystem = (IFileSystem *)fileSystemFactory(FILESYSTEM_INTERFACE_VERSION,NULL)) ||
!(gameeventmanager = (IGameEventManager *)engineFactory(INTERFACEVERSION_GAMEEVENTSMANAGER,NULL))
)
{
return false;
}
头一回见这么强的IF语句,倒~~~~~
我当时就想,为了保住小命,代码我还是不看的好。。
|
|