/// <summary> /// Restore full action save data including action specific data. /// </summary> public void RestoreActionSaveData(ActionSaveData_v1 data) { isComplete = data.isComplete; isTriggerCondition = data.isTriggerCondition; isAlwaysOnTriggerCondition = data.isAlwaysOnTriggerCondition; debugSource = data.debugSource; RestoreSaveData(data.actionSpecific); }
/// <summary> /// Get full action save data including action specific data. /// </summary> public ActionSaveData_v1 GetActionSaveData() { ActionSaveData_v1 actionData = new ActionSaveData_v1(); actionData.type = GetType(); actionData.isComplete = isComplete; actionData.isTriggerCondition = isTriggerCondition; actionData.isAlwaysOnTriggerCondition = isAlwaysOnTriggerCondition; actionData.debugSource = debugSource; actionData.actionSpecific = GetSaveData(); return(actionData); }