C# Class FC3Editor.Nomad.Editor

Show file Open project: Azerothian/fc3editor Class Usage Examples

Public Methods

Method Description
ApplyScreenDeltaToWorldPos ( Vec2 screenDelta, Vec3 &worldPos ) : void
EnterIngame ( string gameMode ) : void
ExitIngame ( ) : void
GetRegistryInt ( RegistryKey key, string name, int defaultValue ) : int
GetRegistryInt ( string name, int defaultValue ) : int
GetRegistrySettings ( ) : RegistryKey
GetRegistryString ( RegistryKey key, string name, string defaultValue ) : string
GetScreenPointFromWorldPos ( Vec3 worldPos, Vec2 &screenPoint ) : bool
GetScreenPointFromWorldPos ( Vec3 worldPos, Vec2 &screenPoint, bool clipped ) : bool
GetWorldRayFromScreenPoint ( Vec2 screenPoint, Vec3 &raySrc, Vec3 &rayDir ) : void
Init ( ) : void
OnEditorEvent ( uint eventType, IntPtr eventPtr ) : void
OnKeyEvent ( Editor keyEvent, KeyEventArgs keyEventArgs ) : void
OnMouseEvent ( Editor mouseEvent, MouseEventArgs mouseEventArgs ) : void
OnUpdate ( float dt ) : void
PopInput ( IInputSink input ) : void
PushInput ( IInputSink input ) : void
RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObject ignore, Vec3 &hitPos, float &hitDist ) : bool
RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObject ignore, Vec3 &hitPos, float &hitDist, Vec3 &hitNormal ) : bool
RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObjectSelection ignore, Vec3 &hitPos, float &hitDist ) : bool
RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObjectSelection ignore, Vec3 &hitPos, float &hitDist, Vec3 &hitNormal ) : bool
RayCastPhysicsFromMouse ( Vec3 &hitPos ) : bool
RayCastPhysicsFromScreenPoint ( Vec2 screenPoint, Vec3 &hitPos ) : bool
RayCastTerrain ( Vec3 raySrc, Vec3 rayDir, Vec3 &hitPos, float &hitDist ) : bool
RayCastTerrainFromMouse ( Vec3 &hitPos ) : bool
RayCastTerrainFromScreenPoint ( Vec2 screenPoint, Vec3 &hitPos ) : bool
SetRegistryInt ( RegistryKey key, string name, int value ) : void
SetRegistryInt ( string name, int value ) : void

Private Methods

Method Description
EnableUICallback ( bool enable ) : void
EventCallback ( uint eventType, IntPtr eventPtr ) : void
GetInputs ( ) : IEnumerable
LoadCompletedCallback ( bool success ) : void
SaveCompletedCallback ( bool success ) : void
UpdateCallback ( float dt ) : void

Method Details

ApplyScreenDeltaToWorldPos() public static method

public static ApplyScreenDeltaToWorldPos ( Vec2 screenDelta, Vec3 &worldPos ) : void
screenDelta Vec2
worldPos Vec3
return void

EnterIngame() public static method

public static EnterIngame ( string gameMode ) : void
gameMode string
return void

ExitIngame() public static method

public static ExitIngame ( ) : void
return void

GetRegistryInt() public static method

public static GetRegistryInt ( RegistryKey key, string name, int defaultValue ) : int
key Microsoft.Win32.RegistryKey
name string
defaultValue int
return int

GetRegistryInt() public static method

public static GetRegistryInt ( string name, int defaultValue ) : int
name string
defaultValue int
return int

GetRegistrySettings() public static method

public static GetRegistrySettings ( ) : RegistryKey
return Microsoft.Win32.RegistryKey

GetRegistryString() public static method

public static GetRegistryString ( RegistryKey key, string name, string defaultValue ) : string
key Microsoft.Win32.RegistryKey
name string
defaultValue string
return string

GetScreenPointFromWorldPos() public static method

public static GetScreenPointFromWorldPos ( Vec3 worldPos, Vec2 &screenPoint ) : bool
worldPos Vec3
screenPoint Vec2
return bool

