fledge_time 0.2.1 copy "fledge_time: ^0.2.1" to clipboard
fledge_time: ^0.2.1 copied to clipboard

discontinuedreplaced by: fledge_calendar

Deprecated - merged into fledge_calendar. Re-export shim; import package:fledge_calendar/fledge_calendar.dart directly.

fledge_time #

Deprecated — merged into fledge_calendar.

pub package

This package is now a re-export shim. Everything that used to live here (the game calendar, day/night cycle, seasons, curfew, etc.) has moved into fledge_calendar, and the resource / plugin have been renamed:

  • GameTime → Calendar
  • GameTimePlugin → CalendarPlugin
  • GameTimeSystem → CalendarSystem

Depending on fledge_time for one release remains supported so existing code compiles unchanged (the shim re-exports the deprecated typedefs), but new code should depend on fledge_calendar directly.

Migration #

dependencies:
-  fledge_time: ^0.2.1
+  fledge_calendar: ^0.2.1
- import 'package:fledge_time/fledge_time.dart';
+ import 'package:fledge_calendar/fledge_calendar.dart';

- app.addPlugin(GameTimePlugin(config: CalendarConfig.farmingSim()));
+ app.addPlugin(CalendarPlugin(config: CalendarConfig.farmingSim()));

- final gameTime = world.getResource<GameTime>()!;
+ final calendar = world.getResource<Calendar>()!;

License #

Apache 2.0 - See LICENSE for details.

0
likes
150
points
145
downloads

Documentation

API reference

Publisher

verified publisherfledge-framework.dev

Weekly Downloads

Deprecated - merged into fledge_calendar. Re-export shim; import package:fledge_calendar/fledge_calendar.dart directly.

Topics

#ecs #game-engine #time #calendar #day-night

License

Apache-2.0 (license)

Dependencies

fledge_calendar

More

Packages that depend on fledge_time