Class ClassInfo¶
Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll
What the registry knows about an
public sealed class ClassInfo
Inheritance¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors¶
ClassInfo(string, string?, Type, PropertyDef[], MethodDef[], SignalDef[], Func<EngineObject>?, bool, bool, string?)¶
public ClassInfo(string name, string? baseName, Type clrType, PropertyDef[] properties, MethodDef[] methods, SignalDef[] signals, Func<EngineObject>? factory = null, bool scriptable = true, bool modsBlocked = false, string? doc = null)
Parameters¶
name string
baseName string?
clrType Type
properties PropertyDef[]
methods MethodDef[]
signals SignalDef[]
factory Func<EngineObject>?
scriptable bool
modsBlocked bool
doc string?
Properties¶
Base¶
public ClassInfo? Base { get; }
Property Value¶
BaseName¶
The name of the closest reflected base class, or null.
public string? BaseName { get; }
Property Value¶
ClrType¶
public Type ClrType { get; }
Property Value¶
Creatable¶
True for a class scripts can create with new().
public bool Creatable { get; }
Property Value¶
Doc¶
public string? Doc { get; }
Property Value¶
Methods¶
public MethodDef[] Methods { get; }
Property Value¶
ModsBlocked¶
Objects of this class are refused to mods.
public bool ModsBlocked { get; }
Property Value¶
Name¶
public string Name { get; }
Property Value¶
Properties¶
The members declared by this class itself.
public PropertyDef[] Properties { get; }
Property Value¶
Scriptable¶
public bool Scriptable { get; }
Property Value¶
Signals¶
public SignalDef[] Signals { get; }
Property Value¶
Methods¶
Create()¶
Creates an object of this class; the class must be
public EngineObject Create()
Returns¶
FindMethod(string)¶
public MethodDef? FindMethod(string scriptName)
Parameters¶
scriptName string
Returns¶
FindProperty(string)¶
public PropertyDef? FindProperty(string scriptName)
Parameters¶
scriptName string
Returns¶
FindSignal(string)¶
public SignalDef? FindSignal(string scriptName)
Parameters¶
scriptName string
Returns¶
IsSubclassOf(ClassInfo)¶
public bool IsSubclassOf(ClassInfo other)
Parameters¶
other ClassInfo