GetScreenPointFromWorldPos() public static method

public static GetScreenPointFromWorldPos ( Vec3 worldPos, Vec2 &screenPoint, bool clipped ) : bool
worldPos Vec3
screenPoint Vec2
clipped bool
return bool

GetWorldRayFromScreenPoint() public static method

public static GetWorldRayFromScreenPoint ( Vec2 screenPoint, Vec3 &raySrc, Vec3 &rayDir ) : void
screenPoint Vec2
raySrc Vec3
rayDir Vec3
return void

Init() public static method

public static Init ( ) : void
return void

OnEditorEvent() public static method

public static OnEditorEvent ( uint eventType, IntPtr eventPtr ) : void
eventType uint
eventPtr System.IntPtr
return void

OnKeyEvent() public static method

public static OnKeyEvent ( Editor keyEvent, KeyEventArgs keyEventArgs ) : void
keyEvent Editor
keyEventArgs System.Windows.Forms.KeyEventArgs
return void

OnMouseEvent() public static method

public static OnMouseEvent ( Editor mouseEvent, MouseEventArgs mouseEventArgs ) : void
mouseEvent Editor
mouseEventArgs System.Windows.Forms.MouseEventArgs
return void

OnUpdate() public static method

public static OnUpdate ( float dt ) : void
dt float
return void

PopInput() public static method

public static PopInput ( IInputSink input ) : void
input IInputSink
return void

PushInput() public static method

public static PushInput ( IInputSink input ) : void
input IInputSink
return void

RayCastPhysics() public static method

public static RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObject ignore, Vec3 &hitPos, float &hitDist ) : bool
raySrc Vec3
rayDir Vec3
ignore EditorObject
hitPos Vec3
hitDist float
return bool

RayCastPhysics() public static method

public static RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObject ignore, Vec3 &hitPos, float &hitDist, Vec3 &hitNormal ) : bool
raySrc Vec3
rayDir Vec3
ignore EditorObject
hitPos Vec3
hitDist float
hitNormal Vec3
return bool

RayCastPhysics() public static method

public static RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObjectSelection ignore, Vec3 &hitPos, float &hitDist ) : bool
raySrc Vec3
rayDir Vec3
ignore EditorObjectSelection
hitPos Vec3
hitDist float
return bool

RayCastPhysics() public static method

public static RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObjectSelection ignore, Vec3 &hitPos, float &hitDist, Vec3 &hitNormal ) : bool
raySrc Vec3
rayDir Vec3
ignore EditorObjectSelection
hitPos Vec3
hitDist float
hitNormal Vec3
return bool

RayCastPhysicsFromMouse() public static method

public static RayCastPhysicsFromMouse ( Vec3 &hitPos ) : bool
hitPos Vec3
return bool

RayCastPhysicsFromScreenPoint() public static method

public static RayCastPhysicsFromScreenPoint ( Vec2 screenPoint, Vec3 &hitPos ) : bool
screenPoint Vec2
hitPos Vec3
return bool

RayCastTerrain() public static method

public static RayCastTerrain ( Vec3 raySrc, Vec3 rayDir, Vec3 &hitPos, float &hitDist ) : bool
raySrc Vec3
rayDir Vec3
hitPos Vec3
hitDist float
return bool

RayCastTerrainFromMouse() public static method

public static RayCastTerrainFromMouse ( Vec3 &hitPos ) : bool
hitPos Vec3
return bool

RayCastTerrainFromScreenPoint() public static method

public static RayCastTerrainFromScreenPoint ( Vec2 screenPoint, Vec3 &hitPos ) : bool
screenPoint Vec2
hitPos Vec3
return bool

SetRegistryInt() public static method

public static SetRegistryInt ( RegistryKey key, string name, int value ) : void
key Microsoft.Win32.RegistryKey
name string
value int
return void

SetRegistryInt() public static method

public static SetRegistryInt ( string name, int value ) : void
name string
value int
return void