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

  var _cclegacy, _decorator, Component, Node, resources, SpriteFrame, Sprite, _dec, _class, _crd, ccclass, property, Test;

  return {
    setters: [function (_cc) {
      _cclegacy = _cc.cclegacy;
      _decorator = _cc._decorator;
      Component = _cc.Component;
      Node = _cc.Node;
      resources = _cc.resources;
      SpriteFrame = _cc.SpriteFrame;
      Sprite = _cc.Sprite;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "2e12byddmlLL6TmfyIk9IMm", "Test", undefined);

      ({
        ccclass,
        property
      } = _decorator);
      /**
       * Predefined variables
       * Name = Test
       * DateTime = Thu Dec 23 2021 20:32:28 GMT+0800 (中国标准时间)
       * Author = klss灬qq糖
       * FileBasename = Test.ts
       * FileBasenameNoExtension = Test
       * URL = db://assets/scripts/Test.ts
       * ManualUrl = https://docs.cocos.com/creator/3.4/manual/zh/
       *
       */

      _export("Test", Test = (_dec = ccclass('Test'), _dec(_class = class Test extends Component {
        // [1]
        // dummy = '';
        // [2]
        // @property
        // serializableDummy = 0;
        start() {
          resources.load("bear1/spriteFrame", SpriteFrame, (err, spriteFrame) => {
            if (err) {
              // console.log(err)
              console.log("aaaaaaaaaaa");
              return;
            }

            var spriteNode = new Node(); //spriteNode.addComponent(UITransform).setContentSize(new Size(100, 100))

            spriteNode.addComponent(Sprite).spriteFrame = spriteFrame;
            this.node.addChild(spriteNode);
          });
        } // update (deltaTime: number) {
        //     // [4]
        // }


      }) || _class));
      /**
       * [1] Class member could be defined like this.
       * [2] Use `property` decorator if your want the member to be serializable.
       * [3] Your initialization goes here.
       * [4] Your update function goes here.
       *
       * Learn more about scripting: https://docs.cocos.com/creator/3.4/manual/zh/scripting/
       * Learn more about CCClass: https://docs.cocos.com/creator/3.4/manual/zh/scripting/ccclass.html
       * Learn more about life-cycle callbacks: https://docs.cocos.com/creator/3.4/manual/zh/scripting/life-cycle-callbacks.html
       */


      _cclegacy._RF.pop();

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