C# 클래스 AGS.Editor.NativeProxy

상속: IDisposable
파일 보기 프로젝트 열기: adventuregamestudio/ags 1 사용 예제들

공개 메소드들

메소드 설명
ChangeSpriteNumber ( Sprite sprite, int newNumber ) : void
ClearUndoBuffer ( ) : void
CompileScript ( Script script, string preProcessedData, Game game, bool isRoomScript ) : void
CopyWalkableAreaMaskToRegions ( Room room ) : void
CreateBuffer ( int width, int height ) : void
CreateDataFile ( string fileList, int splitSize, string baseFileName, bool isGameEXE ) : void
CreateDebugMiniEXE ( string fileList, string exeFileName ) : void
CreateSpriteFromBitmap ( Bitmap bmp, SpriteImportMethod transparency, bool remapColours, bool useRoomBackgroundColours, bool alphaChannel ) : Sprite
CreateTemplateFile ( string templateFileName, string fileList ) : void
CreateUndoBuffer ( Room room, RoomAreaMaskType mask ) : void
CreateVOXFile ( string fileName, string fileList ) : void
CropSpriteEdges ( IList sprites, bool symettric ) : bool
DeleteBackground ( Room room, int backgroundNumber ) : void
DeleteSprite ( Sprite sprite ) : void
Dispose ( ) : void

Obsolete: Use Utilities.IsShiftPressed instead

Obsolete: Use Utilities.IsControlPressed instead

DoesSpriteExist ( int spriteNumber ) : bool
DoesUndoBufferExist ( ) : bool
DrawBlockOfColour ( IntPtr hdc, int x, int y, int width, int height, int colourNum ) : void
DrawFillOntoMask ( Room room, RoomAreaMaskType mask, int x1, int y1, int color ) : void
DrawFilledRectOntoMask ( Room room, RoomAreaMaskType mask, int x1, int y1, int x2, int y2, int color ) : void
DrawFont ( IntPtr hdc, int x, int y, int fontNum ) : void
DrawGUI ( IntPtr hdc, int x, int y, AGS.Types.GUI gui, int scaleFactor, int selectedControl ) : void
DrawLineOntoMask ( Room room, RoomAreaMaskType mask, int x1, int y1, int x2, int y2, int color ) : void
DrawRoomBackground ( IntPtr hDC, Room room, int x, int y, int backgroundNumber, float scaleFactor, RoomAreaMaskType maskType, int selectedArea, int maskTransparency ) : void
DrawSprite ( IntPtr hdc, int x, int y, int spriteNum ) : void
DrawSprite ( IntPtr hdc, int x, int y, int spriteNum, bool flipImage ) : void
DrawSprite ( IntPtr hdc, int x, int y, int width, int height, int spriteNum ) : void
DrawSpriteToBuffer ( int spriteNum, int x, int y, int scaleFactor ) : void
DrawViewLoop ( IntPtr hdc, AGS.Types.ViewLoop loop, int x, int y, int sizeInPixels, int selectedFrame ) : void
ExtractRoomTemplateFiles ( string templateFileName, int newRoomNumber ) : void
ExtractTemplateFiles ( string templateFileName ) : void
GameSettingsChanged ( Game game ) : void
GetActualSpriteHeight ( int spriteSlot ) : int
GetActualSpriteWidth ( int spriteSlot ) : int
GetAreaMaskPixel ( Room room, RoomAreaMaskType mask, int x, int y ) : int
GetBitmapForBackground ( Room room, int backgroundNumber ) : Bitmap
GetBitmapForSprite ( int spriteSlot ) : Bitmap
GetBitmapForSprite ( int spriteSlot, int width, int height ) : Bitmap
GetNativeConstant ( string name ) : object

Allows the Editor to reuse constants from the native code. If a constant required by the Editor is not also required by the Engine, then it should instead by moved into AGS.Types (AGS.Native references the AGS.Types assembly). Note that this method returns only System::Int32 and System::String objects -- it is up to the user to determine if the value should be used as a smaller integral type (additional casting may be required to cast to a non-int integral type).

