mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 01:56:54 +02:00
build issues fixed after merge
This commit is contained in:
parent
32d5eb3cea
commit
daffb00bf2
9 changed files with 10 additions and 16 deletions
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
|
|
||||||
void EntityEditPacketSender::adjustEditPacketForClockSkew(PacketType type,
|
void EntityEditPacketSender::adjustEditPacketForClockSkew(PacketType type,
|
||||||
unsigned char* editBuffer, ssize_t length, int clockSkew) {
|
unsigned char* editBuffer, size_t length, int clockSkew) {
|
||||||
|
|
||||||
if (type == PacketTypeEntityAddOrEdit) {
|
if (type == PacketTypeEntityAddOrEdit) {
|
||||||
EntityItem::adjustEditPacketForClockSkew(editBuffer, length, clockSkew);
|
EntityItem::adjustEditPacketForClockSkew(editBuffer, length, clockSkew);
|
||||||
|
|
|
@ -30,6 +30,6 @@ public:
|
||||||
|
|
||||||
// My server type is the model server
|
// My server type is the model server
|
||||||
virtual char getMyNodeType() const { return NodeType::EntityServer; }
|
virtual char getMyNodeType() const { return NodeType::EntityServer; }
|
||||||
virtual void adjustEditPacketForClockSkew(PacketType type, unsigned char* editBuffer, ssize_t length, int clockSkew);
|
virtual void adjustEditPacketForClockSkew(PacketType type, unsigned char* editBuffer, size_t length, int clockSkew);
|
||||||
};
|
};
|
||||||
#endif // hifi_EntityEditPacketSender_h
|
#endif // hifi_EntityEditPacketSender_h
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
|
|
||||||
#include <ByteCountCoding.h>
|
#include <ByteCountCoding.h>
|
||||||
|
#include <GLMHelpers.h>
|
||||||
#include <Octree.h>
|
#include <Octree.h>
|
||||||
#include <RegisteredMetaTypes.h>
|
#include <RegisteredMetaTypes.h>
|
||||||
#include <SharedUtil.h> // usecTimestampNow()
|
#include <SharedUtil.h> // usecTimestampNow()
|
||||||
|
@ -23,7 +24,7 @@
|
||||||
// I'm open to other potential solutions. Could we change cmake to allow libraries to reference each others
|
// I'm open to other potential solutions. Could we change cmake to allow libraries to reference each others
|
||||||
// headers, but not link to each other, this is essentially what this construct is doing, but would be
|
// headers, but not link to each other, this is essentially what this construct is doing, but would be
|
||||||
// better to add includes to the include path, but not link
|
// better to add includes to the include path, but not link
|
||||||
#include "../../script-engine/src/ScriptEngine.h"
|
//#include "../../script-engine/src/ScriptEngine.h"
|
||||||
|
|
||||||
#include "EntityScriptingInterface.h"
|
#include "EntityScriptingInterface.h"
|
||||||
#include "EntityItem.h"
|
#include "EntityItem.h"
|
||||||
|
@ -649,7 +650,7 @@ void EntityItem::debugDump() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
// adjust any internal timestamps to fix clock skew for this server
|
// adjust any internal timestamps to fix clock skew for this server
|
||||||
void EntityItem::adjustEditPacketForClockSkew(unsigned char* editPacketBuffer, ssize_t length, int clockSkew) {
|
void EntityItem::adjustEditPacketForClockSkew(unsigned char* editPacketBuffer, size_t length, int clockSkew) {
|
||||||
unsigned char* dataAt = editPacketBuffer;
|
unsigned char* dataAt = editPacketBuffer;
|
||||||
int octets = numberOfThreeBitSectionsInCode(dataAt);
|
int octets = numberOfThreeBitSectionsInCode(dataAt);
|
||||||
int lengthOfOctcode = bytesRequiredForCodeLength(octets);
|
int lengthOfOctcode = bytesRequiredForCodeLength(octets);
|
||||||
|
|
|
@ -85,7 +85,7 @@ public:
|
||||||
static bool encodeEntityEditMessageDetails(PacketType command, EntityItemID id, const EntityItemProperties& details,
|
static bool encodeEntityEditMessageDetails(PacketType command, EntityItemID id, const EntityItemProperties& details,
|
||||||
unsigned char* bufferOut, int sizeIn, int& sizeOut);
|
unsigned char* bufferOut, int sizeIn, int& sizeOut);
|
||||||
|
|
||||||
static void adjustEditPacketForClockSkew(unsigned char* codeColorBuffer, ssize_t length, int clockSkew);
|
static void adjustEditPacketForClockSkew(unsigned char* codeColorBuffer, size_t length, int clockSkew);
|
||||||
virtual void update(const quint64& now);
|
virtual void update(const quint64& now);
|
||||||
|
|
||||||
typedef enum SimuationState_t {
|
typedef enum SimuationState_t {
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
#include <ByteCountCoding.h>
|
#include <ByteCountCoding.h>
|
||||||
|
#include <GLMHelpers.h>
|
||||||
#include <RegisteredMetaTypes.h>
|
#include <RegisteredMetaTypes.h>
|
||||||
|
|
||||||
#include "EntityItem.h"
|
#include "EntityItem.h"
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <ByteCountCoding.h>
|
#include <ByteCountCoding.h>
|
||||||
|
#include <GLMHelpers.h>
|
||||||
|
|
||||||
#include "EntityTree.h"
|
#include "EntityTree.h"
|
||||||
#include "EntityTreeElement.h"
|
#include "EntityTreeElement.h"
|
||||||
|
|
|
@ -225,7 +225,7 @@ void OctreeEditPacketSender::queuePacketToNodes(unsigned char* buffer, size_t le
|
||||||
|
|
||||||
// NOTE: editPacketBuffer - is JUST the octcode/color and does not contain the packet header!
|
// NOTE: editPacketBuffer - is JUST the octcode/color and does not contain the packet header!
|
||||||
void OctreeEditPacketSender::queueOctreeEditMessage(PacketType type, unsigned char* editPacketBuffer,
|
void OctreeEditPacketSender::queueOctreeEditMessage(PacketType type, unsigned char* editPacketBuffer,
|
||||||
ssize_t length, qint64 satoshiCost) {
|
size_t length, qint64 satoshiCost) {
|
||||||
|
|
||||||
bool wantDebug = false;
|
bool wantDebug = false;
|
||||||
if (wantDebug) {
|
if (wantDebug) {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
//
|
//
|
||||||
|
|
||||||
//#include <PacketHeaders.h>
|
#include <PacketHeaders.h>
|
||||||
//#include <SharedUtil.h>
|
//#include <SharedUtil.h>
|
||||||
#include <GLMHelpers.h>
|
#include <GLMHelpers.h>
|
||||||
|
|
||||||
|
|
|
@ -5,15 +5,6 @@ setup_hifi_project(Script Network)
|
||||||
include_glm()
|
include_glm()
|
||||||
|
|
||||||
# link in the shared libraries
|
# link in the shared libraries
|
||||||
//link_hifi_library(entities ${TARGET_NAME} ${ROOT_DIR})
|
|
||||||
//link_hifi_library(octree ${TARGET_NAME} ${ROOT_DIR})
|
|
||||||
//link_hifi_library(audio ${TARGET_NAME} ${ROOT_DIR})
|
|
||||||
//link_hifi_library(networking ${TARGET_NAME} ${ROOT_DIR})
|
|
||||||
//link_hifi_library(animation ${TARGET_NAME} ${ROOT_DIR})
|
|
||||||
//link_hifi_library(fbx ${TARGET_NAME} ${ROOT_DIR})
|
|
||||||
//link_hifi_library(shared ${TARGET_NAME} ${ROOT_DIR})
|
|
||||||
//link_hifi_library(voxels ${TARGET_NAME} ${ROOT_DIR})
|
|
||||||
|
|
||||||
link_hifi_libraries(animation fbx entities networking octree shared)
|
link_hifi_libraries(animation fbx entities networking octree shared)
|
||||||
|
|
||||||
link_shared_dependencies()
|
link_shared_dependencies()
|
||||||
|
|
Loading…
Reference in a new issue