コード例 #1
0
 /// <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);
 }
コード例 #2
0
        /// <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);
        }