public static void SendAddSocialMember(this TransportHandler transportHandler, long?connectionId, ushort msgType, int id, string characterId, string characterName, int dataId, short level) { var netMessage = new UpdateSocialMemberMessage(); netMessage.type = UpdateSocialMemberMessage.UpdateType.Add; netMessage.id = id; netMessage.CharacterId = characterId; netMessage.data = new SocialCharacterData() { id = characterId, characterName = characterName, dataId = dataId, level = level, }; Send(transportHandler, connectionId, msgType, netMessage); }
public static void SendUpdateSocialMember(this TransportHandler transportHandler, long?connectionId, ushort msgType, int id, bool isOnline, string characterId, string characterName, int dataId, short level, int currentHp, int maxHp, int currentMp, int maxMp) { var netMessage = new UpdateSocialMemberMessage(); netMessage.type = UpdateSocialMemberMessage.UpdateType.Update; netMessage.id = id; netMessage.CharacterId = characterId; netMessage.isOnline = isOnline; netMessage.data = new SocialCharacterData() { id = characterId, characterName = characterName, dataId = dataId, level = level, currentHp = currentHp, maxHp = maxHp, currentMp = currentMp, maxMp = maxMp, }; Send(transportHandler, connectionId, msgType, netMessage); }