GetRelativeSpriteHeight ( int spriteSlot ) : int
GetRelativeSpriteWidth ( int spriteSlot ) : int
GetSpriteResolutionMultiplier ( int spriteSlot ) : int

Returns the multiplier necessary to display this sprite at the "standard" size. (ie. 1 if 640x400 sprite, 2 if 320x200)

ImportAreaMask ( Room room, RoomAreaMaskType mask, Bitmap bmp ) : void
ImportBackground ( Room room, int backgroundNumber, Bitmap bmp, bool useExactPalette, bool sharePalette ) : void
ImportOldGame ( string fileName ) : Game
ImportSCIFont ( string fileName, int fontSlot ) : void
LoadNewSpriteFile ( ) : void
LoadRoom ( AGS.Types.UnloadedRoom roomToLoad ) : Room
LoadRoomScript ( string roomFileName ) : string
LoadRoomTemplateFile ( string fileName ) : AGS.Types.RoomTemplate
LoadSpriteDimensions ( ) : Sprite>.Dictionary
LoadTemplateFile ( string fileName ) : AGS.Types.GameTemplate
NewGameLoaded ( Game game ) : void
PaletteColoursChanged ( Game game ) : void
ReloadTTFFont ( int fontSlot ) : void
RenderBufferToHDC ( IntPtr hDC ) : void
ReplaceSpriteWithBitmap ( Sprite spr, Bitmap bmp, SpriteImportMethod transparency, bool remapColours, bool useRoomBackgroundColours, bool alphaChannel ) : void
RestoreFromUndoBuffer ( Room room, RoomAreaMaskType mask ) : void
SaveGame ( Game game ) : void
SaveRoom ( Room roomToSave ) : void
SpriteResolutionsChanged ( Sprite sprites ) : void
TransformStringToBytes ( string text ) : byte[]
UpdateFileIcon ( string fileToUpdate, string newIconToUse ) : void
UpdateFileVersionInfo ( string fileToUpdate, string authorName, string gameName ) : void
UpdateGameExplorerThumbnail ( string fileToUpdate, byte newData ) : void
UpdateGameExplorerXML ( string fileToUpdate, byte newData ) : void

비공개 메소드들

메소드 설명
FreeLibrary ( IntPtr hModule ) : bool
GetAsyncKeyState ( int keyCode ) : short
GetPrivateProfileString ( string section, string key, string def, System retVal, int size, string filePath ) : int
GetProcAddress ( IntPtr hModule, string procedureName ) : IntPtr
LoadLibrary ( string dllToLoad ) : IntPtr
NativeProxy ( ) : System
SetForegroundWindow ( IntPtr hWnd ) : bool
WritePrivateProfileString ( string section, string key, string val, string filePath ) : long

메소드 상세

ChangeSpriteNumber() 공개 메소드

public ChangeSpriteNumber ( Sprite sprite, int newNumber ) : void
sprite Sprite
newNumber int
리턴 void

ClearUndoBuffer() 공개 메소드

public ClearUndoBuffer ( ) : void
리턴 void

CompileScript() 공개 메소드

public CompileScript ( Script script, string preProcessedData, Game game, bool isRoomScript ) : void
script Script
preProcessedData string
game AGS.Types.Game
isRoomScript bool
리턴 void

CopyWalkableAreaMaskToRegions() 공개 메소드

public CopyWalkableAreaMaskToRegions ( Room room ) : void
room AGS.Types.Room
리턴 void

CreateBuffer() 공개 메소드

public CreateBuffer ( int width, int height ) : void
width int
height int
리턴 void

CreateDataFile() 공개 메소드

public CreateDataFile ( string fileList, int splitSize, string baseFileName, bool isGameEXE ) : void
fileList string
splitSize int
baseFileName string
isGameEXE bool
리턴 void

CreateDebugMiniEXE() 공개 메소드

public CreateDebugMiniEXE ( string fileList, string exeFileName ) : void
fileList string
exeFileName string
리턴 void

CreateSpriteFromBitmap() 공개 메소드

