Start up Visual Studio, and select to create a new project (File, New, Project). I'll be using Visual Studio 2005, but the Express edition should work very similarly. The following tutorial will walk you through creating a plugin with Visual C#. Note that you may need to remove and re-add the reference to AGS.Types after opening the project. Sample code for a plugin is available to download. Within the component's constructor you should do the work to add tree items, menu options, etc. This class should implement the interface. A component represents one area of functionality, so your plugin may well only need a single component. AGS makes certain assumptions about the data, in particular the ID's of items, so don't add or remove things unless you're sure about what you're doing. You have access to various parts of game data, but be very careful if you change anything. The editor will find your class and construct it, passing in the IAGSEditor object that you can use to access editor methods.It must also have a RequiredAGSVersion attribute on the class, set to the minimum version of AGS that the plugin requires. It must have a constructor that takes one argument, an object. You must have one class in your plugin that implements the interface.This will import all the types you need for your plugin. Add a reference to the file from the main AGS folder.Therefore, your plugin's file name must start with "AGS.Plugin.". The AGS Editor scans through its folder when it starts up, for all files AGS.Plugin.*.dll.Then, I'll walk you through creating one with C#. They are not supported by AGS 2, and replace the old COM-based editor plugin API from AGS 2.x which is no longer supported.įirstly, I'll explain very briefly what is required of an AGS plugin, for people who are already familiar with. Any plugins which need to be included with the game at run-time must be written with as plain DLLs using the Plugin API. NET plugins are only supported for enhancing the editor functionality. If you don't own Visual Studio 2005, you can download the free Visual C# Express 2005 instead. NET language including C#, VB.NET, Visual C++. AGS allows external utilities to enhance the Editor's functionality by the use of.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |