/// <summary> /// Initializes a new instance of the <see cref="LogicSensor" /> class with the specified position, type, and status. /// </summary> /// <param name="position">The position.</param> /// <param name="type">The type.</param> /// <param name="isEnabled"><c>true</c> if the sensor is enabled; otherwise, <c>false</c>.</param> /// <param name="data">The data.</param> public LogicSensor(Vector position, LogicSensorType type, bool isEnabled, int data) { Position = position; Type = type; IsEnabled = isEnabled; Data = data; }
public void GetType(LogicSensorType type) { var sensor = new LogicSensor(Vector.Zero, type, false, 0); Assert.That(sensor.Type, Is.EqualTo(type)); }