обновы какие то
This commit is contained in:
@@ -7,26 +7,35 @@
|
||||
#include "cppGI.generated.h"
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
USTRUCT(BlueprintType)
|
||||
struct Fcppcoords
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
Fcppcoords(int32 flat_=-1, int32 type_=0, int32 zone_=-1, int32 house_=-1, int32 section_=-1, int32 floor_=-1) {
|
||||
flat = flat_;
|
||||
type = type_;
|
||||
zone = zone_;
|
||||
house = house_;
|
||||
section = section_;
|
||||
floor = floor_;
|
||||
}
|
||||
UPROPERTY(BlueprintReadWrite, category = "default")
|
||||
int32 flat;
|
||||
UPROPERTY(BlueprintReadWrite, category = "default")
|
||||
int32 flat = -1;
|
||||
int32 type;
|
||||
UPROPERTY(BlueprintReadWrite, category = "default")
|
||||
int32 type = 0;
|
||||
int32 zone;
|
||||
UPROPERTY(BlueprintReadWrite, category = "default")
|
||||
int32 zone = 1;
|
||||
int32 house;
|
||||
UPROPERTY(BlueprintReadWrite, category = "default")
|
||||
int32 house = -1;
|
||||
int32 section;
|
||||
UPROPERTY(BlueprintReadWrite, category = "default")
|
||||
int32 section = -1;
|
||||
UPROPERTY(BlueprintReadWrite, category = "default")
|
||||
int32 floor = -1;
|
||||
int32 floor;
|
||||
};
|
||||
|
||||
|
||||
@@ -35,18 +44,18 @@ struct FcppLevelStruct
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
Fcppcoords coords;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
Fcppcoords coords;
|
||||
bool dontUnload = false;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
bool dontUnload = false;
|
||||
FString path;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
FString path;
|
||||
float Z = 0;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
float Z = 0;
|
||||
int32 anotherLvl = -1;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
int32 anotherLvl = -1;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
FName uniqName;
|
||||
FName uniqName;
|
||||
};
|
||||
|
||||
UCLASS()
|
||||
@@ -54,61 +63,53 @@ class GRAFFMODULE_API UcppGI : public UGameInstance
|
||||
{
|
||||
GENERATED_BODY()
|
||||
public:
|
||||
UFUNCTION(blueprintcallable, category = "cppFuncLib")
|
||||
static void cppCoordsEq(Fcppcoords coords, Fcppcoords coords1, bool relevantMinus2, bool fastEq, bool& flat_, bool& type_, bool& zone_, bool& house_, bool& section_, bool& floor_, bool& fullEq);
|
||||
UFUNCTION(blueprintcallable, category = "cppFuncLib")
|
||||
static void cppCoordsEq(Fcppcoords coords, Fcppcoords coords1, bool relevantMinus2, bool fastEq, bool& flat_, bool& type_, bool& zone_, bool& house_, bool& section_, bool& floor_, bool& fullEq);
|
||||
|
||||
|
||||
/*returns array of levels for binding*/
|
||||
|
||||
/*returns array of levels for binding*/
|
||||
UFUNCTION(blueprintcallable, Category = "LevelLoading", meta = (WorldContext = "WorldContextObject"))
|
||||
TArray<ULevelStreaming*> cppLvlManage(UObject* WorldContextObject, Fcppcoords currentCoords, uint8 currentState);
|
||||
TArray<ULevelStreaming*> cppLvlManage(UObject* WorldContextObject, Fcppcoords currentCoords, uint8 currentState);
|
||||
|
||||
/*return array filtered by coords, coord<0 for floor and <1 for other is ignore the one*/
|
||||
UFUNCTION(blueprintcallable, category = "Data")
|
||||
TArray<FcppflatStruct> getFlatArr_(Fcppcoords coords, int& len);
|
||||
|
||||
/*return array filtered by coords, coord<0 for (floor,flat,type) and <1 for other is ignore the one*/
|
||||
UFUNCTION(blueprintcallable, category = "Data")
|
||||
TArray<FcppflatStruct> getFlatArr_(Fcppcoords coords, int& len);
|
||||
|
||||
UFUNCTION(blueprintcallable, category = "Data")
|
||||
FcppflatStruct findFlatByCoords_(Fcppcoords coords, bool& success);
|
||||
|
||||
/*return array with flats with specified number
|
||||
(may be from different houses if not sequetnal numeration)*/
|
||||
UFUNCTION(blueprintcallable, category = "Data")
|
||||
TArray<FcppflatStruct> findFlatsByN_(int num, bool& success);
|
||||
|
||||
UFUNCTION(blueprintcallable, category = "Data")
|
||||
FcppflatStruct findFlatByCoords_(Fcppcoords coords, bool& success);
|
||||
|
||||
/*flatId is ignoring, filter is optional*/
|
||||
UFUNCTION(blueprintcallable, category = "Data")
|
||||
FcppflatStruct findFlatByN_(Fcppcoords filter, int num, bool& success);
|
||||
|
||||
/*coord<0 for (floor,flat,type) and <1 for other is ignore the one, price is millions*/
|
||||
UFUNCTION(blueprintcallable, category = "Data")
|
||||
void countFreeApartments(Fcppcoords coords, int& free, int& all, float& minPrice);
|
||||
|
||||
UFUNCTION(blueprintcallable,blueprintPure, category = "Data",meta=( BlueprintAutocast))
|
||||
static void cppFlatTocppCoords(FcppflatStruct flat, Fcppcoords& coords);
|
||||
|
||||
/*if onlyCoords false then same as find flat by coords*/
|
||||
UFUNCTION(blueprintcallable, blueprintPure, category = "Data", meta = (WorldContext = "WorldContextObject", BlueprintAutocast))
|
||||
static void cppCoordsToCppFlat(UObject* WorldContextObject,Fcppcoords coords,FcppflatStruct& flat,bool onlyCoords=true );
|
||||
/*coord=-2 is ignore the one, price is millions*/
|
||||
UFUNCTION(blueprintcallable, category = "Data")
|
||||
void countFreeApartments(Fcppcoords coords,int& free,int& all,float& minPrice);
|
||||
|
||||
/*list of lvls for anyway loading*/
|
||||
UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category = "levelLoading")
|
||||
TArray<FcppLevelStruct> cppWhiteList;
|
||||
TArray<FcppLevelStruct> cppWhiteList;
|
||||
/*list of lvls for anyway not loading*/
|
||||
UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category = "levelLoading")
|
||||
TArray<FcppLevelStruct> cppBlackList;
|
||||
TArray<FcppLevelStruct> cppBlackList;
|
||||
/*list of coords for regular loading*/
|
||||
UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category = "LevelLoading")
|
||||
TArray<Fcppcoords> cppLoadList;
|
||||
TArray<Fcppcoords> cppLoadList;
|
||||
/*list of created level names*/
|
||||
UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category = "LevelLoading")
|
||||
TArray<FName> cppCreatedList;
|
||||
TArray<FName> cppCreatedList;
|
||||
/*list of loaded/loading right now level names*/
|
||||
UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category = "LevelLoading")
|
||||
TArray<FName> cpploadedList;
|
||||
TArray<FName> cpploadedList;
|
||||
/*list of lvls struct created by levelloader*/
|
||||
UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category = "levelLoading")
|
||||
TArray<FcppLevelStruct> cppLevels;
|
||||
/*list of all flats in project*/
|
||||
UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category = "Data")
|
||||
TArray<FcppflatStruct> flatArray;
|
||||
TArray<FcppLevelStruct> cppLevels;
|
||||
/*list of all flats in project*/
|
||||
UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category = "Data")
|
||||
TArray<FcppflatStruct> flatArray;
|
||||
|
||||
private:
|
||||
bool boolDummy;
|
||||
int intDummy;
|
||||
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user