public ComponentDto(ComponentBase component, int tick) { StartTick = tick; Type = ComponentBase.GetComponentType(component.GetType()); Component = JsonConvert.SerializeObject(component); }