feat(scripting): add field model editing and defaults support
This commit is contained in:
@@ -11,6 +11,54 @@ void NullScriptRuntime::OnRuntimeStop(Components::Scene* scene) {
|
||||
(void)scene;
|
||||
}
|
||||
|
||||
bool NullScriptRuntime::TryGetClassFieldMetadata(
|
||||
const std::string& assemblyName,
|
||||
const std::string& namespaceName,
|
||||
const std::string& className,
|
||||
std::vector<ScriptFieldMetadata>& outFields) const {
|
||||
(void)assemblyName;
|
||||
(void)namespaceName;
|
||||
(void)className;
|
||||
outFields.clear();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NullScriptRuntime::TryGetClassFieldDefaultValues(
|
||||
const std::string& assemblyName,
|
||||
const std::string& namespaceName,
|
||||
const std::string& className,
|
||||
std::vector<ScriptFieldDefaultValue>& outFields) const {
|
||||
(void)assemblyName;
|
||||
(void)namespaceName;
|
||||
(void)className;
|
||||
outFields.clear();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NullScriptRuntime::TrySetManagedFieldValue(
|
||||
const ScriptRuntimeContext& context,
|
||||
const std::string& fieldName,
|
||||
const ScriptFieldValue& value) {
|
||||
(void)context;
|
||||
(void)fieldName;
|
||||
(void)value;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool NullScriptRuntime::TryGetManagedFieldValue(
|
||||
const ScriptRuntimeContext& context,
|
||||
const std::string& fieldName,
|
||||
ScriptFieldValue& outValue) const {
|
||||
(void)context;
|
||||
(void)fieldName;
|
||||
(void)outValue;
|
||||
return false;
|
||||
}
|
||||
|
||||
void NullScriptRuntime::SyncManagedFieldsToStorage(const ScriptRuntimeContext& context) {
|
||||
(void)context;
|
||||
}
|
||||
|
||||
bool NullScriptRuntime::CreateScriptInstance(const ScriptRuntimeContext& context) {
|
||||
return context.component != nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user