ze0nni/FDB

Display content as timeline

Opened this issue · 0 comments

ze0nni commented
class LevelConfig {
  Kind<LevelConfig> Kind;
  [Timeline("TimelineName", Start = "Start", Duration = "Duration")]
  List<SpawnerRecord> Snapnwrs;
}

class SpawnerRecord {
  public int Start;
  public int Duration;
}

class TimelineAttribute {
  string TimelineName;
  string? StartField;
  string? EndField;
  string? DurationField;
}

Attribute mast have Start and End or Start and Duration

Type of Start can be int, float or enum

Start End and Duration can be fields or get-property. In case of field user can move and resize field with mouse.

collection can have few Timeline attributes with different names

Have idea about endless-flag

ranges

Provide min and max timeline range from parent type:

class LevelConfig {
  ...
  int Min = 0;
  int Max = 100;
  [Timeline("TimelineName", Start = "Start", Duration = "Duration", Min = "Min", Max = "Max")]
  List<SpawnerRecord> Snapnwrs;
}