|
Post by bulldogg on Jan 2, 2009 15:14:23 GMT
how can i get playername in the charload notification? it doesnt exist currently, would it be possible for me to edit the library to add it?
BD
|
|
|
Post by Eagle on Jan 3, 2009 19:55:00 GMT
It does exist, but you'll have to use the SaveGameFullPath property to fetch a SaveGame instance using the GetSaveGame method of the Factory class in the EagleWare.Libraries.FreelancerTrivia.SaveGames namespace. The SaveGame instance returned has a Name property you can inspect
|
|
|
Post by bulldogg on Jan 4, 2009 9:52:57 GMT
ah right ok, thanks eagle
|
|
|
Post by Eagle on Jan 4, 2009 12:38:11 GMT
nps ;D
|
|
|
Post by bulldogg on Mar 14, 2009 21:45:31 GMT
could you please show how to use the GetSaveGame Method because im having trouble
|
|
|
Post by Eagle on Mar 15, 2009 9:07:46 GMT
Sure, here's how:
using SG=EagleWare.Libraries.FreelancerTrivia.SaveGames;
public class NotificationHandler: Listener { private SaveGames.Factory _factory;
public NotificationHandler() { _factory = new SG.Factory(); }
public override void CharacterLoad(CharacterLoad notification) { SG.SaveGame saveGame = _factory.GetSaveGame(notification.SaveGameFullPath); _log.Info( "CharacterLoad notification received: IPEndPoint={0}, SaveGame={1}, Name={2}", notification.Address, notification.SaveGameFullPath, saveGame.Name ); } }
|
|
|
Post by bulldogg on Mar 15, 2009 17:19:57 GMT
oh thanks eagle
|
|
|
Post by Eagle on Mar 15, 2009 18:09:03 GMT
nps ;D
|
|