@@ -266,17 +266,18 @@ EInternalObjectFlags = {
266
266
AllFlags = 0x7F800000 ,
267
267
}
268
268
269
- --- @alias int8 number
270
- --- @alias int16 number
271
- --- @alias int32 number
272
- --- @alias int64 number
273
- --- @alias uint8 number
274
- --- @alias uint16 number
275
- --- @alias uint32 number
276
- --- @alias uint64 number
269
+ --- @alias int8 integer
270
+ --- @alias int16 integer
271
+ --- @alias int32 integer
272
+ --- @alias int64 integer
273
+ --- @alias uint8 integer
274
+ --- @alias uint16 integer
275
+ --- @alias uint32 integer
276
+ --- @alias uint64 integer
277
277
--- @alias float number
278
278
--- @alias double number
279
279
280
+
280
281
-- # Global Functions
281
282
282
283
--- Creates an blank UObject whose IsValid function always returns false
@@ -602,6 +603,7 @@ function LoopAsync(DelayInMilliseconds, Callback) end
602
603
--- You also use `.__name` and `.__absolute_path` for files.
603
604
function IterateGameDirectories () end
604
605
606
+
605
607
-- # Classes
606
608
607
609
--- Class for interacting with UE4SS metadata
@@ -696,8 +698,9 @@ function UnrealVersion:IsAbove(MajorVersion, MinorVersion) end
696
698
--- @return boolean
697
699
function UnrealVersion .IsAbove (MajorVersion , MinorVersion ) end
698
700
701
+
699
702
--- @class UFunction : UObject
700
- UFunction = {}
703
+ local UFunction = {}
701
704
702
705
--- Attempts to call the UFunction
703
706
--- @param ... UFunctionParams
@@ -714,7 +717,7 @@ function UFunction:SetFunctionFlags(Flags) end
714
717
715
718
--- A TArray of characters
716
719
--- @class FString
717
- FString = {}
720
+ local FString = {}
718
721
719
722
--- Returns a string that Lua can understand
720
723
--- @return string
@@ -725,7 +728,7 @@ function FString:Clear() end
725
728
726
729
727
730
--- @class FieldClass : LocalObject
728
- FieldClass = {}
731
+ local FieldClass = {}
729
732
730
733
--- Returns the FName of this class by copy.
731
734
--- @return FName
@@ -751,15 +754,15 @@ FText = {}
751
754
function FText :ToString () end
752
755
753
756
--- @class RemoteObject
754
- RemoteObject = {}
757
+ local RemoteObject = {}
755
758
756
759
--- Returns whether this object is valid or not
757
760
--- @return boolean
758
761
function RemoteObject :IsValid () end
759
762
760
763
761
764
--- @class Property : RemoteObject
762
- Property = {}
765
+ local Property = {}
763
766
--- Returns the full name & path for this property.
764
767
--- @return string
765
768
function Property :GetFullName () end
@@ -792,42 +795,47 @@ function Property:ImportText(Buffer, Data, PortFlags, OwnerObject) end
792
795
793
796
794
797
--- @class ObjectProperty : Property
795
- ObjectProperty = {}
798
+ local ObjectProperty = {}
796
799
797
800
--- Returns the class that this property holds.
798
801
--- @return UClass
799
- function GetPropertyClass () end
802
+ function ObjectProperty : GetPropertyClass () end
800
803
801
804
802
805
--- @class BoolProperty : Property
806
+ local BoolProperty = {}
803
807
804
808
--- @return integer
805
- function GetByteMask () end
809
+ function BoolProperty : GetByteMask () end
806
810
807
811
--- @return integer
808
- function GetByteOffset () end
812
+ function BoolProperty : GetByteOffset () end
809
813
810
814
--- @return integer
811
- function GetFieldMask () end
815
+ function BoolProperty : GetFieldMask () end
812
816
813
817
--- @return integer
814
- function GetFieldSize () end
818
+ function BoolProperty : GetFieldSize () end
815
819
816
820
817
821
--- @class StructProperty : Property
822
+ local StructProperty = {}
823
+
818
824
--- Returns the UScriptStruct that's mapped to this property.
819
825
--- @return UScriptStruct
820
- function GetStruct () end
826
+ function StructProperty : GetStruct () end
821
827
822
828
823
829
--- @class ArrayProperty : Property
830
+ local ArrayProperty = {}
831
+
824
832
--- Returns the inner property of the array.
825
833
--- @return Property
826
- function GetInner () end
834
+ function ArrayProperty : GetInner () end
827
835
828
836
829
837
--- @class UObjectReflection
830
- UObjectReflection = {}
838
+ local UObjectReflection = {}
831
839
832
840
--- Returns a property meta-data object
833
841
--- @param PropertyName string
@@ -836,7 +844,7 @@ function UObjectReflection:GetProperty(PropertyName) end
836
844
837
845
838
846
--- @class UObject : RemoteObject
839
- UObject = {}
847
+ local UObject = {}
840
848
841
849
--- Attempts to return either a member variable or a callable UFunction
842
850
--- Can return any type, you can use the `type()` function on the returned value to figure out what Lua class it's using (if non-trivial type)
@@ -938,7 +946,7 @@ function UObject:ProcessConsoleExec(Cmd, Reserved, Executor) end
938
946
function UObject :type () end
939
947
940
948
--- @class TArray <T > : { [integer ]: T }
941
- TArray = {}
949
+ local TArray = {}
942
950
943
951
--- Return the address in memory where the TArray struct is located
944
952
--- @return integer
@@ -968,7 +976,7 @@ function TArray:ForEach(Callback) end
968
976
--- @class TSet <K > : { [K ]: nil }
969
977
970
978
--- @class TMap <K , V > : { [K ]: V }
971
- TMap = {}
979
+ local TMap = {}
972
980
973
981
--- Find the specified key in the map
974
982
--- Throws an exception if the key is not found
@@ -1015,7 +1023,7 @@ function TMap:ForEach(callback) end
1015
1023
--- Whether the Remote or Local variant is used depends on the requirements of the data but the usage is identical with either param types
1016
1024
--- @generic T
1017
1025
--- @class RemoteUnrealParam <T > : RemoteObject <T >
1018
- RemoteUnrealParam = {}
1026
+ local RemoteUnrealParam = {}
1019
1027
1020
1028
--- Returns the underlying value for this param
1021
1029
--- @generic T
@@ -1040,8 +1048,7 @@ function RemoteUnrealParam:type() end
1040
1048
1041
1049
1042
1050
--- @class UEnum
1043
-
1044
- UEnum = {}
1051
+ local UEnum = {}
1045
1052
1046
1053
--- Returns the `FName` that corresponds to the specified value.
1047
1054
--- @param Value integer
@@ -1055,7 +1062,7 @@ function UEnum:ForEachName(Callback) end
1055
1062
1056
1063
--- Returns the `FName` and `Integer` value that coresponds the given `Index`.
1057
1064
--- @param Index integer
1058
- function GetEnumNameByIndex (Index ) end
1065
+ function UEnum : GetEnumNameByIndex (Index ) end
1059
1066
1060
1067
--- Inserts a `FName`/`Value` combination into a a `UEnum` at the given `Index`.
1061
1068
--- If `ShiftValues = true`, will shift all enum values greater than inserted value by one.
0 commit comments