mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-18 09:45:28 +00:00
feat(entity): NPC minifigures have the client's minifig component
The client makes LWOMiniFigComponent (35) from the registry; DLU had nothing for it. It sends nothing (the client reads the MinifigComponent row itself), so constructions are unchanged; 488 LOTs gain it (LoaderSnapshotTest). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
18
dGame/dComponents/MinifigComponent.h
Normal file
18
dGame/dComponents/MinifigComponent.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef MINIFIGCOMPONENT_H
|
||||
#define MINIFIGCOMPONENT_H
|
||||
|
||||
#include "Component.h"
|
||||
#include "eReplicaComponentType.h"
|
||||
|
||||
/**
|
||||
* An NPC minifigure's look (MinifigComponent row: head, torso, legs, colors, decals), as the client's LWOMiniFigComponent
|
||||
* has it. The client reads it from the CDClient itself: nothing of it is sent.
|
||||
*/
|
||||
class MinifigComponent final : public Component {
|
||||
public:
|
||||
static constexpr eReplicaComponentType ComponentType = eReplicaComponentType::MINIFIG;
|
||||
|
||||
MinifigComponent(Entity* parent, const int32_t componentID) : Component(parent, componentID) {}
|
||||
};
|
||||
|
||||
#endif // MINIFIGCOMPONENT_H
|
||||
Reference in New Issue
Block a user