/// <summary> Used to move to holder pos </summary> public AnimationMessage(int msgID, int dependencyID, int[] indexInHierarchy, int holderCollum) : base(msgID, dependencyID, MessageTypes.Animation) { this.type = AnimationMessageTypes.Scroll; this.indexInHierarchy = indexInHierarchy; this.speed = 1000000; this.posCollum = holderCollum; }
// <summary> Used to move element on a specific board position </summary> public AnimationMessage(int msgID, int dependencyID, AnimationMessageTypes type, int[] indexInHierarchy, float speed, int posCollum, int posRow) : base(msgID, dependencyID, MessageTypes.Animation) { this.indexInHierarchy = indexInHierarchy; this.type = type; this.speed = speed; this.posCollum = posCollum; this.posRow = posRow; }
// <summary> Used for scale and movement </summary> public AnimationMessage(int msgID, int dependencyID, AnimationMessageTypes type, int[] indexInHierarchy, float speed, float targetX, float targetY, float targetZ) : base(msgID, dependencyID, MessageTypes.Animation) { this.indexInHierarchy = indexInHierarchy; this.type = type; this.speed = speed; this.targetX = targetX; this.targetY = targetY; this.targetZ = targetZ; }
/// <summary> Used to change sprite </summary> public AnimationMessage(int msgID, int dependencyID, AnimationMessageTypes type, int[] indexInHierarchy, int targetSpriteIndex) : base(msgID, dependencyID, MessageTypes.Animation) { this.type = type; this.indexInHierarchy = indexInHierarchy; this.type = AnimationMessageTypes.ChangeSprite; this.spriteIndexInArray = targetSpriteIndex; this.speed = 1000000; this.targetX = 1; this.targetY = 1; this.targetZ = 1; this.targetW = 1; }
/// <summary> Used to change sprite and color </summary> public AnimationMessage(int msgID, int dependencyID, AnimationMessageTypes type, int[] indexInHierarchy, int targetSpriteIndex, Vector4 color) : base(msgID, dependencyID, MessageTypes.Animation) { this.type = type; this.indexInHierarchy = indexInHierarchy; this.type = AnimationMessageTypes.ChangeSprite; this.spriteIndexInArray = targetSpriteIndex; this.speed = 1000000; targetX = color.X; targetY = color.Y; targetZ = color.Z; targetW = color.W; }