Changed: #825 Remove all warnings when compiling Ryzom

This commit is contained in:
kervala 2012-04-07 20:04:08 +02:00
parent 02f80bf24d
commit d273ed676f
17 changed files with 98 additions and 97 deletions

View file

@ -782,7 +782,7 @@ inline void CIndexBuffer::lock (CIndexBufferRead &accessor, uint first, uint las
// *************************************************************************** // ***************************************************************************
inline void CIndexBuffer::unlock (uint first, uint end) inline void CIndexBuffer::unlock (uint /* first */, uint /* end */)
{ {
nlassertex (_LockCounter!=0, ("Index buffer not locked")); nlassertex (_LockCounter!=0, ("Index buffer not locked"));
nlassert (_LockedBuffer || (!isResident() && _NonResidentIndexes.empty())); nlassert (_LockedBuffer || (!isResident() && _NonResidentIndexes.empty()));

View file

@ -147,7 +147,7 @@ public:
static void addTriangles (const IShape &shape, const NLMISC::CMatrix& modelMT, std::vector<CTriangle>& triangleArray, sint instanceId); static void addTriangles (const IShape &shape, const NLMISC::CMatrix& modelMT, std::vector<CTriangle>& triangleArray, sint instanceId);
// Progress callback // Progress callback
virtual void progress (const char *message, float progress) {} virtual void progress (const char * /* message */, float /* progress */) {}
/// \name Static PointLights mgt. /// \name Static PointLights mgt.

View file

@ -157,7 +157,7 @@ public:
} }
/// return true if an operation is supported. The default support all ops /// return true if an operation is supported. The default support all ops
bool supportOp(CPSBinOp::BinOp op) { return true; } bool supportOp(CPSBinOp::BinOp /* op */) { return true; }
/// get the current operator /// get the current operator
CPSBinOp::BinOp getOp(void) const { return _Op; } CPSBinOp::BinOp getOp(void) const { return _Op; }

View file

@ -57,13 +57,13 @@ inline CPlaneBasis PSBinOpModulate(CPlaneBasis p1, CPlaneBasis p2)
} }
template <> template <>
inline CPlaneBasis PSBinOpAdd(CPlaneBasis p1, CPlaneBasis p2) inline CPlaneBasis PSBinOpAdd(CPlaneBasis /* p1 */, CPlaneBasis /* p2 */)
{ {
nlassert(0); // not allowed for now nlassert(0); // not allowed for now
return CPlaneBasis(NLMISC::CVector::Null); return CPlaneBasis(NLMISC::CVector::Null);
} }
template <> template <>
inline CPlaneBasis PSBinOpSubtract(CPlaneBasis p1, CPlaneBasis p2) inline CPlaneBasis PSBinOpSubtract(CPlaneBasis /* p1 */, CPlaneBasis /* p2 */)
{ {
nlassert(0); // not allowed for now nlassert(0); // not allowed for now
return CPlaneBasis(NLMISC::CVector::Null); return CPlaneBasis(NLMISC::CVector::Null);

View file

@ -60,7 +60,7 @@ namespace NL3D
{ {
GET_INLINE float get() const { return float(rand() * (1 / double(RAND_MAX))); } // this may be optimized with a table... GET_INLINE float get() const { return float(rand() * (1 / double(RAND_MAX))); } // this may be optimized with a table...
void advance() {} void advance() {}
void advance(uint quantity) {} void advance(uint /* quantity */) {}
}; };
/// this iterator just return the same value /// this iterator just return the same value
@ -69,7 +69,7 @@ namespace NL3D
float Value; float Value;
GET_INLINE float get() const { return Value; } GET_INLINE float get() const { return Value; }
void advance() {} void advance() {}
void advance(uint quantity) {} void advance(uint /* quantity */) {}
}; };
/// iterator that use dist to compute the value /// iterator that use dist to compute the value

View file

@ -38,7 +38,7 @@ public :
/** The direction is taken from a global vector defined in the particle system /** The direction is taken from a global vector defined in the particle system
* NULL or an empty string as a name disable the use of a global value * NULL or an empty string as a name disable the use of a global value
*/ */
virtual void enableGlobalVectorValue(const std::string &name) {} virtual void enableGlobalVectorValue(const std::string &/* name */) {}
virtual std::string getGlobalVectorValueName() const { return ""; } virtual std::string getGlobalVectorValueName() const { return ""; }
}; };

