public override void Process(KnownTechEntryAdd packet, Player player)
        {
            switch (packet.Category)
            {
            case KnownTechEntryAdd.EntryCategory.KNOWN:
                pdaStateData.AddKnownTechType(packet.TechType);
                break;

            case KnownTechEntryAdd.EntryCategory.ANALYZED:
                pdaStateData.AddAnalyzedTechType(packet.TechType);
                break;

            default:
                string categoryName = Enum.GetName(typeof(KnownTechEntryAdd.EntryCategory), packet.Category);
                Log.Error("Received an unknown category type for KnownTechEntryAdd packet: " + categoryName);
                break;
            }

            playerManager.SendPacketToOtherPlayers(packet, player);
        }
예제 #2
0
 public override void Process(KnownTechEntryAdd packet, Player player)
 {
     pdaStateData.AddKnownTechType(packet.TechType);
     playerManager.SendPacketToOtherPlayers(packet, player);
 }