public CreateSpriteFromBitmap ( Bitmap bmp, SpriteImportMethod transparency, bool remapColours, bool useRoomBackgroundColours, bool alphaChannel ) : Sprite
bmp System.Drawing.Bitmap
transparency SpriteImportMethod
remapColours bool
useRoomBackgroundColours bool
alphaChannel bool
리턴 Sprite

CreateTemplateFile() 공개 메소드

public CreateTemplateFile ( string templateFileName, string fileList ) : void
templateFileName string
fileList string
리턴 void

CreateUndoBuffer() 공개 메소드

public CreateUndoBuffer ( Room room, RoomAreaMaskType mask ) : void
room AGS.Types.Room
mask RoomAreaMaskType
리턴 void

CreateVOXFile() 공개 메소드

public CreateVOXFile ( string fileName, string fileList ) : void
fileName string
fileList string
리턴 void

CropSpriteEdges() 공개 메소드

public CropSpriteEdges ( IList sprites, bool symettric ) : bool
sprites IList
symettric bool
리턴 bool

DeleteBackground() 공개 메소드

public DeleteBackground ( Room room, int backgroundNumber ) : void
room AGS.Types.Room
backgroundNumber int
리턴 void

DeleteSprite() 공개 메소드

public DeleteSprite ( Sprite sprite ) : void
sprite Sprite
리턴 void

Dispose() 공개 메소드

Obsolete: Use Utilities.IsShiftPressed instead Obsolete: Use Utilities.IsControlPressed instead
public Dispose ( ) : void
리턴 void

DoesSpriteExist() 공개 메소드

public DoesSpriteExist ( int spriteNumber ) : bool
spriteNumber int
리턴 bool

DoesUndoBufferExist() 공개 메소드

public DoesUndoBufferExist ( ) : bool
리턴 bool

DrawBlockOfColour() 공개 메소드

public DrawBlockOfColour ( IntPtr hdc, int x, int y, int width, int height, int colourNum ) : void
hdc System.IntPtr
x int
y int
width int
height int
colourNum int
리턴 void

DrawFillOntoMask() 공개 메소드

public DrawFillOntoMask ( Room room, RoomAreaMaskType mask, int x1, int y1, int color ) : void
room AGS.Types.Room
mask RoomAreaMaskType
x1 int
y1 int
color int
리턴 void

DrawFilledRectOntoMask() 공개 메소드

public DrawFilledRectOntoMask ( Room room, RoomAreaMaskType mask, int x1, int y1, int x2, int y2, int color ) : void
room AGS.Types.Room
mask RoomAreaMaskType
x1 int
y1 int
x2 int
y2 int
color int
리턴 void

DrawFont() 공개 메소드

public DrawFont ( IntPtr hdc, int x, int y, int fontNum ) : void
hdc System.IntPtr
x int
y int
fontNum int
리턴 void

DrawGUI() 공개 메소드

public DrawGUI ( IntPtr hdc, int x, int y, AGS.Types.GUI gui, int scaleFactor, int selectedControl ) : void
hdc System.IntPtr
x int
y int
gui AGS.Types.GUI
scaleFactor int
selectedControl int
리턴 void

DrawLineOntoMask() 공개 메소드

public DrawLineOntoMask ( Room room, RoomAreaMaskType mask, int x1, int y1, int x2, int y2, int color ) : void
room AGS.Types.Room
mask RoomAreaMaskType
x1 int
y1 int
x2 int
y2 int
color int
리턴 void

DrawRoomBackground() 공개 메소드

public DrawRoomBackground ( IntPtr hDC, Room room, int x, int y, int backgroundNumber, float scaleFactor, RoomAreaMaskType maskType, int selectedArea, int maskTransparency ) : void
hDC System.IntPtr
room AGS.Types.Room
x int
y int
backgroundNumber int
scaleFactor float
maskType RoomAreaMaskType
selectedArea int
maskTransparency int
리턴 void

DrawSprite() 공개 메소드

public DrawSprite ( IntPtr hdc, int x, int y, int spriteNum ) : void
hdc System.IntPtr
x int
y int
spriteNum int
리턴 void

DrawSprite() 공개 메소드

