SE3-TTSDeck/resources/ttsdeck/TTSJson.js

16 lines
331 B
JavaScript

// Helper functions for Tabletop Simulator JSON output
exports.makeSavedObjectJSON = function makeSavedObjectJSON(objects, save_name) {
return {
SaveName: String(save_name || ""),
GameMode: "",
Date: "",
Table: "",
Sky: "",
Note: "",
Rules: "",
PlayerTurn: "",
ObjectStates: objects,
};
};