C# Класс ManicDigger.ManicDiggerGameWindow

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
ChatFontSize int
ChatLinesMaxToDraw int
ChatScreenExpireTimeSeconds int
DisconnectMessage string
Disconnected bool
ENABLE_DRAW_TEST_CHARACTER bool
ENABLE_MAINMENU bool
ENABLE_TPP_VIEW bool
GameUrl string
clearcolor Color
enable_finiteinventory bool
ff FontFamily
fn Font
fov float
mppassword string
particleEffectBlockBreak ParticleEffectBlockBreak
pfc System.Drawing.Text.PrivateFontCollection
pickcubepos Vector3
playertexturedefaultfilename string
username string

Private Properties

Свойство Тип Описание
BlockPlayerLegs int?
BlockUnderPlayer int?
BoolCommandArgument bool
CheckClippingQE bool
ConnectToInternetGame void
Draw2d void
DrawAim void
DrawBlockInfo void
DrawCharacter void
DrawConnectedPlayersList void
DrawCraftingRecipes void
DrawFpsHistoryGraph void
DrawLinesAroundSelectedCube void
DrawMapLoading void
DrawMaterialSelector void
DrawMouseCursor void
DrawPlayerNames void
DrawPlayers void
DrawScreenshotFlash void
DrawSkySphere void
DrawTypingBuffer void
EscapeMenuActionMain void
EscapeMenuActionOptions void
EscapeMenuMouse void
FppCamera Matrix4
GetMinecraftPasswordFilePath string
GetPlayerTexture int
GuiActionGenerateNewMap void
GuiActionLoadGame void
GuiActionSaveGame void
GuiStateBackToGame void
GuiStateEscapeMenu void
GuiStateSetMapLoading void
HandleMaterialKeys void
InterpolateColor System.Color
InventoryGetSelected int?
IsInLeft bool
IsPowerOfTwo bool
IsTileEmptyForPhysics bool
IsTileEmptyForPhysicsClose bool
MakeTextTexture CachedTexture
MoveSpeedNow float
NextPowerOfTwo uint
OnPick void
OverheadCamera Matrix4
SaveGameExists bool
Set3dProjection void
Set3dProjection void
SetAmbientLight void
SetFog void
ToMapPos Vector3
UpdateMouseViewportControl void
UpdatePicking void
UpdateTitleFps void
VectorAngleGet float
WhiteTexture int
getblockheight float
soundwalkcurrent string[]
xcenter int
ycenter int

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

Метод Описание
AddChatline ( string s ) : void
ClientCommand ( string s ) : void
CraftingMouse ( ) : void
DeleteUnusedCachedTextures ( ) : void
Draw2dBitmapFile ( string filename, float x1, float y1, float width, float height ) : void
Draw2dText ( string text, float x, float y, float fontsize, System.Color color ) : void
Draw2dTexture ( int textureid, float x1, float y1, float width, float height, int inAtlasId ) : void
Draw2dTexture ( int textureid, float x1, float y1, float width, float height, int inAtlasId, System.Color color ) : void
Draw2dTextures ( List todraw, int textureid ) : void
DrawCharacters ( float dt ) : void
DrawChatLines ( bool all ) : void
DrawDisconnected ( string Message ) : void
DrawEscapeMenu ( ) : void
DrawInventory ( ) : void
DrawLineLoop ( Vector3 points ) : void
DrawMainMenu ( ) : void
DrawMap ( ) : void
EscapeMenuAction ( ) : void
FrameTick ( FrameEventArgs e ) : void
GrabScreenshot ( ) : Bitmap
GuiStateCraft ( List recipes, List blocks, Action craftingRecipeSelected ) : void
InventoryMouse ( ) : void
InventorySelectionMove ( Direction4 dir ) : void
Keyboard_KeyDown ( object sender, OpenTK e ) : void
Keyboard_KeyUp ( object sender, OpenTK e ) : void
LoadPassword ( ) : void
LoadTexture ( Bitmap bmp ) : int
LoadTexture ( string filename ) : int
Log ( string p ) : void
MainMenuAction ( ) : void
ManicDiggerGameWindow ( ) : System
ManicDiggerGameWindow_KeyPress ( object sender, OpenTK e ) : void
Mouse_Move ( object sender, OpenTK e ) : void
Mouse_WheelChanged ( object sender, OpenTK e ) : void
OrthoMode ( ) : void
PerspectiveMode ( ) : void
SetTileAndUpdate ( Vector3 pos, int type ) : void
StripColors ( string input ) : string

