Files
node-metaverse/dist/classes/GameObjectFull.js
Casper Warden 9eee7f9716 - Implement 3D space rtree-based indexing in the Full ObjectStore
- Implement ScriptDialogReply thanks to Hintswen
- Add a rudimentary object search - doesn't work fully yet because of the missing messages
2018-10-12 17:31:14 +01:00

32 lines
1021 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Vector3_1 = require("./Vector3");
const Quaternion_1 = require("./Quaternion");
class GameObjectFull {
constructor() {
this.Position = Vector3_1.Vector3.getZero();
this.Rotation = Quaternion_1.Quaternion.getIdentity();
this.IsAttachment = false;
this.NameValue = {};
this.AngularVelocity = Vector3_1.Vector3.getZero();
this.TreeSpecies = 0;
this.SoundFlags = 0;
this.SoundRadius = 1.0;
this.SoundGain = 1.0;
this.ParentID = 0;
}
hasNameValueEntry(key) {
if (this.NameValue['AttachItemID']) {
return true;
}
return false;
}
getNameValueEntry(key) {
if (this.NameValue['AttachItemID']) {
return this.NameValue['AttachItemID'].value;
}
return '';
}
}
exports.GameObjectFull = GameObjectFull;
//# sourceMappingURL=GameObjectFull.js.map