public bool Pack(Library_SpriteStudio6.Data.Animation.PackAttribute.ContainerInt container, string nameAttribute, int countFrame, Library_SpriteStudio6.Data.Animation.Parts.FlagBitStatus flagStatusParts, int[] tableOrderDraw, int[] tableOrderPreDraw, params Library_SpriteStudio6.Data.Animation.Attribute.Importer.AttributeInt[] listKeyData ) { /* MEMO: "ListKeyData.Length" is always 1 *//* MEMO: No inheritance is related to attribute stored in this type. */ container.TableCodeValue = new Library_SpriteStudio6.Data.Animation.PackAttribute.CodeValueContainer[0]; if (0 >= listKeyData[0].CountGetKey()) { container.TableValue = new int[0]; return(true); } /* MEMO: Default value when attribute has no key data differs depending on attribute. */ int valueDefault = 0; int value; container.TableValue = new int[countFrame]; for (int i = 0; i < countFrame; i++) { if (false == listKeyData[0].ValueGet(out value, i)) { value = valueDefault; } container.TableValue[i] = value; } return(true); }
/* ----------------------------------------------- Functions */ #region Functions public bool ValueGet(ref int outValue, ref int outFrameKey, Library_SpriteStudio6.Data.Animation.PackAttribute.ContainerInt container, ref Library_SpriteStudio6.Data.Animation.PackAttribute.ArgumentContainer argument ) { return(Library_SpriteStudio6.Data.Animation.PackAttribute.StandardUncompressed.ValueGet(ref outValue, ref outFrameKey, argument.Frame, container.TableValue)); }
public int CountGetValue(Library_SpriteStudio6.Data.Animation.PackAttribute.ContainerInt container) { return(container.TableValue.Length); }