mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 22:05:53 +00:00
Make shallow copies of resources
This commit is contained in:
parent
c318bd8c13
commit
0203af4642
8 changed files with 55 additions and 15 deletions
15
Scripts/Resources/TestGeneric/GenericTestResourceBase.cs
Normal file
15
Scripts/Resources/TestGeneric/GenericTestResourceBase.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.Resources.TestGeneric;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class GenericTestResourceBase : Resource
|
||||
{
|
||||
[Export]
|
||||
public int Value { get; set; }
|
||||
|
||||
public void Test()
|
||||
{
|
||||
var asfd = this.MemberwiseClone() as GenericTestResourceBase;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue