mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-27 03:53:01 +00:00
fix entity duplication
This commit is contained in:
parent
4245f93e83
commit
4e7b9f87ea
1 changed files with 8 additions and 5 deletions
|
@ -24,8 +24,10 @@ namespace HeavenStudio
|
||||||
// software version (MajorMinorPatch, revision)
|
// software version (MajorMinorPatch, revision)
|
||||||
{"productversion", 000},
|
{"productversion", 000},
|
||||||
{"productsubversion", 0},
|
{"productsubversion", 0},
|
||||||
//file format version
|
// file format version
|
||||||
{"riqversion", CurrentRiqVersion},
|
{"riqversion", CurrentRiqVersion},
|
||||||
|
// mapper set properties? (use this to flash the button)
|
||||||
|
{"propertiesmodified", false},
|
||||||
|
|
||||||
// general chart info
|
// general chart info
|
||||||
{"remixtitle", "New Remix"}, // chart name
|
{"remixtitle", "New Remix"}, // chart name
|
||||||
|
@ -89,8 +91,9 @@ namespace HeavenStudio
|
||||||
|
|
||||||
public DynamicEntity DeepCopy()
|
public DynamicEntity DeepCopy()
|
||||||
{
|
{
|
||||||
//lol the AI generated this
|
DynamicEntity copy = (DynamicEntity)this.MemberwiseClone();
|
||||||
return JsonConvert.DeserializeObject<DynamicEntity>(JsonConvert.SerializeObject(this));
|
copy.DynamicData = new Dictionary<string, dynamic>(this.DynamicData);
|
||||||
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
public dynamic this[string propertyName]
|
public dynamic this[string propertyName]
|
||||||
|
@ -166,11 +169,11 @@ namespace HeavenStudio
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public object this[string propertyName]
|
public dynamic this[string propertyName]
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return properties[propertyName];
|
return properties[propertyName] ?? null;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue