//send the image and type data of a mobile object private void TrackedObjectInitRequest(int connectionID, int recHostID, Net_TrackedObjectInitRequest msg) { //get type //ship DB_Ship ship = mdb.FetchShipByName(msg.locationName); if (ship != null) { //generate response Net_OnTrackedObjectInitRequest responseMsg = new Net_OnTrackedObjectInitRequest(); responseMsg.locationName = msg.locationName; responseMsg.locationData = new byte[] { LOCATION_TYPE.SHIP, ship.frame, ship.color1, ship.color2, ship.color3 }; //send response SendClient(connectionID, recHostID, responseMsg); return; } //asteroid //TODO //other //TODO }