public DrawSprite ( IntPtr hdc, int x, int y, int spriteNum, bool flipImage ) : void
hdc System.IntPtr
x int
y int
spriteNum int
flipImage bool
리턴 void

DrawSprite() 공개 메소드

public DrawSprite ( IntPtr hdc, int x, int y, int width, int height, int spriteNum ) : void
hdc System.IntPtr
x int
y int
width int
height int
spriteNum int
리턴 void

DrawSpriteToBuffer() 공개 메소드

public DrawSpriteToBuffer ( int spriteNum, int x, int y, int scaleFactor ) : void
spriteNum int
x int
y int
scaleFactor int
리턴 void

DrawViewLoop() 공개 메소드

public DrawViewLoop ( IntPtr hdc, AGS.Types.ViewLoop loop, int x, int y, int sizeInPixels, int selectedFrame ) : void
hdc System.IntPtr
loop AGS.Types.ViewLoop
x int
y int
sizeInPixels int
selectedFrame int
리턴 void

ExtractRoomTemplateFiles() 공개 메소드

public ExtractRoomTemplateFiles ( string templateFileName, int newRoomNumber ) : void
templateFileName string
newRoomNumber int
리턴 void

ExtractTemplateFiles() 공개 메소드

public ExtractTemplateFiles ( string templateFileName ) : void
templateFileName string
리턴 void

GameSettingsChanged() 공개 메소드

public GameSettingsChanged ( Game game ) : void
game AGS.Types.Game
리턴 void

GetActualSpriteHeight() 공개 메소드

public GetActualSpriteHeight ( int spriteSlot ) : int
spriteSlot int
리턴 int

GetActualSpriteWidth() 공개 메소드

public GetActualSpriteWidth ( int spriteSlot ) : int
spriteSlot int
리턴 int

GetAreaMaskPixel() 공개 메소드

public GetAreaMaskPixel ( Room room, RoomAreaMaskType mask, int x, int y ) : int
room AGS.Types.Room
mask RoomAreaMaskType
x int
y int
리턴 int

GetBitmapForBackground() 공개 메소드

public GetBitmapForBackground ( Room room, int backgroundNumber ) : Bitmap
room AGS.Types.Room
backgroundNumber int
리턴 System.Drawing.Bitmap

GetBitmapForSprite() 공개 메소드

public GetBitmapForSprite ( int spriteSlot ) : Bitmap
spriteSlot int
리턴 System.Drawing.Bitmap

GetBitmapForSprite() 공개 메소드

public GetBitmapForSprite ( int spriteSlot, int width, int height ) : Bitmap
spriteSlot int
width int
height int
리턴 System.Drawing.Bitmap

GetNativeConstant() 공개 메소드

Allows the Editor to reuse constants from the native code. If a constant required by the Editor is not also required by the Engine, then it should instead by moved into AGS.Types (AGS.Native references the AGS.Types assembly). Note that this method returns only System::Int32 and System::String objects -- it is up to the user to determine if the value should be used as a smaller integral type (additional casting may be required to cast to a non-int integral type).
public GetNativeConstant ( string name ) : object
name string
리턴 object

GetRelativeSpriteHeight() 공개 메소드

public GetRelativeSpriteHeight ( int spriteSlot ) : int
spriteSlot int
리턴 int

GetRelativeSpriteWidth() 공개 메소드

public GetRelativeSpriteWidth ( int spriteSlot ) : int
spriteSlot int
리턴 int

GetSpriteResolutionMultiplier() 공개 메소드

Returns the multiplier necessary to display this sprite at the "standard" size. (ie. 1 if 640x400 sprite, 2 if 320x200)
public GetSpriteResolutionMultiplier ( int spriteSlot ) : int
spriteSlot int
리턴 int

ImportAreaMask() 공개 메소드

public ImportAreaMask ( Room room, RoomAreaMaskType mask, Bitmap bmp ) : void
room AGS.Types.Room
mask RoomAreaMaskType
bmp System.Drawing.Bitmap
리턴 void

ImportBackground() 공개 메소드

