|
| typedef void(CORECLR_DELEGATE_CALLTYPE *) | ReadMemorySampleFn(void *) |
| typedef void(CORECLR_DELEGATE_CALLTYPE *) | CollectManagedGarbageFn() |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | SerializePropertiesFn(uint64_t, void *, int) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | ApplyPropertiesFn(uint64_t, const char *, int) |
| typedef void(CORECLR_DELEGATE_CALLTYPE *) | DrawPropertiesFn(uint64_t) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | HasPropertyFn(uint64_t, const char *, int) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | DefaultPropertyJsonFn(const char *, int, void *, int) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | SerializeKeysFn(uint64_t, const char *, int, void *, int) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | JsonKeysFn(const char *, int, void *, int) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | MergeJsonFn(const char *, int, const char *, int, void *, int) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | ResolveJsonFn(const char *, int, const char *, int, void *, int) |
| typedef void(CORECLR_DELEGATE_CALLTYPE *) | SetRefContextFn(const char *, int) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | TextRefsFn(const char *, int, void *, int) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | RemapRefsFn(const char *, int, const char *, int, void *, int) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | ClearWorldMirrorFn(uint32_t) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | FlushEntityCreateQueueFn(void *, int) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | CollectGarbageFn(uint32_t) |
| typedef int(CORECLR_DELEGATE_CALLTYPE *) | ClearWorldFn(uint32_t) |
|
| void | N_Print (const char *string, int32_t is_stdout) |
| void | N_Error (const char *string, int32_t is_stdout) |
| void | N_Log (const char *log_domain, const char *log_level, const char *message, int32_t fatal, void *user_data) |
| void | N_AssertEx (const char *expression, const char *file, int32_t line, const char *message, const char *stack, bool value) |
| void | N_FaultReport (const char *report) |
| void | RecordPropertyChange (uint64_t entityId, const char *path, const char *oldText, const char *newText) |
| | The managed write path calls this when it writes a field.
|
| void | RequestPropertyRevert (uint64_t entityId, const char *path) |
| | The managed inspector calls this when the override marker on a row is pressed.
|
| bool | PropertyExtension_IsAuthored (uint64_t entityId, const char *path) |
| | The managed inspector calls this for a row, to ask whether the editor's marker says the entity authored that key.
|
| void | PropertyExtension_AddName (const char *propertyName) |
| | The property names the editor's dropdown lists.
|
| void | PropertyExtension_ClearNames () |
| | __ImplementClass (Scripting::NSharpServer, 'N#Sv', Core::RefCounted) |
| | __ImplementSingleton (Scripting::NSharpServer) |
| static void | ToDotNetString (Util::String const &str, char_t *out) |
| | nethost and hostfxr take char_t strings: wchar_t (UTF-16) on Windows, char (UTF-8) on Linux.
|
| load_assembly_and_get_function_pointer_fn | LoadAssemblyAndGetExport (Util::String const &configPath) |
| | __ImplementClass (Scripting::ScriptFeatureUnit, 'SCFU', Game::FeatureUnit) |
| | __ImplementSingleton (ScriptFeatureUnit) |
| NEBULA_EXPORT bool Scripting::PropertyExtension_IsAuthored |
( |
uint64_t | entityId, |
|
|
const char * | path ) |
The managed inspector calls this for a row, to ask whether the editor's marker says the entity authored that key.
The marker is the editor's own and the managed side cannot read it, so this is the only way a row learns whether it is the instance's own. A path with no field asks whether any field of the property is authored, which is what a section row asks with.
Same reason as RecordPropertyChange: this has to be in the object library for a managed DllImport to find it.
| NEBULA_EXPORT void Scripting::RecordPropertyChange |
( |
uint64_t | entityId, |
|
|
const char * | path, |
|
|
const char * | oldText, |
|
|
const char * | newText ) |
The managed write path calls this when it writes a field.
It reports the text the entity had and the text it would have after the write, and the editor turns that into a command. Nothing is attached in a build with no editor, and this does nothing for that build.
The path is the key inside the text the change is about, as the extension names it. A path with no field is the whole property, which is what an add and a removal report.
This is here rather than in propertyextension.cc, because the object library is what puts the symbol in the executable's dynamic symbol table. A symbol from the static nsharp archive is not one a managed DllImport can find.
| NEBULA_EXPORT void Scripting::RequestPropertyRevert |
( |
uint64_t | entityId, |
|
|
const char * | path ) |
The managed inspector calls this when the override marker on a row is pressed.
It says which key was pressed on, and the editor decides what that means: the value the prefab chain gives for that key, put back over what the instance authored for the rest. Nothing is attached in a build with no editor, and this does nothing for that build.
Same reason as RecordPropertyChange: this has to be in the object library for a managed DllImport to find it.