C# Class FSO.LotView.World

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

Méthodes publiques

Свойство Type Description
DirectX bool
ScrollBounds int
State WorldState

Protected Properties

Свойство Type Description
HasInit bool
HasInitBlueprint bool
HasInitGPU bool

Méthodes publiques

Méthode 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

Méthode Description
InternalDraw ( GraphicsDevice device ) : void

Method Details

Draw() public méthode

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

GetObjectIDAtScreenPos() public méthode

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.
Résultat short

GetObjectThumb() public méthode

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.
Résultat Texture2D

GetScrollBasis() public méthode

public GetScrollBasis ( ) : Vector2[]
Résultat Vector2[]

InitBlueprint() public méthode

public InitBlueprint ( Blueprint blueprint ) : void
blueprint Blueprint
Résultat void

Initialize() public méthode

Setup anything that needs a GraphicsDevice
public Initialize ( _3DLayer layer ) : void
layer _3DLayer
Résultat void

InvalidateFloor() public méthode

public InvalidateFloor ( ) : void
Résultat void

InvalidateRotation() public méthode

public InvalidateRotation ( ) : void
Résultat void

InvalidateScroll() public méthode

public InvalidateScroll ( ) : void
Résultat void

InvalidateZoom() public méthode

public InvalidateZoom ( ) : void
Résultat void

PreDraw() public méthode

Pre-Draw
public PreDraw ( GraphicsDevice device ) : void
device GraphicsDevice
Résultat void

Scroll() public méthode

public Scroll ( Vector2 dir ) : void
dir Vector2
Résultat void

TestScroll() public méthode

public TestScroll ( UpdateState state ) : bool
state UpdateState
Résultat bool

Update() public méthode

public Update ( UpdateState state ) : void
state UpdateState
Résultat void

World() public méthode

Creates a new World instance.
public World ( GraphicsDevice Device ) : System
Device GraphicsDevice A GraphicsDevice instance.
Résultat System

Property Details

DirectX public_oe static_oe property

public static bool DirectX
Résultat bool

HasInit protected_oe property

protected bool HasInit
Résultat bool

HasInitBlueprint protected_oe property

protected bool HasInitBlueprint
Résultat bool

HasInitGPU protected_oe property

protected bool HasInitGPU
Résultat bool

ScrollBounds public_oe property

public int ScrollBounds
Résultat int

State public_oe property

public WorldState State
Résultat WorldState