Esempio n. 1
0
        public void Restore()
        {
            byte[] data = ArchiveMgr.Instance.GetData(TutorialDataArchiveKey);

            if (null != data)
            {
                TutorialData.Deserialize(data);
            }

            data = ArchiveMgr.Instance.GetData(MetalScanDataArchiveKey);

            if (null != data)
            {
                MetalScanData.Deserialize(data);
            }

            data = ArchiveMgr.Instance.GetData(MessageDataArchveKey);

            if (null != data)
            {
                MessageData.Deserialize(data);
            }

            data = ArchiveMgr.Instance.GetData(MonsterHandbookDataArchveKey);

            if (null != data)
            {
                MonsterHandbookData.Deserialize(data);
            }
        }
    void RPC_S2C_MonsterBook(uLink.BitStream stream, uLink.NetworkMessageInfo info)
    {
        bool ownerData = stream.Read <bool>();

        if (ownerData)
        {
            MonsterHandbookData.Deserialize(stream.Read <byte[]>());
        }
        else
        {
            MonsterHandbookData.AddMhByKilledMonsterID(stream.Read <int>());
        }
    }