Esempio n. 1
0
 public StoneData(string id, string bowlID) : base(id)
 {
     _bowlID        = bowlID;
     _previewBowlID = bowlID;
     BowlID         = new Notifying <string>(() => _bowlID, x => _bowlID = x);
     PreviewBowlID  = new Notifying <string>(() => _previewBowlID, x => _previewBowlID = x);
 }
Esempio n. 2
0
 public StoneBodyData(string id, Vector3 position, Quaternion rotation) : base(id)
 {
     _position    = position;
     _rotation    = rotation;
     Position     = new Notifying <Vector3>(() => _position, x => _position = x);
     Rotation     = new Notifying <Quaternion>(() => _rotation, x => _rotation = x);
     IsPreviewing = new Notifying <bool>(() => _isPreviewing, x => _isPreviewing = x);
 }
Esempio n. 3
0
 //Serialization
 public StoneData()
 {
     BowlID        = new Notifying <string>(() => _bowlID, x => _bowlID = x);
     PreviewBowlID = new Notifying <string>(() => _previewBowlID, x => _previewBowlID = x);
 }
Esempio n. 4
0
 //Serialization
 public StoneBodyData()
 {
     Position     = new Notifying <Vector3>(() => _position, x => _position = x);
     Rotation     = new Notifying <Quaternion>(() => _rotation, x => _rotation = x);
     IsPreviewing = new Notifying <bool>(() => _isPreviewing, x => _isPreviewing = x);
 }