public void SaveProperties(LevelscriptCommand Command, ScrollTexConfig config) { clScrollingTexture.SetCycleDuration(Command, CycleDuration); clScrollingTexture.SetVertexPointer(Command, Conversions.ToUInteger(VertexPointer)); clScrollingTexture.SetCountOfFaces(Command, FacesCount); clScrollingTexture.SetScrollSpeed(Command, ScrollingSpeed); clScrollingTexture.SetScrollType(Command, (byte)Type); clScrollingTexture.SetScrollBehavior(Command, (byte)Behavior); clScrollingTexture.SetGroupID(Command, GroupID); clNormal3DObject.SetSegBehaviorAddr(Command, config is object && config.UseCustomBehavior && config.CustomBehaviorAddress > -1 ? (uint)config.CustomBehaviorAddress : 0x401700); var acts = new[] { false, false, false, false, false, false, false, false }; acts[7] = Act1; acts[6] = Act2; acts[5] = Act3; acts[4] = Act4; acts[3] = Act5; acts[2] = Act6; clNormal3DObject.SetActs(Command, Bits.ArrayToByte(acts)); }
public void SaveProperties(ScrollTexConfig config) { SaveProperties(Command, config); }