Add this to API_PARAM for static method extension of a type

This commit is contained in:
Wojtek Figat
2023-02-13 16:04:33 +01:00
parent 7fe7742430
commit 46cfa01622
4 changed files with 13 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ namespace Flax.Build.Bindings
public string Attributes;
public bool IsRef;
public bool IsOut;
public bool IsThis;
public bool HasDefaultValue => !string.IsNullOrEmpty(DefaultValue);
@@ -35,6 +36,7 @@ namespace Flax.Build.Bindings
// TODO: convert into flags
writer.Write(IsRef);
writer.Write(IsOut);
writer.Write(IsThis);
}
public void Read(BinaryReader reader)
@@ -46,6 +48,7 @@ namespace Flax.Build.Bindings
// TODO: convert into flags
IsRef = reader.ReadBoolean();
IsOut = reader.ReadBoolean();
IsThis = reader.ReadBoolean();
}
public override string ToString()