Strips all ampersand color codes and doubled-up ampersands.

TextSize ( string text, float fontsize ) : SizeF
UpdateAllTiles ( ) : void
UpdateMousePosition ( ) : void
UpdateWalkSound ( double dt ) : void
maploaded ( ) : void
network_MapLoaded ( object sender, MapLoadedEventArgs e ) : void
newnetwork_MapLoadingProgress ( object sender, MapLoadingProgressEventArgs e ) : void

Защищенные методы

Метод Описание
OnClosed ( EventArgs e ) : void
OnFocusedChanged ( EventArgs e ) : void
OnLoad ( EventArgs e ) : void
OnRenderFrame ( FrameEventArgs e ) : void
OnResize ( EventArgs e ) : void
OnUpdateFrame ( FrameEventArgs e ) : void

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

Метод Описание
BlockPlayerLegs ( ) : int?
BlockUnderPlayer ( ) : int?
BoolCommandArgument ( string arguments ) : bool
CheckClippingQE ( Vector3 NewPosition ) : bool
ConnectToInternetGame ( string qusername, string qpass, string qgameurl ) : void
Draw2d ( ) : void
DrawAim ( ) : void
DrawBlockInfo ( ) : void
DrawCharacter ( AnimationState animstate, Vector3 pos, byte heading, byte pitch, bool moves, float dt, int playertexture, AnimationHint animationhint ) : void
DrawConnectedPlayersList ( ) : void
DrawCraftingRecipes ( ) : void
DrawFpsHistoryGraph ( ) : void
DrawLinesAroundSelectedCube ( Vector3 posx ) : void
DrawMapLoading ( ) : void
DrawMaterialSelector ( ) : void
DrawMouseCursor ( ) : void
DrawPlayerNames ( ) : void
DrawPlayers ( float dt ) : void
DrawScreenshotFlash ( ) : void
DrawSkySphere ( ) : void
DrawTypingBuffer ( ) : void
EscapeMenuActionMain ( ) : void
EscapeMenuActionOptions ( ) : void
EscapeMenuMouse ( ) : void
FppCamera ( ) : Matrix4
GetMinecraftPasswordFilePath ( ) : string
GetPlayerTexture ( int playerid ) : int
GuiActionGenerateNewMap ( ) : void
GuiActionLoadGame ( ) : void
GuiActionSaveGame ( ) : void
GuiStateBackToGame ( ) : void
GuiStateEscapeMenu ( ) : void
GuiStateSetMapLoading ( ) : void
HandleMaterialKeys ( OpenTK e ) : void
InterpolateColor ( float progress ) : System.Color
InventoryGetSelected ( ) : int?
IsInLeft ( Vector3 player_yy, Vector3 tile_yy ) : bool
IsPowerOfTwo ( uint x ) : bool
IsTileEmptyForPhysics ( int x, int y, int z ) : bool
IsTileEmptyForPhysicsClose ( int x, int y, int z ) : bool
MakeTextTexture ( Text t ) : CachedTexture
MoveSpeedNow ( ) : float
NextPowerOfTwo ( uint x ) : uint
OnPick ( BlockPosSide pick0 ) : void
OverheadCamera ( ) : Matrix4
SaveGameExists ( ) : bool
Set3dProjection ( ) : void
Set3dProjection ( float zfar ) : void
SetAmbientLight ( Color c ) : void
SetFog ( ) : void
ToMapPos ( Vector3 a ) : Vector3
UpdateMouseViewportControl ( FrameEventArgs e ) : void
UpdatePicking ( ) : void
UpdateTitleFps ( FrameEventArgs e ) : void
VectorAngleGet ( Vector3 q ) : float
WhiteTexture ( ) : int
getblockheight ( int x, int y, int z ) : float
soundwalkcurrent ( ) : string[]
xcenter ( float width ) : int
ycenter ( float height ) : int

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