View file

@ -65,13 +65,13 @@ struct IPSMover
virtual bool supportNonUniformScaling(void) const { NL_PS_FUNC(supportNonUniformScaling); return false ; } virtual bool supportNonUniformScaling(void) const { NL_PS_FUNC(supportNonUniformScaling); return false ; }
// set the scale of the object (uniform scale). The default does nothing // set the scale of the object (uniform scale). The default does nothing
virtual void setScale(uint32 index, float scale) {} ; virtual void setScale(uint32 /* index */, float /* scale */) {}
// set a non uniform scale (if supported) // set a non uniform scale (if supported)
virtual void setScale(uint32 index, const NLMISC::CVector &s) { NL_PS_FUNC(setScale); } virtual void setScale(uint32 /* index */, const NLMISC::CVector &/* s */) { NL_PS_FUNC(setScale); }
// get the scale of the object // get the scale of the object
virtual NLMISC::CVector getScale(uint32 index) const { NL_PS_FUNC(getScale); return NLMISC::CVector(1.f, 1.f, 1.f) ; } virtual NLMISC::CVector getScale(uint32 /* index */) const { NL_PS_FUNC(getScale); return NLMISC::CVector(1.f, 1.f, 1.f) ; }
/** some object may not store a whole matrix (e.g planes) /** some object may not store a whole matrix (e.g planes)
* this return true if only a normal is needed to set the orientation of the object * this return true if only a normal is needed to set the orientation of the object
@ -79,10 +79,10 @@ struct IPSMover
virtual bool onlyStoreNormal(void) const { NL_PS_FUNC(onlyStoreNormal); return false ; } virtual bool onlyStoreNormal(void) const { NL_PS_FUNC(onlyStoreNormal); return false ; }
/// if the object only needs a normal, this return the normal. If not, is return (0, 0, 0) /// if the object only needs a normal, this return the normal. If not, is return (0, 0, 0)
virtual NLMISC::CVector getNormal(uint32 index) { NL_PS_FUNC(getNormal); return NLMISC::CVector::Null ; } virtual NLMISC::CVector getNormal(uint32 /* index */) { NL_PS_FUNC(getNormal); return NLMISC::CVector::Null ; }
/// if the object only stores a normal, this set the normal of the object. Otherwise it has no effect /// if the object only stores a normal, this set the normal of the object. Otherwise it has no effect
virtual void setNormal(uint32 index, NLMISC::CVector n) { NL_PS_FUNC(setNormal); } virtual void setNormal(uint32 /* index */, NLMISC::CVector /* n */) { NL_PS_FUNC(setNormal); }
// set a new orthogonal matrix for the object // set a new orthogonal matrix for the object
virtual void setMatrix(uint32 index, const NLMISC::CMatrix &m) = 0 ; virtual void setMatrix(uint32 index, const NLMISC::CMatrix &m) = 0 ;

View file

