Plasma.pnAuth2Cli_AcctPlayerInfo.Read C# (CSharp) Method

Read() public method

public Read ( Plasma.hsStream s ) : void
s Plasma.hsStream
return void
        public override void Read(hsStream s)
        {
            fTransID = s.ReadUInt();
            fPlayerID = s.ReadUInt();
            fPlayerName = pnHelpers.ReadString(s, 40);
            fModel = pnHelpers.ReadString(s, 64);
            fExplorer = s.ReadUInt();
        }

Usage Example

コード例 #1
0
ファイル: AuthClient.cs プロジェクト: Hoikas/PlasmaDotNet
        private void IPlayerInfo()
        {
            pnAuth2Cli_AcctPlayerInfo notify = new pnAuth2Cli_AcctPlayerInfo();
            notify.Read(fStream);

            // I realize that this message has a TransID
            // However, our current design doesn't play well with sending out
            // Multiple callbacks for one TransID. Therefore, player infos will
            // be a separate event [for now?]
            if (PlayerInfo != null)
                PlayerInfo(notify.fPlayerID, notify.fPlayerName, notify.fModel);
        }
pnAuth2Cli_AcctPlayerInfo