Gerard-Meier

Json example (wrong syntax, I know)

Apr 16th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     entity: {
  3.         name: "Boid",
  4.         initialize: {
  5.             model: "enemy.obj"
  6.         },
  7.         children: {
  8.             AIComponent: {
  9.                 initialize: {
  10.                     weight: 10
  11.                 },
  12.                 children: {
  13.                     Detector: {
  14.                         initialize: {
  15.                             classToDetect: "StarShip"
  16.                         }
  17.                     }
  18.                 }
  19.             },
  20.             FlockingCohesion: {
  21.                 initialize: {
  22.                     weight: 10
  23.                 }
  24.             },
  25.             FlockingSeperation: {
  26.                 initialize: {
  27.                     weight: 10
  28.                 }
  29.             },
  30.             FlockingAlignment: {
  31.                 initialize: {
  32.                     weight: 10
  33.                 }
  34.             }
  35.         }
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment