public MoveCameraEvent(MoveCameraEvent.GetPosition enSpecialPosition, float fSpeed, bool bSlowAtEnd = false, bool bSlowAtStart = false) { this.xCamera = Program.GetTheGame().xCamera; this.fStartMoveSpeed = fSpeed; this.fMoveSpeed = fSpeed; this.enSpecialPos = enSpecialPosition; this.bSlowAtEnd = bSlowAtEnd; this.bSlowAtStart = bSlowAtStart; }
public MoveCameraEvent(NPCCodex.NPCTypes enCharacterID, float fSpeed, bool bSlowAtEnd = false, bool bSlowAtStart = false) { this.xCamera = Program.GetTheGame().xCamera; this.fStartMoveSpeed = fSpeed; this.fMoveSpeed = fSpeed; this.enCharacterID = enCharacterID; this.bSlowAtEnd = bSlowAtEnd; this.bSlowAtStart = bSlowAtStart; }
public MoveCameraEvent(Vector2 v2TargetPos, float fSpeed, bool bSlowAtEnd = false, bool bSlowAtStart = false) { this.xCamera = Program.GetTheGame().xCamera; this.v2TargetPos = v2TargetPos; this.fStartMoveSpeed = fSpeed; this.fMoveSpeed = fSpeed; this.bSlowAtEnd = bSlowAtEnd; this.bSlowAtStart = bSlowAtStart; }
public RenderComponent() { this.xCamera = Program.GetTheGame().xCamera; this.fComponentID = RenderComponent.fIDPool; RenderComponent.fIDPool += 0.0001f; if (RenderComponent.fIDPool > 0.5f) { RenderComponent.fIDPool = 0f; } }
public void SetCamera(Camera xCamera) { this.xCamera = xCamera; }