forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPartyRoomManager.cs
More file actions
36 lines (31 loc) · 1.01 KB
/
Copy pathPartyRoomManager.cs
File metadata and controls
36 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System.Collections.Generic;
using L2dotNET.Models.Player;
namespace L2dotNET.Managers
{
public class PartyRoomManager
{
private static readonly PartyRoomManager M = new PartyRoomManager();
public static PartyRoomManager GetInstance()
{
return M;
}
public SortedList<int, L2PartyRoom> Rooms = new SortedList<int, L2PartyRoom>();
public static int IdFactory = 20;
public L2PartyRoom NewRoom(L2Player player, int roomId, int maxMembers, int minLevel, int maxLevel, int lootDist, string roomTitle)
{
L2PartyRoom room = new L2PartyRoom
{
RoomId = roomId,
MaxMembers = maxMembers,
MinLevel = minLevel,
MaxLevel = maxLevel,
LootDist = lootDist,
Title = roomTitle,
LeaderId = player.ObjectId
};
IdFactory++;
Rooms.Add(roomId, room);
return room;
}
}
}