C# Class FSO.LotView.World

Represents world (I.E lots in the game.)
Inheritance: FSO.Common.Rendering.Framework._3DScene
Mostrar archivo Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
DirectX bool
ScrollBounds int
State WorldState

Protected Properties

Property Type Description
HasInit bool
HasInitBlueprint bool
HasInitGPU bool

Public Methods

Method Description
Draw ( GraphicsDevice device ) : void

We will just take over the whole rendering of this scene :)

GetObjectIDAtScreenPos ( int x, int y, GraphicsDevice gd ) : short

Gets the ID of the object at a given position.

GetObjectThumb ( ObjectComponent objects, Vector3 positions, GraphicsDevice gd ) : Texture2D

Gets an object group's thumbnail provided an array of objects.

GetScrollBasis ( ) : Vector2[]
InitBlueprint ( Blueprint blueprint ) : void
Initialize ( _3DLayer layer ) : void

Setup anything that needs a GraphicsDevice

InvalidateFloor ( ) : void
InvalidateRotation ( ) : void
InvalidateScroll ( ) : void
InvalidateZoom ( ) : void
PreDraw ( GraphicsDevice device ) : void

Pre-Draw

Scroll ( Vector2 dir ) : void
TestScroll ( UpdateState state ) : bool
Update ( UpdateState state ) : void
World ( GraphicsDevice Device ) : System

Creates a new World instance.

Private Methods

Method Description
InternalDraw ( GraphicsDevice device ) : void

Method Details

Draw() public method

We will just take over the whole rendering of this scene :)
public Draw ( GraphicsDevice device ) : void
device GraphicsDevice
return void

GetObjectIDAtScreenPos() public method

Gets the ID of the object at a given position.
public GetObjectIDAtScreenPos ( int x, int y, GraphicsDevice gd ) : short
x int X position of object.
y int Y position of object.
gd GraphicsDevice GraphicsDevice instance.
return short

GetObjectThumb() public method

Gets an object group's thumbnail provided an array of objects.
public GetObjectThumb ( ObjectComponent objects, Vector3 positions, GraphicsDevice gd ) : Texture2D
objects ObjectComponent The object components to draw.
positions Vector3
gd GraphicsDevice GraphicsDevice instance.
return Texture2D

GetScrollBasis() public method

public GetScrollBasis ( ) : Vector2[]
return Vector2[]

InitBlueprint() public method

public InitBlueprint ( Blueprint blueprint ) : void
blueprint Blueprint
return void

Initialize() public method

Setup anything that needs a GraphicsDevice
public Initialize ( _3DLayer layer ) : void
layer _3DLayer
return void

InvalidateFloor() public method

public InvalidateFloor ( ) : void
return void

InvalidateRotation() public method

public InvalidateRotation ( ) : void
return void

InvalidateScroll() public method

public InvalidateScroll ( ) : void
return void

InvalidateZoom() public method

public InvalidateZoom ( ) : void
return void

PreDraw() public method

Pre-Draw
public PreDraw ( GraphicsDevice device ) : void
device GraphicsDevice
return void

Scroll() public method

public Scroll ( Vector2 dir ) : void
dir Vector2
return void

TestScroll() public method

public TestScroll ( UpdateState state ) : bool
state UpdateState
return bool

Update() public method

public Update ( UpdateState state ) : void
state UpdateState
return void

World() public method

Creates a new World instance.
public World ( GraphicsDevice Device ) : System
Device GraphicsDevice A GraphicsDevice instance.
return System

Property Details

DirectX public_oe static_oe property

public static bool DirectX
return bool

HasInit protected_oe property

protected bool HasInit
return bool

HasInitBlueprint protected_oe property

protected bool HasInitBlueprint
return bool

HasInitGPU protected_oe property

protected bool HasInitGPU
return bool

ScrollBounds public_oe property

public int ScrollBounds
return int

State public_oe property

public WorldState State
return WorldState