scripting: fix some doc comments
This commit is contained in:
parent
388f686917
commit
5a7ac6ad11
|
@ -62,14 +62,14 @@ pub const FN_NAME_INTERNAL_REFLECT: &str = "__lyra_internal_reflect";
|
||||||
/// local cube_comp = ModelComponent.new(cube) -- annoying to write
|
/// local cube_comp = ModelComponent.new(cube) -- annoying to write
|
||||||
///
|
///
|
||||||
/// local pos = Transform.from_translation(Vec3.new(0, 0, -8.0))
|
/// local pos = Transform.from_translation(Vec3.new(0, 0, -8.0))
|
||||||
/// local e = world:spawn(pos, cube_comp)
|
/// world:spawn(pos, cube_comp)
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// With this function:
|
/// With this function:
|
||||||
/// /// ```lua
|
/// ```lua
|
||||||
/// local cube = world:request_res("assets/cube-texture-embedded.gltf")
|
/// local cube = world:request_res("assets/cube-texture-embedded.gltf")
|
||||||
/// local pos = Transform.from_translation(Vec3.new(0, 0, -8.0))
|
/// local pos = Transform.from_translation(Vec3.new(0, 0, -8.0))
|
||||||
/// local e = world:spawn(pos, cube)
|
/// world:spawn(pos, cube)
|
||||||
/// ```
|
/// ```
|
||||||
pub const FN_NAME_INTERNAL_AS_COMPONENT: &str = "__lyra_internal_refl_as_component";
|
pub const FN_NAME_INTERNAL_AS_COMPONENT: &str = "__lyra_internal_refl_as_component";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue