System.register(["__unresolved_0", "cc"], function (_export, _context) {
  "use strict";

  var _reporterNs, _cclegacy, _decorator, Component, _dec, _class, _temp, _crd, ccclass, property, PlayerComponent;

  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

  function _reportPossibleCrUseOfPlayerData(extras) {
    _reporterNs.report("PlayerData", "./PlayerData", _context.meta, extras);
  }

  return {
    setters: [function (_unresolved_) {
      _reporterNs = _unresolved_;
    }, function (_cc) {
      _cclegacy = _cc.cclegacy;
      _decorator = _cc._decorator;
      Component = _cc.Component;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "57ed5bW7mhB0JkRN2WraHkr", "PlayerComponent", undefined);

      ({
        ccclass,
        property
      } = _decorator);

      _export("PlayerComponent", PlayerComponent = (_dec = ccclass('PlayerComponent'), _dec(_class = (_temp = class PlayerComponent extends Component {
        constructor() {
          super(...arguments);

          _defineProperty(this, "data", void 0);
        }

        start() {}

        update() {
          if (this.data) {
            //这里可以插值实现平滑移动,demo简单的瞬移过去把,反正仅作显示, 数据处理帧会做好判断
            if (this.node.position.x != this.data.x || this.node.position.z != this.data.z) {
              //逻辑坐标映射成creator里的坐标,简单除10好了
              this.node.setPosition(this.data.x / 30, this.node.position.y, this.data.z / 30);
            }
          }
        }

        init(data) {
          this.data = data;
        }

      }, _temp)) || _class));

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=PlayerComponent.js.map