Sha256: 9070a6aa74a9df651e21c6307416809aa92fb60140159ab7fd2e246dc3cc0d88

Contents?: true

Size: 808 Bytes

Versions: 4

Compression:

Stored size: 808 Bytes

Contents

/* Copyright (c) 2024 Julian Benda
 *
 * This file is part of inkCPP which is released under MIT license.
 * See file LICENSE.txt or go to
 * https://github.com/JBenda/inkcpp for full license details.
 */
#pragma once

#include "InkSnapshot.generated.h"

/** A serelizable snapshot of a runtime state
 * Can be used as variable in a USaveGame to be stored and reloaded
 * @ingroup unreal
 */
USTRUCT(BlueprintType)
struct INKCPP_API FInkSnapshot
{
	GENERATED_BODY()
	FInkSnapshot() {}

	/** @private */
	FInkSnapshot(const char* snap_data, size_t snap_len)
	    : data(reinterpret_cast<const uint8*>(snap_data), snap_len)
	{}
	UPROPERTY(BlueprintReadWrite, SaveGame, Category = "ink|SaveGame")
	/** Raw data used to restore runtime state.
	 *  not needed if a USaveGame is used.
	 */
	TArray<uint8> data;
};

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
inkcpp_rb-0.1.3 ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/InkSnapshot.h
inkcpp_rb-0.1.2 ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/InkSnapshot.h
inkcpp_rb-0.1.1 ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/InkSnapshot.h
inkcpp_rb-0.1.0 ext/inkcpp_rb/inkcpp/unreal/inkcpp/Source/inkcpp/Public/InkSnapshot.h