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)); }
private void Client_OnToolbarItemClear(Connection arg1, byte arg2) { TaskProcessor.AddTask(new Task(Task.TaskType.ToolbarItemClear, arg1, arg2)); }
public void RemoveCharacter(CharacterInfo ci) { TaskProcessor.AddTask(new Task(Task.TaskType.RemoveCharacter, null, ci)); }
private void Client_OnUseItem(Connection arg1, uint arg2) { TaskProcessor.AddTask(new Task(Task.TaskType.UseItem, arg1, arg2)); }
private void Client_OnToolbar(object sender, ToolbarItemSetRequest e) { TaskProcessor.AddTask(new Task(Task.TaskType.ToolbarItemSet, (Connection)sender, e)); }
private void Client_OnUnEquipItem(object sender, EquipItemRequest e) { TaskProcessor.AddTask(new Task(Task.TaskType.UnEquipItem, (Connection)sender, e)); }
private void Client_OnAttack(object sender, AttackTargetRequest e) { TaskProcessor.AddTask(new Task(Task.TaskType.DoAttack, (Connection)sender, e)); }
private void Client_OnNPCDialogNextButton(object sender, EventArgs e) { TaskProcessor.AddTask(new Task(Task.TaskType.NPCDialogNextButton, (Connection)sender, null)); }
private void Client_OnGMCommand(object sender, GMCommandPacket e) { TaskProcessor.AddTask(new Task(Task.TaskType.GMCommand_Process, (Connection)sender, e)); }
private void Client_OnPlayerEnterMap(object sender, EventArgs e) { TaskProcessor.AddTask(new Task(Task.TaskType.PlayerEnterMap, (Connection)sender)); }
private void Client_OnUpdatePosition(object sender, CharacterPositionClass e) { TaskProcessor.AddTask(new Task(Task.TaskType.PlayerUpdatePosition, (Connection)sender, e)); }
private void Client_OnLoadSelectedCharacter(object sender, EventArgs e) { TaskProcessor.AddTask(new Task(Task.TaskType.SelectedCharacter_Fetch, (Connection)sender, e)); }
private void Client_OnSelectCharacter(object sender, CharacterNameClass e) { TaskProcessor.AddTask(new Task(Task.TaskType.SelectCharacter, (Connection)sender, e)); }
private void Client_OnCharacterCreate(object sender, CreateCharacterPacket e) { TaskProcessor.AddTask(new Task(Task.TaskType.CreateCharacter, (Connection)sender, e)); }
private void Client_OnCharacterListRequest(object sender, CharacterListRequestPacket e) { TaskProcessor.AddTask(new Task(Task.TaskType.CharacterList_Fetch, (Connection)sender, e)); }
private void Client_OnLoginRequest(object sender, LoginRequestPacket e) { TaskProcessor.AddTask(new Task(Task.TaskType.LoginRequest_Fetch, (Connection)sender, e)); }