Advertisement
snake5

SGScript data schema for prop.grid rendering?

Sep 9th, 2014
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ENTITY_PROPERTY =
  2. {
  3.     "$type" = "object",
  4.     name = { "$type" = "string" },
  5.     label = { "$type" = "string" },
  6.     type = { "$type" = "string", "$hint" = "type.property.entity", "$options" = ["text","position","angle"] },
  7.     default = { "$type" = "string" },
  8. },
  9. ENTITY =
  10. {
  11.     "$type" = "object",
  12.     name = { "$type" = "string" },
  13.     label = { "$type" = "string" },
  14.     icon = { "$type" = "string", "$hint" = "path.image.icon.entity" },
  15.     properties = { "$type" = "array", "$subtype" = "ENTITY_PROPERTY" },
  16.     render = { "$type" = "array", "$subtype" = "string" },
  17. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement