Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 public Unit(Room room, float health, BattleObjectSettings settings, OwnerId owner, float2 position) : base(room, settings, owner, position)
 {
     Health = health;
 }
Exemplo n.º 3
0
 public BattleObject(Room room, BattleObjectSettings settings, BattleObject parent, float2 position) :
     this(room, settings, parent != null ? parent.Owner : OwnerId.Neutral, position)
 {
     Parent = parent;
 }
Exemplo n.º 4
0
 public MarusBeam(Room room, BattleObjectSettings settings, Boss2 parent, float2 position) : base(room, settings, parent, position)
 {
     _Length = 3;
     Marus   = parent;
 }