AddChatline() публичный Метод

public AddChatline ( string s ) : void
s string
Результат void

ClientCommand() публичный Метод

public ClientCommand ( string s ) : void
s string
Результат void

CraftingMouse() публичный Метод

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

DeleteUnusedCachedTextures() публичный Метод

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

Draw2dBitmapFile() публичный Метод

public Draw2dBitmapFile ( string filename, float x1, float y1, float width, float height ) : void
filename string
x1 float
y1 float
width float
height float
Результат void

Draw2dText() публичный Метод

public Draw2dText ( string text, float x, float y, float fontsize, System.Color color ) : void
text string
x float
y float
fontsize float
color System.Color
Результат void

Draw2dTexture() публичный Метод

public Draw2dTexture ( int textureid, float x1, float y1, float width, float height, int inAtlasId ) : void
textureid int
x1 float
y1 float
width float
height float
inAtlasId int
Результат void

Draw2dTexture() публичный Метод

public Draw2dTexture ( int textureid, float x1, float y1, float width, float height, int inAtlasId, System.Color color ) : void
textureid int
x1 float
y1 float
width float
height float
inAtlasId int
color System.Color
Результат void

Draw2dTextures() публичный Метод

public Draw2dTextures ( List todraw, int textureid ) : void
todraw List
textureid int
Результат void

DrawCharacters() публичный Метод

public DrawCharacters ( float dt ) : void
dt float
Результат void

DrawChatLines() публичный Метод

public DrawChatLines ( bool all ) : void
all bool
Результат void

DrawDisconnected() публичный Метод

public DrawDisconnected ( string Message ) : void
Message string
Результат void

DrawEscapeMenu() публичный Метод

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

DrawInventory() публичный Метод

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

DrawLineLoop() публичный Метод

public DrawLineLoop ( Vector3 points ) : void
points Vector3
Результат void

DrawMainMenu() публичный Метод

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

DrawMap() публичный Метод

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

EscapeMenuAction() публичный Метод

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

FrameTick() публичный Метод

public FrameTick ( FrameEventArgs e ) : void
e FrameEventArgs
Результат void

GrabScreenshot() публичный Метод

public GrabScreenshot ( ) : Bitmap
Результат Bitmap

GuiStateCraft() публичный Метод

public GuiStateCraft ( List recipes, List blocks, Action craftingRecipeSelected ) : void
recipes List
blocks List
craftingRecipeSelected Action
Результат void

InventoryMouse() публичный Метод

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

InventorySelectionMove() публичный Метод

public InventorySelectionMove ( Direction4 dir ) : void
dir Direction4
Результат void

Keyboard_KeyDown() публичный Метод

public Keyboard_KeyDown ( object sender, OpenTK e ) : void
sender object
e OpenTK
Результат void

Keyboard_KeyUp() публичный Метод

public Keyboard_KeyUp ( object sender, OpenTK e ) : void
sender object
e OpenTK
Результат void

LoadPassword() публичный Метод

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

LoadTexture() публичный Метод

public LoadTexture ( Bitmap bmp ) : int
bmp Bitmap
Результат int

LoadTexture() публичный Метод

public LoadTexture ( string filename ) : int
filename string
Результат int

Log() публичный Метод

public Log ( string p ) : void
p string
Результат void

MainMenuAction() публичный Метод

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

