Exemplo n.º 1
0
 void SetupWorld()
 {
     _maps             = new Dictionary <ushort, PlayMap>();
     _itemTemplates    = new Dictionary <uint, ItemTemplate>();
     _locations        = new Dictionary <uint, Location>();
     _monsterTemplates = new Dictionary <uint, MonsterTemplate>();
     _lootTables       = new Dictionary <int, LootTable>();
     _levelData        = new Dictionary <uint, LevelData>();
     TaskProcessor.AddTask(new Task(Task.TaskType.LoadPlayMaps_Fetch));
 }
Exemplo n.º 2
0
 private void Client_OnToolbarItemClear(Connection arg1, byte arg2)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.ToolbarItemClear, arg1, arg2));
 }
Exemplo n.º 3
0
 public void RemoveCharacter(CharacterInfo ci)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.RemoveCharacter, null, ci));
 }
Exemplo n.º 4
0
 private void Client_OnUseItem(Connection arg1, uint arg2)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.UseItem, arg1, arg2));
 }
Exemplo n.º 5
0
 private void Client_OnToolbar(object sender, ToolbarItemSetRequest e)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.ToolbarItemSet, (Connection)sender, e));
 }
Exemplo n.º 6
0
 private void Client_OnUnEquipItem(object sender, EquipItemRequest e)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.UnEquipItem, (Connection)sender, e));
 }
Exemplo n.º 7
0
 private void Client_OnAttack(object sender, AttackTargetRequest e)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.DoAttack, (Connection)sender, e));
 }
Exemplo n.º 8
0
 private void Client_OnNPCDialogNextButton(object sender, EventArgs e)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.NPCDialogNextButton, (Connection)sender, null));
 }
Exemplo n.º 9
0
 private void Client_OnGMCommand(object sender, GMCommandPacket e)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.GMCommand_Process, (Connection)sender, e));
 }
Exemplo n.º 10
0
 private void Client_OnPlayerEnterMap(object sender, EventArgs e)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.PlayerEnterMap, (Connection)sender));
 }
Exemplo n.º 11
0
 private void Client_OnUpdatePosition(object sender, CharacterPositionClass e)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.PlayerUpdatePosition, (Connection)sender, e));
 }
Exemplo n.º 12
0
 private void Client_OnLoadSelectedCharacter(object sender, EventArgs e)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.SelectedCharacter_Fetch, (Connection)sender, e));
 }
Exemplo n.º 13
0
 private void Client_OnSelectCharacter(object sender, CharacterNameClass e)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.SelectCharacter, (Connection)sender, e));
 }
Exemplo n.º 14
0
 private void Client_OnCharacterCreate(object sender, CreateCharacterPacket e)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.CreateCharacter, (Connection)sender, e));
 }
Exemplo n.º 15
0
 private void Client_OnCharacterListRequest(object sender, CharacterListRequestPacket e)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.CharacterList_Fetch, (Connection)sender, e));
 }
Exemplo n.º 16
0
 private void Client_OnLoginRequest(object sender, LoginRequestPacket e)
 {
     TaskProcessor.AddTask(new Task(Task.TaskType.LoginRequest_Fetch, (Connection)sender, e));
 }