public void Enable_Should_enable_recorded_entity() { using EntityCommandRecorder recorder = new EntityCommandRecorder(1024); using World world = new World(); Entity entity = world.CreateEntity(); entity.Disable(); EntityRecord record = recorder.Record(entity); record.Enable(); recorder.Execute(); Check.That(entity.IsEnabled()).IsTrue(); }
public void EnableT_Should_enable_component_of_type_T_on_recorded_entity() { using EntityCommandRecorder recorder = new(1024); using World world = new(); Entity entity = world.CreateEntity(); entity.Set(true); entity.Disable <bool>(); EntityRecord record = recorder.Record(entity); record.Enable <bool>(); recorder.Execute(); Check.That(entity.IsEnabled()).IsTrue(); }