Exemple #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]);
 }
Exemple #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];
		}