Skip to content

Commit 970b844

Browse files
committed
remove by guid
1 parent 714fd09 commit 970b844

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • CathodeLib/Scripts/CATHODE/CommandsPAK/Components

CathodeLib/Scripts/CATHODE/CommandsPAK/Components/Entity.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,15 @@ public Parameter AddParameter(Parameter param)
195195
public void RemoveParameter(string name)
196196
{
197197
ShortGuid name_id = ShortGuidUtils.Generate(name);
198-
parameters.RemoveAll(o => o.name == name_id);
198+
RemoveParameter(name_id);
199199
}
200200
public void RemoveParameter(Parameter param)
201201
{
202-
parameters.RemoveAll(o => o == param);
202+
RemoveParameter(param.name);
203+
}
204+
public void RemoveParameter(ShortGuid guid)
205+
{
206+
parameters.RemoveAll(o => o.name == guid);
203207
}
204208

205209
/* Add a link from a parameter on us out to a parameter on another entity */

0 commit comments

Comments
 (0)