# Rewrite of the game's simulation system

Giant merge from
http://svn.wildfiregames.com/hg-source/file/5fb522019d5e
Infrastructure is largely complete, gameplay is largely missing
Disabled by default; use command-line flag "-sim2"
(Second attempt at commit...)

This was SVN commit r7259.
This commit is contained in:
Ykkrosh
2010-01-09 19:20:14 +00:00
parent 3339aea2a7
commit 7c2e9027c2
480 changed files with 16454 additions and 775 deletions
+56
View File
@@ -0,0 +1,56 @@
/* Copyright (C) 2010 Wildfire Games.
* ...the usual copyright header...
*/
#include "precompiled.h"
#include "simulation2/system/Component.h"
#include "ICmpExample.h"
// ... any other includes needed ...
class CCmpExample : public ICmpExample
{
public:
static void ClassInit(CComponentManager& componentManager)
{
// ...
}
DEFAULT_COMPONENT_ALLOCATOR(Example)
// ... member variables ...
virtual void Init(const CSimContext& context, const CParamNode& paramNode)
{
// ...
}
virtual void Deinit(const CSimContext& context)
{
// ...
}
virtual void Serialize(ISerializer& serialize)
{
// ...
}
virtual void Deserialize(const CSimContext& context, const CParamNode& paramNode, IDeserializer& deserialize)
{
// ...
}
virtual void HandleMessage(const CSimContext& context, const CMessage& msg)
{
// ...
}
// ... Implementation of interface functions: ...
virtual int DoWhatever(int x, int y)
{
return x+y;
}
};
REGISTER_COMPONENT_TYPE(Example)