Skip to content

Commit f64c42d

Browse files
authored
Merge pull request #38 from DDDDDragon/FixBackwardCompatibility
[Minor] Readding AddObject function to ensure backward compatibility with ui+
2 parents d70aa7a + a43e528 commit f64c42d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

ModUtils/ObjectUtils.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ static public void ApplyEvent(this UndertaleGameObject gameObject, ModFile modFi
3333
}
3434
public static partial class Msl
3535
{
36+
public static UndertaleGameObject AddObject(string name)
37+
{
38+
return AddObject(
39+
name,
40+
spriteName:"",
41+
parentName: "",
42+
isVisible: false,
43+
isPersistent: false,
44+
isAwake: false,
45+
collisionShapeFlags: CollisionShapeFlags.Circle);
46+
}
3647
/// <summary>
3748
/// Add and return a new <see cref="UndertaleGameObject"/> named <paramref name="name"/> to the data.win if this name is not used already.
3849
/// Else return the existing <see cref="UndertaleGameObject"/>.

0 commit comments

Comments
 (0)