#include <wmo.h>
|
static std::set< int > | ids |
|
512 input = fopen(tempname,
"r+b");
516 printf(
"WMOInstance::WMOInstance: couldn't open %s\n", tempname);
522 int count = fread(&nVertices,
sizeof (
int), 1, input);
525 if (count != 1 || nVertices == 0)
533 pos.
x = 533.33333f*32;
534 pos.
z = 533.33333f*32;
544 fwrite(&mapID,
sizeof(
uint32), 1, pDirfile);
545 fwrite(&tileX,
sizeof(
uint32), 1, pDirfile);
546 fwrite(&tileY,
sizeof(
uint32), 1, pDirfile);
547 fwrite(&flags,
sizeof(
uint32), 1, pDirfile);
548 fwrite(&adtId,
sizeof(
uint16), 1, pDirfile);
549 fwrite(&
id,
sizeof(
uint32), 1, pDirfile);
550 fwrite(&
pos,
sizeof(
float), 3, pDirfile);
551 fwrite(&
rot,
sizeof(
float), 3, pDirfile);
552 fwrite(&scale,
sizeof(
float), 1, pDirfile);
553 fwrite(&
pos2,
sizeof(
float), 3, pDirfile);
554 fwrite(&
pos3,
sizeof(
float), 3, pDirfile);
555 uint32 nlen=strlen(WmoInstName);
556 fwrite(&nlen,
sizeof(
uint32), 1, pDirfile);
557 fwrite(WmoInstName,
sizeof(
char), nlen, pDirfile);
float x
Definition: vec3d.h:28
uint32 indx
Definition: wmo.h:131
int currx
Definition: wmo.h:125
arena_t NULL
Definition: jemalloc_internal.h:624
Vec3D pos2
Definition: wmo.h:130
uint32 d3
Definition: wmo.h:131
static Vec3D fixCoords(const Vec3D &v)
Definition: wmo.h:43
uint32 d2
Definition: wmo.h:131
WMOGroup * wmo
Definition: wmo.h:127
uint32 id
Definition: wmo.h:131
std::string sprintf(CStringRef format, ArgList args)
Definition: format.h:3096
int curry
Definition: wmo.h:126
G3D::int16 z
Definition: Vector3int16.h:46
uint32_t uint32
Definition: Define.h:150
uint16_t uint16
Definition: Define.h:151
int doodadset
Definition: wmo.h:128
#define SEEK_SET
Definition: zconf.h:475
float z
Definition: vec3d.h:28
size_t read(void *dest, size_t bytes)
Definition: mpqfile.cpp:52
Vec3D pos3
Definition: wmo.h:130
Vec3D pos
Definition: wmo.h:129
Definition: vmapexport.h:28
uint8 flags
Definition: DisableMgr.cpp:44
G3D::int16 x
Definition: Vector2int16.h:37
const char * szWorkDirWmo
Definition: vmapexport.cpp:81
Vec3D rot
Definition: wmo.h:130
void printf(BasicWriter< Char > &w, BasicCStringRef< Char > format, ArgList args)
Definition: format.h:3083
Definition: vmapexport.h:27
static void WMOInstance::reset |
( |
| ) |
|
|
static |
int WMOInstance::doodadset |
std::set<int> WMOInstance::ids |
|
staticprivate |
std::string WMOInstance::MapName |
The documentation for this class was generated from the following files:
- src/tools/vmap4_extractor/wmo.h
- src/tools/vmap4_extractor/wmo.cpp