C# 클래스 SmashBros.Models.ImageModel

파일 보기 프로젝트 열기: Grutn/TDT4240-X2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Callback Action
CurrentFrame int
CurrentPos Vector2
CurrentRotation float
CurrentScale float
FPS int
Offset Vector2
Origin Vector2
SpriteEffect SpriteEffects

공개 메소드들

메소드 설명
ImageModel ( Vector2 pos, float scale = 1f ) : System

비공개 메소드들

메소드 설명
BoundBoxDimension ( World world, int width, int height, Vector2 offset ) : void
DisposBoundBox ( ) : void
SetBoundBox ( World World, int width, int height, Vector2 offset, Category category = Category.None, Category collidesWith = Category.None, bool isStatic = false ) : void

메소드 상세

ImageModel() 공개 메소드

public ImageModel ( Vector2 pos, float scale = 1f ) : System
pos Vector2
scale float
리턴 System

프로퍼티 상세

Callback 공개적으로 프로퍼티

Callback that is run every time the animation reaches a end point event if loop
public Action Callback
리턴 Action

CurrentFrame 공개적으로 프로퍼티

params for frame animation
public int CurrentFrame
리턴 int

CurrentPos 공개적으로 프로퍼티

Positions for model
public Vector2 CurrentPos
리턴 Vector2

CurrentRotation 공개적으로 프로퍼티

Rotation
public float CurrentRotation
리턴 float

CurrentScale 공개적으로 프로퍼티

Scales used for model
public float CurrentScale
리턴 float

FPS 공개적으로 프로퍼티

Frames pr second for this istances if it runs frame animation
public int FPS
리턴 int

Offset 공개적으로 프로퍼티

public Vector2 Offset
리턴 Vector2

Origin 공개적으로 프로퍼티

Origin of target
public Vector2 Origin
리턴 Vector2

SpriteEffect 공개적으로 프로퍼티

public SpriteEffects SpriteEffect
리턴 SpriteEffects