public void SetEvent(MSB3.Event.GroupTour evt) { setBaseEvent(evt); PlatoonIDScriptActivate = evt.PlatoonIDScriptActivate; State = evt.State; GroupPartsNames = evt.GroupPartsNames; }
public MSB3.Event.GroupTour Serialize(GameObject parent) { var evt = new MSB3.Event.GroupTour(ID, parent.name); _Serialize(evt, parent); evt.PlatoonIDScriptActivate = PlatoonIDScriptActivate; evt.State = State; for (int i = 0; i < 32; i++) { if (i >= GroupPartsNames.Length) { break; } evt.GroupPartsNames[i] = (GroupPartsNames[i] == "") ? null : GroupPartsNames[i]; } return(evt); }