@ -87,9 +87,9 @@ public:
* 'accumulate' set to false. * 'accumulate' set to false.
* NB : works only with integrable forces * NB : works only with integrable forces
*/ */
virtual void integrate(float date, CPSLocated *src, uint32 startIndex, uint32 numObjects, NLMISC::CVector *destPos = NULL, NLMISC::CVector *destSpeed = NULL, virtual void integrate(float /* date */, CPSLocated * /* src */, uint32 /* startIndex */, uint32 /* numObjects */, NLMISC::CVector * /* destPos */ = NULL, NLMISC::CVector * /* destSpeed */ = NULL,
bool accumulate = false, bool /* accumulate */ = false,
uint posStride = sizeof(NLMISC::CVector), uint speedStride = sizeof(NLMISC::CVector) uint /* posStride */ = sizeof(NLMISC::CVector), uint /* speedStride */ = sizeof(NLMISC::CVector)
) const ) const
{ {
nlassert(0); // not an integrable force nlassert(0); // not an integrable force
@ -100,11 +100,11 @@ public:
* If the start date is lower than the creation date, the initial position is used * If the start date is lower than the creation date, the initial position is used
* NB : works only with integrable forces * NB : works only with integrable forces
*/ */
virtual void integrateSingle(float startDate, float deltaT, uint numStep, virtual void integrateSingle(float /* startDate */, float /* deltaT */, uint /* numStep */,
const CPSLocated *src, uint32 indexInLocated, const CPSLocated * /* src */, uint32 /* indexInLocated */,
NLMISC::CVector *destPos, NLMISC::CVector * /* destPos */,
bool accumulate = false, bool /* accumulate */ = false,
uint posStride = sizeof(NLMISC::CVector)) const uint /* posStride */ = sizeof(NLMISC::CVector)) const
{ {
nlassert(0); // not an integrable force nlassert(0); // not an integrable force
} }
@ -170,7 +170,7 @@ public:
virtual void setIntensityScheme(CPSAttribMaker<float> *scheme); virtual void setIntensityScheme(CPSAttribMaker<float> *scheme);
// deriver have here the opportunity to setup the functor object. The default does nothing // deriver have here the opportunity to setup the functor object. The default does nothing
virtual void setupFunctor(uint32 indexInLocated) { } virtual void setupFunctor(uint32 /* indexInLocated */) { }
/// get the attribute maker for a non constant intensity /// get the attribute maker for a non constant intensity
CPSAttribMaker<float> *getIntensityScheme(void) { return _IntensityScheme; } CPSAttribMaker<float> *getIntensityScheme(void) { return _IntensityScheme; }
@ -493,22 +493,22 @@ public:
#ifdef NL_OS_WINDOWS #ifdef NL_OS_WINDOWS
__forceinline __forceinline
#endif #endif
void operator() (const NLMISC::CVector &pos, NLMISC::CVector &speed, float invMass) void operator() (const NLMISC::CVector &/* pos */, NLMISC::CVector &speed, float invMass)
{ {
speed -= (CParticleSystem::EllapsedTime * _K * invMass * speed); speed -= (CParticleSystem::EllapsedTime * _K * invMass * speed);
} }
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream) virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream)
{ {
f.serialVersion(1); f.serialVersion(1);
// we don't save intensity info : it is saved by the owning object (and set before each use of this functor) // we don't save intensity info : it is saved by the owning object (and set before each use of this functor)
} }
// get the friction coefficient // get the friction coefficient
float getK(void) const { return _K; } float getK(void) const { return _K; }
// set the friction coefficient // set the friction coefficient
void setK(float coeff) { _K = coeff; } void setK(float coeff) { _K = coeff; }
protected: protected:
// the friction coeff // the friction coeff
float _K; float _K;
@ -630,7 +630,7 @@ struct CPSTurbulForceFunc
#ifdef NL_OS_WINDOWS #ifdef NL_OS_WINDOWS
__forceinline __forceinline
#endif #endif
void operator() (const NLMISC::CVector &pos, NLMISC::CVector &speed, float invMass) void operator() (const NLMISC::CVector &/* pos */, NLMISC::CVector &/* speed */, float /* invMass */)
{ {
nlassert(0); nlassert(0);

View file

@ -1223,7 +1223,7 @@ inline void CVertexBuffer::lock (CVertexBufferRead &accessor, uint first, uint l
// -------------------------------------------------- // --------------------------------------------------
inline void CVertexBuffer::unlock (uint first, uint end) inline void CVertexBuffer::unlock (uint /* first */, uint /* end */)
{ {
nlassertex (_LockCounter!=0, ("Vertex buffer not locked")); nlassertex (_LockCounter!=0, ("Vertex buffer not locked"));
nlassert (_LockedBuffer || (!isResident() && _NonResidentVertices.empty())); nlassert (_LockedBuffer || (!isResident() && _NonResidentVertices.empty()));

View file

@ -188,8 +188,8 @@ namespace NLNET
// unused interceptors // unused interceptors
std::string fwdBuildModuleManifest() const { return std::string(); } std::string fwdBuildModuleManifest() const { return std::string(); }
void fwdOnModuleSecurityChange(NLNET::IModuleProxy *moduleProxy) {} void fwdOnModuleSecurityChange(NLNET::IModuleProxy * /* moduleProxy */) {}
bool fwdOnProcessModuleMessage(NLNET::IModuleProxy *sender, const NLNET::CMessage &message) {return false;} bool fwdOnProcessModuleMessage(NLNET::IModuleProxy * /* sender */, const NLNET::CMessage &/* message */) {return false;}
// check module up // check module up
void fwdOnModuleUp(NLNET::IModuleProxy *moduleProxy) void fwdOnModuleUp(NLNET::IModuleProxy *moduleProxy)

View file

@ -335,7 +335,7 @@ protected:
T *Value; T *Value;
virtual void serialDefaultValue (NLMISC::IStream &f) virtual void serialDefaultValue (NLMISC::IStream &/* f */)
{ {
// nothing // nothing
} }

View file

@ -437,7 +437,7 @@ public:
// PUBLIC because template friend classes are not supported // PUBLIC because template friend classes are not supported
/// Return the pointer to the property value /// Return the pointer to the property value
template <class T> template <class T>
void getPropPointerForList( TSharedListRow **ppt, TPropertyIndex propIndex, const TDataSetRow& entityIndex, T* typeHint ) const void getPropPointerForList( TSharedListRow **ppt, TPropertyIndex propIndex, const TDataSetRow& entityIndex, T* /* typeHint */ ) const
{ {
#ifndef FAST_MIRROR #ifndef FAST_MIRROR
nlassert( (propIndex != INVALID_PROPERTY_INDEX) && (propIndex < (TPropertyIndex)_PropertyContainer.PropertyValueArrays.size()) ); // Wrong property nlassert( (propIndex != INVALID_PROPERTY_INDEX) && (propIndex < (TPropertyIndex)_PropertyContainer.PropertyValueArrays.size()) ); // Wrong property

View file

@ -349,7 +349,7 @@ namespace INVENTORIES
/// Serial from/to bit stream /// Serial from/to bit stream
template <class CInventoryCategoryTemplate> template <class CInventoryCategoryTemplate>
void serialAll( NLMISC::CBitMemStream& bms, const CInventoryCategoryTemplate *templ=0 ) void serialAll( NLMISC::CBitMemStream& bms, const CInventoryCategoryTemplate * /* templ */ =0 )
{ {
bms.serial( _SlotIndex, CInventoryCategoryTemplate::SlotBitSize ); bms.serial( _SlotIndex, CInventoryCategoryTemplate::SlotBitSize );
@ -385,7 +385,7 @@ namespace INVENTORIES
/// Serial from/to bit stream /// Serial from/to bit stream
template <class CInventoryCategoryTemplate> template <class CInventoryCategoryTemplate>
void serialOneProp( NLMISC::CBitMemStream& bms, const CInventoryCategoryTemplate *templ=0 ) void serialOneProp( NLMISC::CBitMemStream& bms, const CInventoryCategoryTemplate * /* templ */ =0 )
{ {
bms.serial( _SlotIndex, CInventoryCategoryTemplate::SlotBitSize ); bms.serial( _SlotIndex, CInventoryCategoryTemplate::SlotBitSize );
bms.serial( _OneProp ); bms.serial( _OneProp );

View file

@ -420,7 +420,9 @@ inline const CPersistentDataRecord::CArg& CPersistentDataRecord::popNextArg(TTok
inline void CPersistentDataRecord::popNextArg(TToken token,CPersistentDataRecord::CArg& result) inline void CPersistentDataRecord::popNextArg(TToken token,CPersistentDataRecord::CArg& result)
{ {
#ifdef NL_DEBUG #ifdef NL_DEBUG
BOMB_IF(peekNextToken()!=token,"Error on read code - token requested doesn't match token found",return); BOMB_IF(peekNextToken()!=token,"Error on read code - token requested doesn't match token found",return);
#else
nlunreferenced(token);
#endif #endif
peekNextArg(result); peekNextArg(result);
@ -445,7 +447,6 @@ inline void CPersistentDataRecord::popNextArg(TToken token,CPersistentDataRecord
++_ArgOffset; ++_ArgOffset;
++_TokenOffset; ++_TokenOffset;
} }
return;
} }
//inline CPersistentDataRecord::CArg CPersistentDataRecord::popNextArg(TToken token) //inline CPersistentDataRecord::CArg CPersistentDataRecord::popNextArg(TToken token)

View file

@ -390,7 +390,7 @@ public:
:CMissionEvent(EndDynChat,TDataSetRow()){} :CMissionEvent(EndDynChat,TDataSetRow()){}
protected: protected:
friend class CMissionEvent; friend class CMissionEvent;
bool buildFromScript( const std::vector< std::string > & script ,NLMISC::CLog& log){return false;}; bool buildFromScript( const std::vector< std::string > & /* script */, NLMISC::CLog& /* log */){return false;}
}; };
class CMissionEventDebug : public CMissionEvent class CMissionEventDebug : public CMissionEvent
@ -400,7 +400,7 @@ public:
:CMissionEvent(Debug,TDataSetRow()){} :CMissionEvent(Debug,TDataSetRow()){}
protected: protected:
friend class CMissionEvent; friend class CMissionEvent;
bool buildFromScript( const std::vector< std::string > & script ,NLMISC::CLog& log){return false;}; bool buildFromScript( const std::vector< std::string > & /* script */, NLMISC::CLog& /* log */){return false;}
}; };
@ -412,7 +412,7 @@ public:
uint32 Points; uint32 Points;
protected: protected:
friend class CMissionEvent; friend class CMissionEvent;
bool buildFromScript( const std::vector< std::string > & script ,NLMISC::CLog& log){return false;}; bool buildFromScript( const std::vector< std::string > & /* script */, NLMISC::CLog& /* log */){return false;}
}; };
class CMissionEventOutpostGain : public CMissionEvent class CMissionEventOutpostGain : public CMissionEvent
@ -422,7 +422,7 @@ public:
:CMissionEvent(OutpostGain,TDataSetRow()){} :CMissionEvent(OutpostGain,TDataSetRow()){}
protected: protected:
friend class CMissionEvent; friend class CMissionEvent;
bool buildFromScript( const std::vector< std::string > & script ,NLMISC::CLog& log){return false;}; bool buildFromScript( const std::vector< std::string > & /* script */, NLMISC::CLog& /* log */){return false;}
}; };
@ -437,7 +437,7 @@ public:
bool Guild; bool Guild;
protected: protected:
friend class CMissionEvent; friend class CMissionEvent;
bool buildFromScript( const std::vector< std::string > & script ,NLMISC::CLog& log){return false;} bool buildFromScript( const std::vector< std::string > & /* script */, NLMISC::CLog& /* log */){return false;}
}; };
class CMissionEventQueueEntryOk: public CMissionEvent class CMissionEventQueueEntryOk: public CMissionEvent
@ -447,7 +447,7 @@ public:
:CMissionEvent(QueueEntryOk, TDataSetRow()) {} :CMissionEvent(QueueEntryOk, TDataSetRow()) {}
protected: protected:
friend class CMissionEvent; friend class CMissionEvent;
bool buildFromScript( const std::vector< std::string > & script ,NLMISC::CLog& log) { return false; } bool buildFromScript( const std::vector< std::string > & /* script */, NLMISC::CLog& /* log */){return false;}
}; };
@ -458,7 +458,7 @@ public:
:CMissionEvent(QueueExit, TDataSetRow()) {} :CMissionEvent(QueueExit, TDataSetRow()) {}
protected: protected:
friend class CMissionEvent; friend class CMissionEvent;
bool buildFromScript( const std::vector< std::string > & script ,NLMISC::CLog& log) { return false; } bool buildFromScript( const std::vector< std::string > & /* script */, NLMISC::CLog& /* log */){return false;}
}; };
class CMissionEventGroupSpawned : public CMissionEvent class CMissionEventGroupSpawned : public CMissionEvent
@ -470,8 +470,8 @@ public:
TAIAlias Alias; TAIAlias Alias;
protected: protected:
friend class CMissionEvent; friend class CMissionEvent;
CMissionEventGroupSpawned(){}; CMissionEventGroupSpawned(){}
bool buildFromScript( const std::vector< std::string > & script ,NLMISC::CLog& log) { return false; } bool buildFromScript( const std::vector< std::string > & /* script */, NLMISC::CLog& /* log */){return false;}
}; };
class CMissionEventGroupDespawned : public CMissionEvent class CMissionEventGroupDespawned : public CMissionEvent
@ -483,8 +483,8 @@ public:
TAIAlias Alias; TAIAlias Alias;
protected: protected:
friend class CMissionEvent; friend class CMissionEvent;
CMissionEventGroupDespawned(){}; CMissionEventGroupDespawned(){}
bool buildFromScript( const std::vector< std::string > & script ,NLMISC::CLog& log) { return false; } bool buildFromScript( const std::vector< std::string > & /* script */, NLMISC::CLog& /* log */){return false;}
}; };
#endif // RY_MISSION_EVENT_H #endif // RY_MISSION_EVENT_H

