syntax = "proto3";

package retrom;

import "google/protobuf/timestamp.proto";

enum SaveStrategy {
  SINGLE_FILE = 0;
  FILE_SYSTEM_DIRECTORY = 1;
  DISK_IMAGE = 2;
}

message Emulator {
  int32 id = 1;
  repeated int32 supported_platforms = 2;
  string name = 3;
  SaveStrategy save_strategy = 4;
  google.protobuf.Timestamp created_at = 5;
  google.protobuf.Timestamp updated_at = 6;
  int32 client_id = 7;
  string executable_path = 8;
}

message NewEmulator {
  repeated int32 supported_platforms = 1;
  string name = 2;
  SaveStrategy save_strategy = 3;
  optional google.protobuf.Timestamp created_at = 4;
  optional google.protobuf.Timestamp updated_at = 5;
  int32 client_id = 6;
  string executable_path = 7;
}

message UpdatedEmulator {
  int32 id = 1;
  repeated int32 supported_platforms = 2;
  optional string name = 3;
  optional SaveStrategy save_strategy = 4;
  optional google.protobuf.Timestamp created_at = 5;
  optional google.protobuf.Timestamp updated_at = 6;
  optional int32 client_id = 7;
  optional string executable_path = 8;
}

message EmulatorProfile {
  int32 id = 1;
  int32 emulator_id = 2;
  string name = 3;
  repeated string supported_extensions = 4;
  repeated string custom_args = 5;
  google.protobuf.Timestamp created_at = 6;
  google.protobuf.Timestamp updated_at = 7;
}

message NewEmulatorProfile {
  int32 emulator_id = 1;
  string name = 2;
  repeated string supported_extensions = 3;
  repeated string custom_args = 4;
  optional google.protobuf.Timestamp created_at = 5;
  optional google.protobuf.Timestamp updated_at = 6;
}

message UpdatedEmulatorProfile {
  int32 id = 1;
  optional int32 emulator_id = 2;
  optional string name = 3;
  repeated string supported_extensions = 4;
  repeated string custom_args = 5;
  optional google.protobuf.Timestamp created_at = 6;
  optional google.protobuf.Timestamp updated_at = 7;
}

message DefaultEmulatorProfile {
  int32 platform_id = 1;
  int32 emulator_profile_id = 2;
  google.protobuf.Timestamp created_at = 3;
  google.protobuf.Timestamp updated_at = 4;
}

message NewDefaultEmulatorProfile {
  int32 platform_id = 1;
  int32 emulator_profile_id = 2;
  optional google.protobuf.Timestamp created_at = 3;
  optional google.protobuf.Timestamp updated_at = 4;
}

message UpdatedDefaultEmulatorProfile {
  int32 platform_id = 1;
  int32 emulator_profile_id = 2;
  optional google.protobuf.Timestamp created_at = 3;
  optional google.protobuf.Timestamp updated_at = 4;
}
