public static ICollection <byte> FsmEventToByteArray(SkillEvent fsmEvent) { if (fsmEvent == null) { return(null); } List <byte> list = new List <byte>(); list.AddRange(SkillUtility.StringToByteArray(fsmEvent.Name)); return(list); }
public static ICollection <byte> FsmColorToByteArray(SkillColor fsmColor) { if (fsmColor == null) { fsmColor = new SkillColor(); } List <byte> list = new List <byte>(); list.AddRange(SkillUtility.ColorToByteArray(fsmColor.Value)); list.AddRange(SkillUtility.BitConverter.GetBytes(fsmColor.UseVariable)); list.AddRange(SkillUtility.StringToByteArray(fsmColor.Name)); return(list); }
public static ICollection <byte> FsmQuaternionToByteArray(SkillQuaternion fsmQuaternion) { if (fsmQuaternion == null) { fsmQuaternion = new SkillQuaternion(); } List <byte> list = new List <byte>(); list.AddRange(SkillUtility.QuaternionToByteArray(fsmQuaternion.Value)); list.AddRange(SkillUtility.BitConverter.GetBytes(fsmQuaternion.UseVariable)); list.AddRange(SkillUtility.StringToByteArray(fsmQuaternion.Name)); return(list); }
public static ICollection <byte> FsmRectToByteArray(SkillRect fsmRect) { if (fsmRect == null) { fsmRect = new SkillRect(); } List <byte> list = new List <byte>(); list.AddRange(SkillUtility.RectToByteArray(fsmRect.Value)); list.AddRange(SkillUtility.BitConverter.GetBytes(fsmRect.UseVariable)); list.AddRange(SkillUtility.StringToByteArray(fsmRect.Name)); return(list); }
public static ICollection <byte> FsmVector3ToByteArray(SkillVector3 fsmVector3) { if (fsmVector3 == null) { fsmVector3 = new SkillVector3(); } List <byte> list = new List <byte>(); list.AddRange(SkillUtility.Vector3ToByteArray(fsmVector3.Value)); list.AddRange(SkillUtility.BitConverter.GetBytes(fsmVector3.UseVariable)); list.AddRange(SkillUtility.StringToByteArray(fsmVector3.Name)); return(list); }
public static ICollection <byte> FsmBoolToByteArray(SkillBool fsmBool) { if (fsmBool == null) { fsmBool = new SkillBool(); } List <byte> list = new List <byte>(); list.AddRange(SkillUtility.BitConverter.GetBytes(fsmBool.Value)); list.AddRange(SkillUtility.BitConverter.GetBytes(fsmBool.UseVariable)); list.AddRange(SkillUtility.StringToByteArray(fsmBool.Name)); return(list); }