public ImportBackground ( Room room, int backgroundNumber, Bitmap bmp, bool useExactPalette, bool sharePalette ) : void
room AGS.Types.Room
backgroundNumber int
bmp System.Drawing.Bitmap
useExactPalette bool
sharePalette bool
리턴 void

ImportOldGame() 공개 메소드

public ImportOldGame ( string fileName ) : Game
fileName string
리턴 AGS.Types.Game

ImportSCIFont() 공개 메소드

public ImportSCIFont ( string fileName, int fontSlot ) : void
fileName string
fontSlot int
리턴 void

LoadNewSpriteFile() 공개 메소드

public LoadNewSpriteFile ( ) : void
리턴 void

LoadRoom() 공개 메소드

public LoadRoom ( AGS.Types.UnloadedRoom roomToLoad ) : Room
roomToLoad AGS.Types.UnloadedRoom
리턴 AGS.Types.Room

LoadRoomScript() 공개 메소드

public LoadRoomScript ( string roomFileName ) : string
roomFileName string
리턴 string

LoadRoomTemplateFile() 공개 메소드

public LoadRoomTemplateFile ( string fileName ) : AGS.Types.RoomTemplate
fileName string
리턴 AGS.Types.RoomTemplate

LoadSpriteDimensions() 공개 메소드

public LoadSpriteDimensions ( ) : Sprite>.Dictionary
리턴 Sprite>.Dictionary

LoadTemplateFile() 공개 메소드

public LoadTemplateFile ( string fileName ) : AGS.Types.GameTemplate
fileName string
리턴 AGS.Types.GameTemplate

NewGameLoaded() 공개 메소드

public NewGameLoaded ( Game game ) : void
game AGS.Types.Game
리턴 void

PaletteColoursChanged() 공개 메소드

public PaletteColoursChanged ( Game game ) : void
game AGS.Types.Game
리턴 void

ReloadTTFFont() 공개 메소드

public ReloadTTFFont ( int fontSlot ) : void
fontSlot int
리턴 void

RenderBufferToHDC() 공개 메소드

public RenderBufferToHDC ( IntPtr hDC ) : void
hDC System.IntPtr
리턴 void

ReplaceSpriteWithBitmap() 공개 메소드

public ReplaceSpriteWithBitmap ( Sprite spr, Bitmap bmp, SpriteImportMethod transparency, bool remapColours, bool useRoomBackgroundColours, bool alphaChannel ) : void
spr Sprite
bmp System.Drawing.Bitmap
transparency SpriteImportMethod
remapColours bool
useRoomBackgroundColours bool
alphaChannel bool
리턴 void

RestoreFromUndoBuffer() 공개 메소드

public RestoreFromUndoBuffer ( Room room, RoomAreaMaskType mask ) : void
room AGS.Types.Room
mask RoomAreaMaskType
리턴 void

SaveGame() 공개 메소드

public SaveGame ( Game game ) : void
game AGS.Types.Game
리턴 void

SaveRoom() 공개 메소드

public SaveRoom ( Room roomToSave ) : void
roomToSave AGS.Types.Room
리턴 void

SpriteResolutionsChanged() 공개 메소드

public SpriteResolutionsChanged ( Sprite sprites ) : void
sprites Sprite
리턴 void

TransformStringToBytes() 공개 메소드

public TransformStringToBytes ( string text ) : byte[]
text string
리턴 byte[]

UpdateFileIcon() 공개 메소드

public UpdateFileIcon ( string fileToUpdate, string newIconToUse ) : void
fileToUpdate string
newIconToUse string
리턴 void

UpdateFileVersionInfo() 공개 메소드

public UpdateFileVersionInfo ( string fileToUpdate, string authorName, string gameName ) : void
fileToUpdate string
authorName string
gameName string
리턴 void

UpdateGameExplorerThumbnail() 공개 메소드

public UpdateGameExplorerThumbnail ( string fileToUpdate, byte newData ) : void
fileToUpdate string
newData byte
리턴 void

UpdateGameExplorerXML() 공개 메소드

public UpdateGameExplorerXML ( string fileToUpdate, byte newData ) : void
fileToUpdate string
newData byte
리턴 void