Exemplo n.º 1
0
 public static void WriteMBTeamReferenceToPacket(
     MBTeam value,
     CompressionInfo.Integer compressionInfo)
 {
     MBAPI.IMBNetwork.WriteIntToPacket(value.Index, ref compressionInfo);
     DebugNetworkEventStatistics.AddDataToStatistic(compressionInfo.GetNumBits());
 }
Exemplo n.º 2
0
 public static void WriteActionSetReferenceToPacket(
     MBActionSet actionSet,
     CompressionInfo.Integer compressionInfo)
 {
     MBAPI.IMBNetwork.WriteIntToPacket(actionSet.Index, ref compressionInfo);
     DebugNetworkEventStatistics.AddDataToStatistic(compressionInfo.GetNumBits());
 }
Exemplo n.º 3
0
 public static void WriteBoolToPacket(bool value)
 {
     CompressionInfo.Integer compressionInfo = new CompressionInfo.Integer(0, 1);
     MBAPI.IMBNetwork.WriteIntToPacket(value ? 1 : 0, ref compressionInfo);
     DebugNetworkEventStatistics.AddDataToStatistic(compressionInfo.GetNumBits());
 }
Exemplo n.º 4
0
 public static void WriteAgentReferenceToPacket(Agent value)
 {
     CompressionInfo.Integer agentCompressionInfo = CompressionMission.AgentCompressionInfo;
     MBAPI.IMBNetwork.WriteIntToPacket(value != null ? value.Index : -1, ref agentCompressionInfo);
     DebugNetworkEventStatistics.AddDataToStatistic(agentCompressionInfo.GetNumBits());
 }