This commit is contained in:
23
src/resource/xml/animation_entry.hpp
Normal file
23
src/resource/xml/animation_entry.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
// Handles animation entries in .xml files. "Weight" value determines weight of being randomly selected.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace game::resource::xml
|
||||
{
|
||||
class AnimationEntry
|
||||
{
|
||||
public:
|
||||
std::string animation{};
|
||||
float weight{1.0f};
|
||||
};
|
||||
|
||||
class AnimationEntryCollection : public std::vector<AnimationEntry>
|
||||
{
|
||||
public:
|
||||
const std::string& get();
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user