Exemple #1
0
 public override APIHandler.EntityUploadJSON getUploadData()
 {
     APIHandler.EntityUploadJSON upload = new APIHandler.EntityUploadJSON();
     upload.isNamable     = true;
     upload.Name          = name;
     upload.State         = namableState.ToString();
     upload.UniqueId      = uniqueID;
     upload.dialogueState = dialogueState;
     return(upload);
 }
Exemple #2
0
 public override APIHandler.EntityUploadJSON getUploadData()
 {
     APIHandler.EntityUploadJSON upload = new APIHandler.EntityUploadJSON();
     upload.isNamable      = false;
     upload.Name           = name;
     upload.State          = namableState.ToString();
     upload.UniqueId       = uniqueID;
     upload.HideActionNr   = hideActionsNr;
     upload.HideEntityNr   = hideEntitiesNr;
     upload.HideLocationNr = hideLocationsNr;
     return(upload);
 }
Exemple #3
0
 private static void SendAPIUploadRequest()
 {
     APIHandler.EntityUploadJSON uploadData = new APIHandler.EntityUploadJSON();
     uploadData.isNamable = (_eventInfo.namable.GetType() != typeof(Location));
     if (!uploadData.isNamable)
     {
         uploadData.HideActionNr   = (_eventInfo.namable as Location).hideActionsNr;
         uploadData.HideEntityNr   = (_eventInfo.namable as Location).hideEntitiesNr;
         uploadData.HideLocationNr = (_eventInfo.namable as Location).hideLocationsNr;
     }
     uploadData.Name     = _inputField.text;
     uploadData.UniqueId = _eventInfo.namable.uniqueID;
     uploadData.State    = _eventInfo.namable.namableState.ToString();
     APIHandler.getAPIHandler().UploadEntityData(uploadData);
 }