LADXHD/InGame/GameObjects/Things/ObjMusic.cs

22 lines
500 B
C#
Raw Normal View History

2023-12-14 22:21:22 +00:00
using ProjectZ.InGame.GameObjects.Base;
namespace ProjectZ.InGame.GameObjects.Things
{
class ObjMusic : GameObject
{
private string _title;
public ObjMusic() : base("editor music") { }
public ObjMusic(Map.Map map, int posX, int posY, string title) : base(map)
{
_title = title;
if (int.TryParse(_title, out var songNr))
Map.MapMusic[0] = songNr;
IsDead = true;
}
}
}