2022-02-28 04:57:30 +08:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace Godot.SourceGenerators
|
|
|
|
{
|
2022-07-28 23:41:47 +08:00
|
|
|
// TODO: May need to think about compatibility here. Could Godot change these values between minor versions?
|
|
|
|
|
2022-02-28 04:57:30 +08:00
|
|
|
internal enum VariantType
|
|
|
|
{
|
|
|
|
Nil = 0,
|
|
|
|
Bool = 1,
|
|
|
|
Int = 2,
|
|
|
|
Float = 3,
|
|
|
|
String = 4,
|
|
|
|
Vector2 = 5,
|
2022-12-07 23:11:39 +08:00
|
|
|
Vector2I = 6,
|
2022-02-28 04:57:30 +08:00
|
|
|
Rect2 = 7,
|
2022-12-07 23:11:39 +08:00
|
|
|
Rect2I = 8,
|
2022-02-28 04:57:30 +08:00
|
|
|
Vector3 = 9,
|
2022-12-07 23:11:39 +08:00
|
|
|
Vector3I = 10,
|
|
|
|
Transform2D = 11,
|
2022-02-28 04:57:30 +08:00
|
|
|
Vector4 = 12,
|
2022-12-07 23:11:39 +08:00
|
|
|
Vector4I = 13,
|
2022-02-28 04:57:30 +08:00
|
|
|
Plane = 14,
|
|
|
|
Quaternion = 15,
|
|
|
|
Aabb = 16,
|
|
|
|
Basis = 17,
|
2022-12-07 23:11:39 +08:00
|
|
|
Transform3D = 18,
|
2022-02-28 04:57:30 +08:00
|
|
|
Projection = 19,
|
|
|
|
Color = 20,
|
|
|
|
StringName = 21,
|
|
|
|
NodePath = 22,
|
|
|
|
Rid = 23,
|
|
|
|
Object = 24,
|
|
|
|
Callable = 25,
|
|
|
|
Signal = 26,
|
|
|
|
Dictionary = 27,
|
|
|
|
Array = 28,
|
|
|
|
PackedByteArray = 29,
|
|
|
|
PackedInt32Array = 30,
|
|
|
|
PackedInt64Array = 31,
|
|
|
|
PackedFloat32Array = 32,
|
|
|
|
PackedFloat64Array = 33,
|
|
|
|
PackedStringArray = 34,
|
|
|
|
PackedVector2Array = 35,
|
|
|
|
PackedVector3Array = 36,
|
|
|
|
PackedColorArray = 37,
|
|
|
|
Max = 38
|
|
|
|
}
|
|
|
|
|
|
|
|
internal enum PropertyHint
|
|
|
|
{
|
|
|
|
None = 0,
|
|
|
|
Range = 1,
|
|
|
|
Enum = 2,
|
|
|
|
EnumSuggestion = 3,
|
|
|
|
ExpEasing = 4,
|
|
|
|
Link = 5,
|
|
|
|
Flags = 6,
|
2022-12-07 23:11:39 +08:00
|
|
|
Layers2DRender = 7,
|
|
|
|
Layers2DPhysics = 8,
|
|
|
|
Layers2DNavigation = 9,
|
|
|
|
Layers3DRender = 10,
|
|
|
|
Layers3DPhysics = 11,
|
|
|
|
Layers3DNavigation = 12,
|
2022-02-28 04:57:30 +08:00
|
|
|
File = 13,
|
|
|
|
Dir = 14,
|
|
|
|
GlobalFile = 15,
|
|
|
|
GlobalDir = 16,
|
|
|
|
ResourceType = 17,
|
|
|
|
MultilineText = 18,
|
|
|
|
Expression = 19,
|
|
|
|
PlaceholderText = 20,
|
|
|
|
ColorNoAlpha = 21,
|
2022-11-19 08:54:23 +08:00
|
|
|
ObjectId = 22,
|
|
|
|
TypeString = 23,
|
|
|
|
NodePathToEditedNode = 24,
|
2023-01-09 22:31:44 +08:00
|
|
|
ObjectTooBig = 25,
|
|
|
|
NodePathValidTypes = 26,
|
|
|
|
SaveFile = 27,
|
|
|
|
GlobalSaveFile = 28,
|
|
|
|
IntIsObjectid = 29,
|
|
|
|
IntIsPointer = 30,
|
|
|
|
ArrayType = 31,
|
|
|
|
LocaleId = 32,
|
|
|
|
LocalizableString = 33,
|
|
|
|
NodeType = 34,
|
|
|
|
HideQuaternionEdit = 35,
|
|
|
|
Password = 36,
|
|
|
|
Max = 37
|
2022-02-28 04:57:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[Flags]
|
|
|
|
internal enum PropertyUsageFlags
|
|
|
|
{
|
|
|
|
None = 0,
|
|
|
|
Storage = 2,
|
|
|
|
Editor = 4,
|
2023-01-09 22:31:44 +08:00
|
|
|
Internal = 8,
|
|
|
|
Checkable = 16,
|
|
|
|
Checked = 32,
|
2022-02-28 04:57:30 +08:00
|
|
|
Group = 64,
|
|
|
|
Category = 128,
|
|
|
|
Subgroup = 256,
|
|
|
|
ClassIsBitfield = 512,
|
|
|
|
NoInstanceState = 1024,
|
|
|
|
RestartIfChanged = 2048,
|
|
|
|
ScriptVariable = 4096,
|
|
|
|
StoreIfNull = 8192,
|
2022-12-16 05:27:04 +08:00
|
|
|
UpdateAllIfModified = 16384,
|
|
|
|
ScriptDefaultValue = 32768,
|
|
|
|
ClassIsEnum = 65536,
|
|
|
|
NilIsVariant = 131072,
|
2023-01-09 22:31:44 +08:00
|
|
|
Array = 262144,
|
2023-01-10 14:04:35 +08:00
|
|
|
AlwaysDuplicate = 524288,
|
2023-01-11 04:42:05 +08:00
|
|
|
NeverDuplicate = 1048576,
|
|
|
|
HighEndGfx = 2097152,
|
|
|
|
NodePathFromSceneRoot = 4194304,
|
|
|
|
ResourceNotPersistent = 8388608,
|
|
|
|
KeyingIncrements = 16777216,
|
|
|
|
DeferredSetResource = 33554432,
|
|
|
|
EditorInstantiateObject = 67108864,
|
|
|
|
EditorBasicSetting = 134217728,
|
|
|
|
ReadOnly = 268435456,
|
2022-02-28 04:57:30 +08:00
|
|
|
Default = 6,
|
|
|
|
NoEditor = 2
|
|
|
|
}
|
2022-07-28 23:41:47 +08:00
|
|
|
|
2022-11-19 08:54:23 +08:00
|
|
|
[Flags]
|
2022-07-28 23:41:47 +08:00
|
|
|
public enum MethodFlags
|
|
|
|
{
|
|
|
|
Normal = 1,
|
|
|
|
Editor = 2,
|
|
|
|
Const = 4,
|
|
|
|
Virtual = 8,
|
|
|
|
Vararg = 16,
|
|
|
|
Static = 32,
|
|
|
|
ObjectCore = 64,
|
|
|
|
Default = 1
|
|
|
|
}
|
2022-02-28 04:57:30 +08:00
|
|
|
}
|