MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / generate_module_cpp_content

Function generate_module_cpp_content

crates/codegen/src/unrealcpp.rs:7027–7036  ·  view source on GitHub ↗
(module_name: &str)

Source from the content-addressed store, hash-verified

7025}
7026
7027fn generate_module_cpp_content(module_name: &str) -> String {
7028 format!(
7029 r#"#include "{module_name}.h"
7030#include "Modules/ModuleManager.h"
7031
7032IMPLEMENT_PRIMARY_GAME_MODULE(FDefaultGameModuleImpl, {module_name}, "{module_name}");
7033"#,
7034 module_name = module_name
7035 )
7036}
7037
7038fn generate_module_h_content(_module_name: &str) -> String {
7039 r#"#pragma once

Callers 1

generate_global_filesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…