mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Simplify component interface: remove explicit context parameter, use GetSimContext() instead.
This was SVN commit r8867.
This commit is contained in:
@@ -42,12 +42,12 @@ public:
|
||||
return "<a:component type='system'/><empty/>";
|
||||
}
|
||||
|
||||
virtual void Init(const CSimContext& UNUSED(context), const CParamNode& UNUSED(paramNode))
|
||||
virtual void Init(const CParamNode& UNUSED(paramNode))
|
||||
{
|
||||
SetWaterLevel(entity_pos_t::FromInt(5));
|
||||
}
|
||||
|
||||
virtual void Deinit(const CSimContext& UNUSED(context))
|
||||
virtual void Deinit()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -56,14 +56,14 @@ public:
|
||||
serialize.NumberFixed_Unbounded("height", m_WaterHeight);
|
||||
}
|
||||
|
||||
virtual void Deserialize(const CSimContext& context, const CParamNode& paramNode, IDeserializer& deserialize)
|
||||
virtual void Deserialize(const CParamNode& paramNode, IDeserializer& deserialize)
|
||||
{
|
||||
Init(context, paramNode);
|
||||
Init(paramNode);
|
||||
|
||||
deserialize.NumberFixed_Unbounded("height", m_WaterHeight);
|
||||
}
|
||||
|
||||
virtual void HandleMessage(const CSimContext& UNUSED(context), const CMessage& msg, bool UNUSED(global))
|
||||
virtual void HandleMessage(const CMessage& msg, bool UNUSED(global))
|
||||
{
|
||||
switch (msg.GetType())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user