public void Import(byte[] buffer) { PETools.Serialize.Import(buffer, (r) => { mIdGenerator.Import(PETools.Serialize.ReadBytes(r)); int count = r.ReadInt32(); for (int i = 0; i < count; i++) { ItemObject item = ItemObject.Deserialize(PETools.Serialize.ReadBytes(r)); Add(item); } //场景中骨灰盒npcID对应关系的读取 if (Pathea.ArchiveMgr.Instance.GetCurArvhiveVersion() > Pathea.Archive.Header.Version_2) { KillNPC.ashBox_inScene = r.ReadInt32(); } }); }