예제 #1
0
 internal PlayerTV AddOrGetTV(uint ItemId, uint RoomId)
 {
     if (!this.TVExists(ItemId))
     {
         PlayerTV playerTV = new PlayerTV(ItemId, RoomId);
         LoadedTVs.Add(ItemId, playerTV);
         return(playerTV);
     }
     return((PlayerTV)LoadedTVs[ItemId]);
 }
예제 #2
0
		internal PlayerTV AddOrGetTV(uint ItemId, uint RoomId)
		{
			if (!this.TVExists(ItemId))
			{
				PlayerTV playerTV = new PlayerTV(ItemId, RoomId);
				LoadedTVs.Add(ItemId, playerTV);
				return playerTV;
			}
            return (PlayerTV)LoadedTVs[ItemId];
		}