public static void WriteMBTeamReferenceToPacket( MBTeam value, CompressionInfo.Integer compressionInfo) { MBAPI.IMBNetwork.WriteIntToPacket(value.Index, ref compressionInfo); DebugNetworkEventStatistics.AddDataToStatistic(compressionInfo.GetNumBits()); }
public static void WriteActionSetReferenceToPacket( MBActionSet actionSet, CompressionInfo.Integer compressionInfo) { MBAPI.IMBNetwork.WriteIntToPacket(actionSet.Index, ref compressionInfo); DebugNetworkEventStatistics.AddDataToStatistic(compressionInfo.GetNumBits()); }
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()); }
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()); }