WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ModelEvent.h
Go to the documentation of this file.
1/*
2 * ModelEvent.h
3 *
4 * Created on: 22 oct. 2013
5 *
6 */
7
8#pragma once
9
10#include "modelheaders.h"
11
12#include <iostream>
13
14class GameFile;
15
18{
20
21public:
23 void init(ModelEventDef& med);
24
25 friend std::ostream& operator<<(std::ostream& out, const ModelEvent& v)
26 {
27 out << " <id>" << v.def.id[0] << v.def.id[1] << v.def.id[2] << v.def.id[3] << "</id>" << std::endl;
28 out << " <dbid>" << v.def.dbid << "</dbid>" << std::endl;
29 out << " <bone>" << v.def.bone << "</bone>" << std::endl;
30 out << " <pos>" << v.def.pos.x << " " << v.def.pos.y << " " << v.def.pos.z << "</pos>" << std::endl;
31 out << " <type>" << v.def.type << "</type>" << std::endl;
32 out << " <seq>" << v.def.seq << "</seq>" << std::endl;
33 out << " <nTimes>" << v.def.nTimes << "</nTimes>" << std::endl;
34 out << " <ofsTimes>" << v.def.ofsTimes << "</ofsTimes>" << std::endl;
35 return out;
36 }
37};
Abstract base class representing a file within the game data archive.
Definition GameFile.h:12
Represents a timed event in an M2 model (e.g. death sound, footstep).
Definition ModelEvent.h:18
void init(ModelEventDef &med)
Initialise from an on-disk event definition.
Definition ModelEvent.cpp:3
friend std::ostream & operator<<(std::ostream &out, const ModelEvent &v)
Definition ModelEvent.h:25
ModelEventDef def
On-disk event definition.
Definition ModelEvent.h:19
glm::vec3 pos