Welcome, Guest! Log In | Create Account

Upgrade1.4To1.5

From delta3d

Jump to: navigation, search

Contents

1.4.0 to 1.5.0

'dtGame::GMComponent' : no appropriate default constructor available

GMComponent now takes in a string to identify the Component.

Old:

class MyComp : public dtGame::GMComponent
{
  public:
    MyComp ():
      dtGame::GMComponent()
    {
    }

 ...
}

New:

class MyComp : public dtGame::GMComponent
{
  public:
    MyComp (const std::string &name):
      dtGame::GMComponent(name)
    {
    }

  ...
}

'EXCEPT': identifier not found, even with argument-dependent lookup

The EXCEPT macro has been removed.

Old:

EXCEPT(PluginManager::ExceptionEnum::PluginLoadingError, "Problem loading plugin");

New:

throw dtUtil::Exception(PluginManager::ExceptionEnum::PluginLoadingError, "Problem loading plugin", __FILE__, __LINE__);

RefPtr Parameters removed (r3433)

'dtGame::GameManager::FindActorsByName' : cannot convert parameter 2 from 'std::vector<_Ty>' to 'std::vector<_Ty> &'

Some methods now return back regular pointers, instead of RefPtrs.
New:

LibraryManager::GetActorTypes()

GameManager::GetActorTypes()
GameManager::FindPrototypesByActorType()
GameManager::FindPrototypesByName()
GameManager::GetAllPrototypes()
GameManager::GetAllGameActors()
GameManager::GetAllNonGameActors()
GameManager::GetAllActors()
GameManager::GetActorsInScene()
GameManager::FindActorsByName()
GameManager::FindActorsByType()
GameManager::FindActorsByClassName()
GameManager::FindActorsWithinRadius()

dtDIS::hasProperty()

typedef
operator()

dtDAL::ActorProxy::mActor is now private (r2955)

Old:

void TankActorProxy::CreateActor()
{
  mActor = new TankActor(*this);
}

New:

void TankActorProxy::CreateActor()
{
   TankActor *actor = new TankActor(*this);
   SetActor(*actor);
}

Shader Parameter classes and files renamed (r3335)

For instance, FloatShaderParameter (floatshaderparameter.h) is now ShaderParameterFloat (shaderparameterfloat.h).



ActorProperty::SetStringValue() and ActorProperty::GetStringValue() have been deprecated (r3511)

Now all ActorProperty derivatives use the inherited method AbstractParameter::ToString() and AbstractParameter::FromString(). Old methods are "BREAK_OVERRIDE" to cause compile error.



'dtGame::GameEntryPoint' : overriding virtual function return type differs and is not covariant from 'dtGame::GameEntryPoint::OnStartup'

The OnStartup() method no longer receive the GameManager as parameter

Old:

class MyEntryPoint : public dtGame::GameEntryPoint
{
    ...
    virtual void OnStartup(dtGame::GameManager &gameManager);
    ...
};

New:

class MyEntryPoint : public dtGame::GameEntryPoint
{
    ...
    virtual void OnStartup();
    ...
};

And replace "gameManager." with "GetGameManager()->" in OnStartup()