Sha256: cfdb5fdb4f875bec693e273b146990e317b02bd3dfe15f52b7b5096bdbc29599
Contents?: true
Size: 781 Bytes
Versions: 4
Compression:
Stored size: 781 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. */ #include "InkChoice.h" #include "ink/choice.h" FString UInkChoice::GetText() const { return data->text(); } UInkChoice::UInkChoice() { tags = NewObject<UTagList>(); } int UInkChoice::GetIndex() const { return data->index(); } const UTagList* UInkChoice::GetTags() const { return tags; } void UInkChoice::Initialize(const ink::runtime::choice* c) { data = c; if (c->has_tags()) { TArray<FString> fstring_tags{}; for(unsigned i = 0; i < c->num_tags(); ++i) { fstring_tags.Add(FString(ANSI_TO_TCHAR(c->get_tag(i)))); } tags->Initialize(fstring_tags); } }
Version data entries
4 entries across 4 versions & 1 rubygems