View file

@ -49,7 +49,7 @@ public:
propertyCont ("Character", PropDataSetRow, Character); propertyCont ("Character", PropDataSetRow, Character);
propertyCont ("Creature", PropDataSetRow, Creature); propertyCont ("Creature", PropDataSetRow, Creature);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {};
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -68,7 +68,7 @@ public:
propertyCont ("Content", PropString, Content); propertyCont ("Content", PropString, Content);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -94,7 +94,7 @@ public:
propertyCont ("Params", PropString, Params); propertyCont ("Params", PropString, Params);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -115,7 +115,7 @@ public:
propertyCont ("GrpAlias", PropUInt32, GrpAlias); propertyCont ("GrpAlias", PropUInt32, GrpAlias);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -138,7 +138,7 @@ public:
property ("TeamId", PropUInt16, CTEAM::InvalidTeamId, TeamId); property ("TeamId", PropUInt16, CTEAM::InvalidTeamId, TeamId);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -160,7 +160,7 @@ public:
// propertyCont ("OutpostNames", PropString, OutpostNames); // propertyCont ("OutpostNames", PropString, OutpostNames);
// } // }
// //
// virtual void callback (const std::string &name, NLNET::TServiceId id) {}; // virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
//}; //};
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -198,7 +198,7 @@ public:
//// propertyCont ("Fames", PropString, DutyNames); //// propertyCont ("Fames", PropString, DutyNames);
// } // }
// //
// virtual void callback (const std::string &name, NLNET::TServiceId id) {}; // virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
//}; //};
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -227,7 +227,7 @@ public:
propertyCont ("Parameters", PropString, Parameters); propertyCont ("Parameters", PropString, Parameters);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -253,7 +253,7 @@ public:
// property ("GuildIndex", PropDataSetRow, TDataSetRow() ,GuildIndex); // property ("GuildIndex", PropDataSetRow, TDataSetRow() ,GuildIndex);
// } // }
// //
// virtual void callback (const std::string &name, NLNET::TServiceId id) {}; // virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
//}; //};
@ -280,7 +280,7 @@ public:
// property ("GuildId", PropDataSetRow, TDataSetRow() ,GuildId); // property ("GuildId", PropDataSetRow, TDataSetRow() ,GuildId);
// } // }
// //
// virtual void callback (const std::string &name, NLNET::TServiceId id) {}; // virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
//}; //};
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -299,7 +299,7 @@ public:
property ("BotRowId", PropDataSetRow, TDataSetRow() , BotRowId); property ("BotRowId", PropDataSetRow, TDataSetRow() , BotRowId);
property ("Heading", PropFloat,0.0f,Heading); property ("Heading", PropFloat,0.0f,Heading);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -317,7 +317,7 @@ public:
property ("PlayerRowId", PropDataSetRow, TDataSetRow(), PlayerRowId); property ("PlayerRowId", PropDataSetRow, TDataSetRow(), PlayerRowId);
property ("TargetRowId", PropDataSetRow, TDataSetRow(), TargetRowId); property ("TargetRowId", PropDataSetRow, TDataSetRow(), TargetRowId);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -336,7 +336,7 @@ public:
property ("PlayerRowId", PropDataSetRow, TDataSetRow(), PlayerRowId); property ("PlayerRowId", PropDataSetRow, TDataSetRow(), PlayerRowId);
property ("CreatureRowId", PropDataSetRow, TDataSetRow(), CreatureRowId); property ("CreatureRowId", PropDataSetRow, TDataSetRow(), CreatureRowId);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -365,7 +365,7 @@ public:
property ("PlayerRowId", PropDataSetRow, TDataSetRow(), PlayerRowId); property ("PlayerRowId", PropDataSetRow, TDataSetRow(), PlayerRowId);
property ("TargetRowId", PropDataSetRow, TDataSetRow(), TargetRowId); property ("TargetRowId", PropDataSetRow, TDataSetRow(), TargetRowId);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -394,7 +394,7 @@ public:
property ("PlayerRowId", PropDataSetRow, TDataSetRow(), PlayerRowId); property ("PlayerRowId", PropDataSetRow, TDataSetRow(), PlayerRowId);
property ("TargetRowId", PropDataSetRow, TDataSetRow(), TargetRowId); property ("TargetRowId", PropDataSetRow, TDataSetRow(), TargetRowId);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -410,7 +410,7 @@ public:
className ("CAIPlayerRespawnMsg"); className ("CAIPlayerRespawnMsg");
property ("PlayerRowId", PropDataSetRow, TDataSetRow(), PlayerRowId); property ("PlayerRowId", PropDataSetRow, TDataSetRow(), PlayerRowId);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -428,7 +428,7 @@ public:
property ("EntityRowId", PropDataSetRow, TDataSetRow(), EntityRowId); property ("EntityRowId", PropDataSetRow, TDataSetRow(), EntityRowId);
property ("AskerRowID", PropDataSetRow, TDataSetRow(), AskerRowID); property ("AskerRowID", PropDataSetRow, TDataSetRow(), AskerRowID);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -448,7 +448,7 @@ public:
property ("AskerRowID", PropDataSetRow, TDataSetRow(), AskerRowID); property ("AskerRowID", PropDataSetRow, TDataSetRow(), AskerRowID);
propertyCont ("Infos", PropString, Infos); propertyCont ("Infos", PropString, Infos);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -466,7 +466,7 @@ public:
property ("EntityRowId", PropDataSetRow, TDataSetRow(), EntityRowId); property ("EntityRowId", PropDataSetRow, TDataSetRow(), EntityRowId);
property ("EnableAggro", PropBool, true, EnableAggro); property ("EnableAggro", PropBool, true, EnableAggro);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -482,7 +482,7 @@ public:
className ("CReportAICollisionAvailableMsg"); className ("CReportAICollisionAvailableMsg");
propertyCont ("ContinentsCollision", PropString, ContinentsCollision); propertyCont ("ContinentsCollision", PropString, ContinentsCollision);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -500,7 +500,7 @@ public:
property ("InstanceNumber", PropUInt32, uint32(0), InstanceNumber); property ("InstanceNumber", PropUInt32, uint32(0), InstanceNumber);
property ("InstanceContinent", PropString, std::string(), InstanceContinent); property ("InstanceContinent", PropString, std::string(), InstanceContinent);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -520,7 +520,7 @@ public:
property ("ActionName", PropString, std::string(), ActionName); property ("ActionName", PropString, std::string(), ActionName);
property ("Url", PropString, std::string(), Url); property ("Url", PropString, std::string(), Url);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -536,7 +536,7 @@ public:
className ("CReportAIInstanceDespawnMsg"); className ("CReportAIInstanceDespawnMsg");
propertyCont ("InstanceNumbers", PropUInt32, InstanceNumbers); propertyCont ("InstanceNumbers", PropUInt32, InstanceNumbers);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
@ -555,7 +555,7 @@ public:
className ("CWarnBadInstanceMsg"); className ("CWarnBadInstanceMsg");
property ("InstanceNumber", PropUInt32, uint32(0), InstanceNumber); property ("InstanceNumber", PropUInt32, uint32(0), InstanceNumber);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -575,7 +575,7 @@ public:
propertyCont ("ActionFlags", PropUInt8, ActionFlags); propertyCont ("ActionFlags", PropUInt8, ActionFlags);
propertyVector ("Values", PropBool, Values); propertyVector ("Values", PropBool, Values);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
inline void push(TDataSetRow entity, uint8 flag, bool value) inline void push(TDataSetRow entity, uint8 flag, bool value)
{ {
@ -599,7 +599,7 @@ public:
propertyCont ("Entities", PropDataSetRow, Entities); propertyCont ("Entities", PropDataSetRow, Entities);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -620,7 +620,7 @@ public:
propertyCont ("SetFull", PropUInt8, SetFull); propertyCont ("SetFull", PropUInt8, SetFull);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -639,7 +639,7 @@ public:
propertyCont ("DeltaHp", PropSInt32, DeltaHp); propertyCont ("DeltaHp", PropSInt32, DeltaHp);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -657,7 +657,7 @@ public:
property ("CreatureId", PropDataSetRow, TDataSetRow(), CreatureId); property ("CreatureId", PropDataSetRow, TDataSetRow(), CreatureId);
property ("NewMode", PropUInt8, (uint8)0, NewMode); } property ("NewMode", PropUInt8, (uint8)0, NewMode); }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -673,7 +673,7 @@ public:
className ("CCreatureDespawnMsg"); className ("CCreatureDespawnMsg");
propertyCont ("Entities", PropDataSetRow, Entities); propertyCont ("Entities", PropDataSetRow, Entities);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@ -934,7 +934,7 @@ public:
property ("MissionAlias", PropUInt32, uint32(0xffffffff), MissionAlias); property ("MissionAlias", PropUInt32, uint32(0xffffffff), MissionAlias);
property ("DespawnTimeInTick", PropUInt32, uint32(0), DespawnTimeInTick); property ("DespawnTimeInTick", PropUInt32, uint32(0), DespawnTimeInTick);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -954,7 +954,7 @@ public:
property ("GroupAlias", PropUInt32, uint32(0xffffffff), GroupAlias); property ("GroupAlias", PropUInt32, uint32(0xffffffff), GroupAlias);
property ("MissionAlias", PropUInt32, uint32(0xffffffff), MissionAlias); property ("MissionAlias", PropUInt32, uint32(0xffffffff), MissionAlias);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -974,7 +974,7 @@ public:
property ("GroupAlias", PropUInt32, uint32(0xffffffff), GroupAlias); property ("GroupAlias", PropUInt32, uint32(0xffffffff), GroupAlias);
property ("MissionAlias", PropUInt32, uint32(0xffffffff), MissionAlias); property ("MissionAlias", PropUInt32, uint32(0xffffffff), MissionAlias);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -994,7 +994,7 @@ public:
property ("GroupAlias", PropUInt32, uint32(0xffffffff), GroupAlias); property ("GroupAlias", PropUInt32, uint32(0xffffffff), GroupAlias);
property ("MissionAlias", PropUInt32, uint32(0xffffffff), MissionAlias); property ("MissionAlias", PropUInt32, uint32(0xffffffff), MissionAlias);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
@ -1046,7 +1046,7 @@ public:
propertyCont ("Quantities", PropUInt32, Quantities); propertyCont ("Quantities", PropUInt32, Quantities);
property ("MissionText", PropString, std::string(), MissionText); property ("MissionText", PropString, std::string(), MissionText);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@ -1082,7 +1082,7 @@ public:
propertyCont ("Quantities", PropUInt32, Quantities); propertyCont ("Quantities", PropUInt32, Quantities);
property ("MissionText", PropString, std::string(), MissionText); property ("MissionText", PropString, std::string(), MissionText);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {} virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
@ -1130,7 +1130,7 @@ public:
propertyCont ("Params", PropString, Params); propertyCont ("Params", PropString, Params);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
TFunEnum getFunEnum(const std::string& funName) const; TFunEnum getFunEnum(const std::string& funName) const;

