Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support to generate UE DataTable: ue-csv and ue-json #31

Open
wenchy opened this issue Jan 15, 2023 · 0 comments
Open

feat: add support to generate UE DataTable: ue-csv and ue-json #31

wenchy opened this issue Jan 15, 2023 · 0 comments
Labels
help wanted Extra attention is needed UnderDiscussion

Comments

@wenchy
Copy link
Member

wenchy commented Jan 15, 2023

References

Design

Extend Metasheet in proto/tableau/protobuf/metabook.proto:

message Metasheet {
  ...
  Mode mode = 17 [(tableau.field) = { name: "Mode" optional: true }];
}

enum Mode {
  MODE_DEFAULT = 0; // Default mode.
  // UE DataTable references:
  //  - https://docs.unrealengine.com/5.1/en-US/data-driven-gameplay-elements-in-unreal-engine/
  //  - https://docs.unrealengine.com/5.1/en-US/BlueprintAPI/EditorScripting/DataTable/
  MODE_UE_CSV = 1; // CSV format of UE DataTable.
  MODE_UE_JSON= 2; // JSON format of UE DataTable.
  MODE_ENUM_TYPE = 3; // Enum type definition in sheet.
  MODE_UNION_TYPE = 4; // Union type definition in sheet.
}

For example, metasheet @TABLEAU in workbook:

Sheet Mode
Skill MODE_UE_CSV
Buff MODE_UE_JSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed UnderDiscussion
Projects
None yet
Development

No branches or pull requests

1 participant