/
linkfly
/
MasterKnight
Обзор
Документация
Войти
/
linkfly
/
MasterKnight
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
Source/Multiplayer/Public/MapsVotes.h
33 строки
779 B
Сергей Катревич
Fixed AI moving
24 апр 2026, 19:54
24 апр 2026, 19:54
ffdd6c2
Код
Авторство
О чём код?
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "UObject/Object.h" #include "MapsVotes.generated.h" class UMapsForMultiplayerData; /** * */ UCLASS(Blueprintable, BlueprintType, EditInlineNew, DefaultToInstanced) class MULTIPLAYER_API UMapsVotes : public UObject { GENERATED_BODY() public: UPROPERTY(EditDefaultsOnly, BlueprintReadOnly) TObjectPtr<UMapsForMultiplayerData> MapsForMultiplayer; UPROPERTY() TMap<FString, int32> ActiveVotes; void InitActiveVotes(); bool AddVote(const FString& MapPath); bool RemoveVote(const FString& MapPath); bool CheckAllVotes(int32 MaxVotablePlayers, FString& MaxVotesMap); static FString GetMapPath(TSoftObjectPtr<UWorld> MapWorld); };