|
NSUNI/NSLAR Library a250670
|
Contains structures and functions for working with game actions. More...
#include <map>#include <set>#include "NNL/common/fixed_type.hpp"#include "NNL/common/io.hpp"#include "NNL/game_asset/behavior/action_common.hpp"#include "NNL/utility/math.hpp"#include "tsl/ordered_map.h"Go to the source code of this file.
Classes | |
| union | nnl::action::AnimationNode |
| A union that represents a function or argument node within an animation playback chain. More... | |
| union | nnl::action::EffectNode |
| A union that represents a function or argument node within an auxiliary effect playback chain. More... | |
| struct | nnl::action::Action |
| Represents an action. More... | |
Namespaces | |
| namespace | nnl |
| namespace | nnl::action |
| Contains structures and functions for working with game actions. | |
Typedefs | |
| using | nnl::action::ActionConfig = tsl::ordered_map<action::Id, Action> |
| Represents a collection of actions associated with an entity. | |
Functions | |
| bool | nnl::action::IsOfType (BufferView buffer) |
| Tests if the provided file is an action config. | |
| ActionConfig | nnl::action::Import (BufferView buffer) |
| Parses a binary file and converts it to ActionConfig. | |
| Buffer | nnl::action::Export (const ActionConfig &action_config) |
| Converts ActionConfig to a binary file representation. | |
| std::map< u16, std::set< std::string > > | nnl::action::GetAnimationNames (const ActionConfig &action_config) |
| Returns a map of animation IDs and names of all actions in which those animations were used. | |
| template<class... Ts, class Node> | |
| std::tuple< Ts... > | nnl::action::ReadArgs (std::size_t main_node_ind, const std::vector< Node > &nodes) |
| Extracts arguments from a series of nodes. | |
| template<class... Ts, class Node> | |
| void | nnl::action::WriteArgs (std::size_t main_node_ind, std::vector< Node > &nodes, const Ts &&... args) |
| Converts arguments to a series of nodes. | |
| template<class Node> | |
| std::size_t | nnl::action::NextNodeInd (std::size_t main_node_ind, const std::vector< Node > &nodes) |
| Calculates the absolute index of the next main node in a vector. | |
Variables | |
| constexpr u16 | nnl::action::kNumAnimFuncNSUNI = 0x1C |
| constexpr u16 | nnl::action::kNumEffectFuncNSUNI = 0x26 |
| constexpr u16 | nnl::action::kNumAnimFuncNSLAR = 0x14 |
| constexpr u16 | nnl::action::kNumEffectFuncNSLAR = 0xC |
Contains structures and functions for working with game actions.