Remove Nz::String and Nz::StringStream
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Nz
|
||||
return SphereCollider3D::New(primitive.sphere.size, primitive.matrix.GetTranslation());
|
||||
}
|
||||
|
||||
NazaraError("Primitive type not handled (0x" + String::Number(primitive.type, 16) + ')');
|
||||
NazaraError("Primitive type not handled (0x" + NumberToString(primitive.type, 16) + ')');
|
||||
return Collider3DRef();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace Nz
|
||||
NewtonDestroy(m_world);
|
||||
}
|
||||
|
||||
int PhysWorld3D::CreateMaterial(String name)
|
||||
int PhysWorld3D::CreateMaterial(std::string name)
|
||||
{
|
||||
NazaraAssert(m_materialIds.find(name) == m_materialIds.end(), "Material \"" + name + "\" already exists");
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace Nz
|
||||
return m_world;
|
||||
}
|
||||
|
||||
int PhysWorld3D::GetMaterial(const String& name)
|
||||
int PhysWorld3D::GetMaterial(const std::string& name)
|
||||
{
|
||||
auto it = m_materialIds.find(name);
|
||||
NazaraAssert(it != m_materialIds.end(), "Material \"" + name + "\" does not exists");
|
||||
@@ -159,7 +159,7 @@ namespace Nz
|
||||
}
|
||||
}
|
||||
|
||||
int PhysWorld3D::OnAABBOverlap(const NewtonJoint* const contactJoint, dFloat timestep, int threadIndex)
|
||||
int PhysWorld3D::OnAABBOverlap(const NewtonJoint* const contactJoint, float timestep, int threadIndex)
|
||||
{
|
||||
RigidBody3D* bodyA = static_cast<RigidBody3D*>(NewtonBodyGetUserData(NewtonJointGetBody0(contactJoint)));
|
||||
RigidBody3D* bodyB = static_cast<RigidBody3D*>(NewtonBodyGetUserData(NewtonJointGetBody1(contactJoint)));
|
||||
|
||||
@@ -345,7 +345,7 @@ namespace Nz
|
||||
NewtonBodySetCentreOfMass(m_body, ¢er.x);
|
||||
}
|
||||
|
||||
void RigidBody3D::SetMaterial(const String& materialName)
|
||||
void RigidBody3D::SetMaterial(const std::string& materialName)
|
||||
{
|
||||
SetMaterial(m_world->GetMaterial(materialName));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user