コード例 #1
0
ファイル: Actor.cs プロジェクト: rosebud667/Pixel3D
 public virtual void RegisterToDraw(SortedDrawList sortedDrawList, GameState readOnlyGameState,
                                    ISortSmoothProvider sp)
 {
     sortedDrawList.Add(this, 0, GetRenderPosition(sp), facingLeft, animationSet, currentAnimation.animation);
 }
コード例 #2
0
ファイル: Actor.cs プロジェクト: rosebud667/Pixel3D
 public Position GetRenderPosition(ISortSmoothProvider smoothProvider)         // <- SORTING
 {
     // NOTE: Visually things work better if we do not smooth the sort (so that all sorted positions are physically plausable)
     return(position);
 }