public override void SendToLocalGameObject(FFBasePacket package, GameObject go) { FFPacket <EventType> sentPackage = (FFPacket <EventType>)package; FFPacket <EventType> .Decrypt(ref sentPackage.message); switch (package.packetInstructions) { case FFPacketInstructionFlags.MessageBoardGameObjectSend: FFMessageBoard <EventType> .SendToLocal(sentPackage.message, go); break; case FFPacketInstructionFlags.MessageBoardGameObjectSendDown: FFMessageBoard <EventType> .SendToLocalDown(sentPackage.message, go); break; case FFPacketInstructionFlags.MessageBoardGameObjectSendUp: FFMessageBoard <EventType> .SendToLocalUp(sentPackage.message, go); break; case FFPacketInstructionFlags.MessageBoardGameObjectSendToAllConnected: FFMessageBoard <EventType> .SendToLocalToAllConnected(sentPackage.message, go); break; default: break; } }
// Used to unpack messages from the net public override bool SendToLocal(FFBasePacket package) { FFPacket <EventType> sentPackage = (FFPacket <EventType>)package; FFPacket <EventType> .Decrypt(ref sentPackage.message); return(FFMessage <EventType> .SendToLocal(sentPackage.message)); }
public override bool SendToLocalEntry(FFBasePacket package, string entry) { FFPacket <EventType> sentPackage = (FFPacket <EventType>)package; FFPacket <EventType> .Decrypt(ref sentPackage.message); return(FFMessageBoard <EventType> .SendToLocal(sentPackage.message, entry)); }