View file

@ -59,7 +59,7 @@ public:
property ("CustomName", PropUCString, ucstring(""), CustomName); property ("CustomName", PropUCString, ucstring(""), CustomName);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
@ -93,7 +93,7 @@ public:
property ("PetMirrorRow", PropDataSetRow, TDataSetRow(), PetMirrorRow); property ("PetMirrorRow", PropDataSetRow, TDataSetRow(), PetMirrorRow);
property ("PetIndex", PropUInt16, (uint16)0, PetIdx); property ("PetIndex", PropUInt16, (uint16)0, PetIdx);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
@ -123,7 +123,7 @@ public:
property ("Heading", PropFloat, 0.0f, Heading); property ("Heading", PropFloat, 0.0f, Heading);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------- //----------------------------------------------------------------
@ -151,7 +151,7 @@ public:
className ("CPetCommandConfirmationMsg"); className ("CPetCommandConfirmationMsg");
property ("CommandError", PropUInt16, (uint16)NO_ERROR_COMMAND, CommandError); property ("CommandError", PropUInt16, (uint16)NO_ERROR_COMMAND, CommandError);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
//---------------------------------------------------------------- //----------------------------------------------------------------
@ -171,7 +171,7 @@ public:
property ("PetMirrorRow", PropDataSetRow, TDataSetRow(), PetMirrorRow); property ("PetMirrorRow", PropDataSetRow, TDataSetRow(), PetMirrorRow);
} }
virtual void callback (const std::string &name, NLNET::TServiceId id) {}; virtual void callback (const std::string &/* name */, NLNET::TServiceId /* id */) {}
}; };
#endif //RY_PET_INTERFACE_MESSAGES_H #endif //RY_PET_INTERFACE_MESSAGES_H