public void LoadProperties() { // Acts var acts = Bits.ByteToBoolArray(clNormal3DObject.GetActs(Command)); Act1 = acts[7]; Act2 = acts[6]; Act3 = acts[5]; Act4 = acts[4]; Act5 = acts[3]; Act6 = acts[2]; // Position Position = clNormal3DObject.GetPosition(Command); // Rotation Rotation = clNormal3DObject.GetRotation(Command); // Model-ID ModelID = clNormal3DObject.GetModelID(Command); // Behavior-ID BehaviorID = clNormal3DObject.GetSegBehaviorAddr(Command); // B. Params var bParams = clNormal3DObject.GetParams(Command); BParam1 = bParams.BParam1; BParam2 = bParams.BParam2; BParam3 = bParams.BParam3; BParam4 = bParams.BParam4; }
public void LoadProperties() { CycleDuration = clScrollingTexture.GetCycleDuration(Command); VertexPointer = Conversions.ToInteger(clScrollingTexture.GetVertexPointer(Command)); FacesCount = clScrollingTexture.GetCountOfFaces(Command); ScrollingSpeed = clScrollingTexture.GetScrollSpeed(Command); Type = (ScrollType)clScrollingTexture.GetScrollType(Command); Behavior = (ScrollBehavior)clScrollingTexture.GetScrollBehavior(Command); GroupID = clScrollingTexture.GetGroupID(Command); var acts = Bits.ByteToBoolArray(clNormal3DObject.GetActs(Command)); Act1 = acts[7]; Act2 = acts[6]; Act3 = acts[5]; Act4 = acts[4]; Act5 = acts[3]; Act6 = acts[2]; }