public BattleObject(Room room, BattleObjectSettings settings, OwnerId owner, float2 position) { if (settings == null) { throw new ArgumentNullException($"Tried to spawn object {GetType()} with null settings!"); } Owner = owner; Settings = settings; Size = settings.Size; Position = position; Room = room; SendViewEvent(ViewEventType.Init); }
public Unit(Room room, float health, BattleObjectSettings settings, OwnerId owner, float2 position) : base(room, settings, owner, position) { Health = health; }
public BattleObject(Room room, BattleObjectSettings settings, BattleObject parent, float2 position) : this(room, settings, parent != null ? parent.Owner : OwnerId.Neutral, position) { Parent = parent; }
public MarusBeam(Room room, BattleObjectSettings settings, Boss2 parent, float2 position) : base(room, settings, parent, position) { _Length = 3; Marus = parent; }