source: branches/AlphaChannel/AI Template/Project/Plugin.cs

Last change on this file was 191, checked in by chronos, 5 years ago
  • Added: AI Template directory with manual for development of custom AI from original game.
File size: 437 bytes
Line 
1using System;
2using System.Collections.Generic;
3
4namespace AI
5{
6 public sealed class Plugin
7 {
8 Empire theEmpire;
9
10 public Plugin()
11 {
12 }
13
14 public void Initialize(int nationID, IntPtr serverPtr, IntPtr dataPtr, bool isNewGame)
15 {
16 theEmpire = new Empire(nationID, serverPtr, dataPtr, isNewGame);
17 }
18
19 public void Call(int command, IntPtr dataPtr)
20 {
21 theEmpire.Process(command, dataPtr);
22 }
23 }
24}
Note: See TracBrowser for help on using the repository browser.