|
@@ -101,6 +101,12 @@ class Info_PrivateState extends Object_ext {
|
|
|
* @var array[int]
|
|
|
*/
|
|
|
public $unlockedBuild = array();
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 已经解锁得npc
|
|
|
+ * @var type
|
|
|
+ */
|
|
|
+ public $unlockNpc = array();
|
|
|
|
|
|
// <editor-fold defaultstate="collapsed" desc=" 初始化 ">
|
|
|
|
|
@@ -111,6 +117,15 @@ class Info_PrivateState extends Object_ext {
|
|
|
$this->maxItemNum = GameConfig::primordial_data()->User_Private_MaxItem_num; # Ps.默认100;
|
|
|
$this->TiliTime = now();
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 添加已经解锁得npc
|
|
|
+ * @param type $npcId
|
|
|
+ */
|
|
|
+ public function addUnlockNpc($npcId) {
|
|
|
+ if(!in_array($npcId,$this->unlockNpc)){
|
|
|
+ $this->unlockNpc[] = $npcId;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
// </editor-fold>
|
|
|
}
|