Exemple #1
0
    // 바이너리 데이터를 패킷 데이터로 역직렬화하는 생성자
    public CharacterPacket(byte[] data)
    {
        CharacterSerializer serializer = new CharacterSerializer();

        serializer.SetDeserializedData(data);
        serializer.Deserialize(ref packet);
    }
Exemple #2
0
        private async void LoadPage()
        {
            await CharacterSerializer.Deserialize();

            textName.Text     = MainPage.CHARACTERcurrent.CharName;
            textPlayer.Text   = MainPage.CHARACTERcurrent.Player;
            textCampaign.Text = MainPage.CHARACTERcurrent.Campaign;
        }
        private async Task <bool> LoadCharacters()
        {
            CharacterSerializer.CharFolder = await Windows.Storage.ApplicationData.Current.LocalFolder.CreateFolderAsync("Appstate", Windows.Storage.CreationCollisionOption.OpenIfExists);

            await CharacterSerializer.Deserialize();

            UpdateLoadGrid();

            await CharacterSerializer.Serialize();

            return(true);
        }