示例#1
0
        public AutomatedGame(string hostname, int port, string username, string password, int realmId, int character)
        {
            this.RealmID     = realmId;
            this.Character   = character;
            scheduledActions = new ScheduledActions();
            World            = new GameWorld();

            this.Hostname = hostname;
            this.Port     = port;
            this.Username = username;
            this.Password = password;

            socket = new AuthSocket(this, Hostname, Port, Username, Password);
            socket.InitHandlers();
        }
示例#2
0
        public AutomatedGame(string hostname, int port, string username, string password, int realmId, int character)
        {
            this.RealmID        = realmId;
            this.Character      = character;
            scheduledActions    = new ScheduledActions();
            updateObjectHandler = new UpdateObjectHandler(this);
            Triggers            = new IteratedList <Trigger>();
            World  = new GameWorld();
            Player = new Player();
            Player.OnFieldUpdated += OnFieldUpdate;
            Objects = new Dictionary <ulong, WorldObject>();
            CompletedAchievements = new HashSet <uint>();
            AchievementCriterias  = new Dictionary <uint, ulong>();

            this.Hostname = hostname;
            this.Port     = port;
            this.Username = username;
            this.Password = password;

            socket = new AuthSocket(this, Hostname, Port, Username, Password);
            socket.InitHandlers();
        }