Skip to content

Commit

Permalink
update p3d
Browse files Browse the repository at this point in the history
  • Loading branch information
aylaylay committed Aug 14, 2019
1 parent 7e7436a commit 9e4a707
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev/Chunks.md
Expand Up @@ -97,7 +97,7 @@
## CompositeDrawableEffectList `0x4517`
|Name|Type|
|--|--|
|`numSkins`|`u32`|
|`numEffects`|`u32`|

## CompositeDrawableSortOrder `0x4519`
|Name|Type|
Expand Down
2 changes: 1 addition & 1 deletion src/P3D/P3D.generated.cpp
Expand Up @@ -2302,6 +2302,6 @@ namespace Donut::P3D
assert(chunk.IsType(ChunkType::CompositeDrawableEffectList));

MemoryStream stream(chunk.GetData());
_numSkins = stream.Read<uint32_t>();
_numEffects = stream.Read<uint32_t>();
}
}
4 changes: 2 additions & 2 deletions src/P3D/P3D.generated.h
Expand Up @@ -2655,11 +2655,11 @@ namespace Donut::P3D

static std::unique_ptr<CompositeDrawableEffectList> Load(const P3DChunk& chunk) { return std::make_unique<CompositeDrawableEffectList>(chunk); }

const uint32_t& GetNumSkins() const { return _numSkins; }
const uint32_t& GetNumEffects() const { return _numEffects; }

private:

uint32_t _numSkins;
uint32_t _numEffects;

};
}

0 comments on commit 9e4a707

Please sign in to comment.