C# Класс Engine.Program

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Batch SpriteBatch
_clipper IntRect
_engine ScriptEngine
_window RenderWindow

Открытые методы

Метод Описание
Abort ( string msg ) : void
BlendColors ( Color c1, Color c2 ) : ColorInstance
BlendColorsWeighted ( Color c1, Color c2, double w ) : ColorInstance
BlendColorsWeighted ( ColorInstance c1, ColorInstance c2, double w ) : ColorInstance
CreateObject ( ) : ObjectInstance
Exit ( ) : void
FlipScreen ( ) : void
GetFrameRate ( ) : int
GetScreenHeight ( ) : int
GetScreenWidth ( ) : int
GetSphereEngine ( ) : ScriptEngine
GetSystemFont ( ) : FontInstance
GetTime ( ) : double
InitWindow ( Styles style ) : bool
IsFullScreen ( ) : bool
ParseSpherePath ( string path, string root ) : string

Sandboxes the game.sgm, allows to peek a level behind.

SetFrameRate ( int fps ) : void
SetFullScreen ( bool value ) : void
SetScaled ( bool v ) : void
SetupTestEnvironment ( ) : void
ShowAbortScreen ( string message ) : void

Приватные методы

Метод Описание
BlendColors ( ColorInstance c1, ColorInstance c2 ) : ColorInstance
CreateByteArray ( int size ) : ByteArrayInstance
CreateByteArrayFromString ( string content ) : ByteArrayInstance
CreateColor ( int r, int g, int b, [ a = 255 ) : ColorInstance
CreateDirectory ( string fullname ) : void
CreateSpriteset ( int width, int height, int i, int d, int f ) : SpritesetInstance
CreateStringFromByteArray ( ByteArrayInstance array ) : string
CreateStringFromCode ( int code ) : string
CreateSurface ( int w, int h, ColorInstance color ) : HWSurfaceInstance
FindIcon ( ) : void
GarbageCollect ( ) : void
GetClippingRectangle ( ) : ObjectInstance
GetDirectoryList ( [ filepath = "" ) : ArrayInstance
GetExtensions ( ) : ArrayInstance
GetFileList ( [ filepath = "" ) : ArrayInstance
GetGameList ( ) : ArrayInstance
GetHash ( HashAlgorithm algorithm, byte content ) : string
GetLocalAddress ( ) : string
GetLocalName ( ) : string
GetSystemArrow ( ) : ImageInstance
GetSystemDownArrow ( ) : ImageInstance
GetSystemUpArrow ( ) : ImageInstance
GetSystemWindowStyle ( ) : WindowStyleInstance
GetVersion ( ) : double
GetVersionString ( ) : string
GrabImage ( int x, int y, int w, int h ) : ImageInstance
GrabSurface ( int x, int y, int w, int h ) : SurfaceInstance
HashByteArray ( ByteArrayInstance array, [ sha = false ) : string
HashFromFile ( string filename, [ sha = false ) : string
InitEngine ( ) : bool
LineIntersects ( ObjectInstance a1, ObjectInstance b1, ObjectInstance a2, ObjectInstance b2 ) : bool
ListGames ( ) : void
ListenOnPort ( int port ) : object
LoadFont ( string filename ) : FontInstance
LoadImage ( string filename ) : ImageInstance
LoadSound ( string filename ) : SoundInstance
LoadSpriteset ( string filename ) : SpritesetInstance
LoadSurface ( string filename ) : HWSurfaceInstance
LoadWindowStyle ( string filename ) : WindowStyleInstance
Main ( string args ) : void
OpenAddress ( string address, int port ) : object
OpenFile ( string filename ) : FileInstance
OpenRawFile ( string filename, [ writeable = false ) : RawFileInstance
Print ( object obj ) : void
RemoveDirectory ( string filepath ) : void
RemoveFile ( string filepath ) : void
Rename ( string file1, string file2 ) : bool
SetClippingRectangle ( int x, int y, int w, int h ) : void
SetGlobalConst ( ScriptEngine engine ) : void

Описание методов

Abort() публичный статический Метод

public static Abort ( string msg ) : void
msg string
Результат void

BlendColors() публичный статический Метод

public static BlendColors ( Color c1, Color c2 ) : ColorInstance
c1 Color
c2 Color
Результат ColorInstance

BlendColorsWeighted() публичный статический Метод

public static BlendColorsWeighted ( Color c1, Color c2, double w ) : ColorInstance
c1 Color
c2 Color
w double
Результат ColorInstance

BlendColorsWeighted() публичный статический Метод

public static BlendColorsWeighted ( ColorInstance c1, ColorInstance c2, double w ) : ColorInstance
c1 ColorInstance
c2 ColorInstance
w double
Результат ColorInstance

CreateObject() публичный статический Метод

public static CreateObject ( ) : ObjectInstance
Результат ObjectInstance

Exit() публичный статический Метод

public static Exit ( ) : void
Результат void

FlipScreen() публичный статический Метод

public static FlipScreen ( ) : void
Результат void

GetFrameRate() публичный статический Метод

public static GetFrameRate ( ) : int
Результат int

GetScreenHeight() публичный статический Метод

public static GetScreenHeight ( ) : int
Результат int

GetScreenWidth() публичный статический Метод

public static GetScreenWidth ( ) : int
Результат int

GetSphereEngine() публичный статический Метод

public static GetSphereEngine ( ) : ScriptEngine
Результат ScriptEngine

GetSystemFont() публичный статический Метод

public static GetSystemFont ( ) : FontInstance
Результат FontInstance

GetTime() публичный статический Метод

public static GetTime ( ) : double
Результат double

InitWindow() публичный статический Метод

public static InitWindow ( Styles style ) : bool
style Styles
Результат bool

IsFullScreen() публичный статический Метод

public static IsFullScreen ( ) : bool
Результат bool

ParseSpherePath() публичный статический Метод

Sandboxes the game.sgm, allows to peek a level behind.
public static ParseSpherePath ( string path, string root ) : string
path string Path.
root string Root.
Результат string

SetFrameRate() публичный статический Метод

public static SetFrameRate ( int fps ) : void
fps int
Результат void

SetFullScreen() публичный статический Метод

public static SetFullScreen ( bool value ) : void
value bool
Результат void

SetScaled() публичный статический Метод

public static SetScaled ( bool v ) : void
v bool
Результат void

SetupTestEnvironment() публичный статический Метод

public static SetupTestEnvironment ( ) : void
Результат void

ShowAbortScreen() публичный статический Метод

public static ShowAbortScreen ( string message ) : void
message string
Результат void

Описание свойств

Batch публичное статическое свойство

public static SpriteBatch Batch
Результат SpriteBatch

_clipper публичное статическое свойство

public static IntRect _clipper
Результат IntRect

_engine публичное статическое свойство

public static ScriptEngine _engine
Результат ScriptEngine

_window публичное статическое свойство

public static RenderWindow _window
Результат RenderWindow