Debian Codegraph @

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/GeneratedSources/ScriptBoilerplate_ScriptSerialization.generated.cs

raw symbols SCIP
1 using Godot;
2 using Godot.NativeInterop;
3
4 partial class ScriptBoilerplate
5 {
6 /// <inheritdoc/>
7 [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
8 protected override void SaveGodotObjectData(global::Godot.Bridge.GodotSerializationInfo info)
9 {
10 base.SaveGodotObjectData(info);
11 info.AddProperty(PropertyName.@_nodePath, global::Godot.Variant.From<global::Godot.NodePath>(this.@_nodePath));
12 info.AddProperty(PropertyName.@_velocity, global::Godot.Variant.From<int>(this.@_velocity));
13 }
14 /// <inheritdoc/>
15 [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
16 protected override void RestoreGodotObjectData(global::Godot.Bridge.GodotSerializationInfo info)
17 {
18 base.RestoreGodotObjectData(info);
19 if (info.TryGetProperty(PropertyName.@_nodePath, out var _value__nodePath))
20 this.@_nodePath = _value__nodePath.As<global::Godot.NodePath>();
21 if (info.TryGetProperty(PropertyName.@_velocity, out var _value__velocity))
22 this.@_velocity = _value__velocity.As<int>();
23 }
24 }