mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-03 18:31:17 +00:00
hope you're HaPpY
This commit is contained in:
@@ -39,3 +39,12 @@ const RAY::ModelAnimation &RAY::ModelAnimations::at(int index) const
|
||||
return this->_animations.at(index);
|
||||
}
|
||||
|
||||
const RAY::ModelAnimation &RAY::ModelAnimations::operator[](int index) const
|
||||
{
|
||||
return this->_animations[index];
|
||||
}
|
||||
|
||||
RAY::ModelAnimation &RAY::ModelAnimations::at(int index)
|
||||
{
|
||||
return this->_animations.at(index);
|
||||
}
|
||||
|
||||
@@ -36,9 +36,15 @@ namespace RAY {
|
||||
//! @brief Castin Object to raw model animation pointer
|
||||
ModelAnimation &operator[](int index);
|
||||
|
||||
//! @brief Same usage as the operator[] but const
|
||||
//! @brief std [] const
|
||||
const ModelAnimation &operator[](int index) const;
|
||||
|
||||
//! @brief std at const
|
||||
const ModelAnimation &at(int index) const;
|
||||
|
||||
//! @brief std at
|
||||
ModelAnimation &at(int index);
|
||||
|
||||
//! @return the number of loaded animations
|
||||
size_t getAnimationsCount() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user