|
@@ -0,0 +1,38 @@
|
|
|
+package com.incubator.game.player.bag;
|
|
|
+
|
|
|
+import com.incubator.game.data.po.BagDataPO;
|
|
|
+import com.incubator.game.player.ModuleManager;
|
|
|
+import com.incubator.game.player.Player;
|
|
|
+import com.incubator.game.util.Const;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 玩家背包管理类
|
|
|
+ */
|
|
|
+public class BagManager extends ModuleManager {
|
|
|
+
|
|
|
+ /** 玩家背包存档数据 **/
|
|
|
+ public BagDataPO data;
|
|
|
+
|
|
|
+ private Player player;
|
|
|
+
|
|
|
+ public BagManager(Player player) {
|
|
|
+ this.player = player;
|
|
|
+ this.data = this.loadData();
|
|
|
+ }
|
|
|
+
|
|
|
+ private BagDataPO loadData() {
|
|
|
+ BagDataPO po = new BagDataPO();
|
|
|
+
|
|
|
+ return po;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Const.ManagerType getManagerType() {
|
|
|
+ return Const.ManagerType.BAG;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onPlayerEvent(Const.PlayerEventType eventType) {
|
|
|
+
|
|
|
+ }
|
|
|
+}
|