ManicDiggerGameWindow() публичный Метод

public ManicDiggerGameWindow ( ) : System
Результат System

ManicDiggerGameWindow_KeyPress() публичный Метод

public ManicDiggerGameWindow_KeyPress ( object sender, OpenTK e ) : void
sender object
e OpenTK
Результат void

Mouse_Move() публичный Метод

public Mouse_Move ( object sender, OpenTK e ) : void
sender object
e OpenTK
Результат void

Mouse_WheelChanged() публичный Метод

public Mouse_WheelChanged ( object sender, OpenTK e ) : void
sender object
e OpenTK
Результат void

OnClosed() защищенный Метод

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
Результат void

OnFocusedChanged() защищенный Метод

protected OnFocusedChanged ( EventArgs e ) : void
e System.EventArgs
Результат void

OnLoad() защищенный Метод

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Результат void

OnRenderFrame() защищенный Метод

protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs
Результат void

OnResize() защищенный Метод

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Результат void

OnUpdateFrame() защищенный Метод

protected OnUpdateFrame ( FrameEventArgs e ) : void
e FrameEventArgs
Результат void

OrthoMode() публичный Метод

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

PerspectiveMode() публичный Метод

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

SetTileAndUpdate() публичный Метод

public SetTileAndUpdate ( Vector3 pos, int type ) : void
pos Vector3
type int
Результат void

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

Strips all ampersand color codes and doubled-up ampersands.
public static StripColors ( string input ) : string
input string
Результат string

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

public static TextSize ( string text, float fontsize ) : SizeF
text string
fontsize float
Результат SizeF

UpdateAllTiles() публичный Метод

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

UpdateMousePosition() публичный Метод

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

UpdateWalkSound() публичный Метод

public UpdateWalkSound ( double dt ) : void
dt double
Результат void

maploaded() публичный Метод

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

network_MapLoaded() публичный Метод

public network_MapLoaded ( object sender, MapLoadedEventArgs e ) : void
sender object
e MapLoadedEventArgs
Результат void

newnetwork_MapLoadingProgress() публичный Метод

public newnetwork_MapLoadingProgress ( object sender, MapLoadingProgressEventArgs e ) : void
sender object
e MapLoadingProgressEventArgs
Результат void

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

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

public static int ChatFontSize
Результат int

ChatLinesMaxToDraw публичное свойство

public int ChatLinesMaxToDraw
Результат int

ChatScreenExpireTimeSeconds публичное свойство

public int ChatScreenExpireTimeSeconds
Результат int

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

public static string DisconnectMessage
Результат string

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

public static bool Disconnected
Результат bool

ENABLE_DRAW_TEST_CHARACTER публичное свойство

public bool ENABLE_DRAW_TEST_CHARACTER
Результат bool

ENABLE_MAINMENU публичное свойство

public bool ENABLE_MAINMENU
Результат bool

ENABLE_TPP_VIEW публичное свойство

public bool ENABLE_TPP_VIEW
Результат bool

GameUrl публичное свойство

public string GameUrl
Результат string

clearcolor публичное свойство

public Color clearcolor
Результат Color

enable_finiteinventory публичное свойство

public bool enable_finiteinventory
Результат bool

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

public static FontFamily ff
Результат FontFamily

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

public static Font fn
Результат Font

fov публичное свойство

public float fov
Результат float

mppassword публичное свойство

public string mppassword
Результат string

particleEffectBlockBreak публичное свойство

public ParticleEffectBlockBreak particleEffectBlockBreak
Результат ParticleEffectBlockBreak

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

public static System.Drawing.Text.PrivateFontCollection pfc
Результат System.Drawing.Text.PrivateFontCollection

pickcubepos публичное свойство

public Vector3 pickcubepos
Результат Vector3

playertexturedefaultfilename публичное свойство

public string playertexturedefaultfilename
Результат string

username публичное свойство

public string username
Результат string