Example #1
0
 public void WriteToGame(NetInfo.Lane gameLane)
 {
     DTOUtil.CopyAllMatchingFields <Lane>(gameLane, this);
     gameLane.m_laneProps = new NetLaneProps {
         m_props = DTOUtil.CopyArray <NetLaneProps.Prop>(m_props)
     };
 }
Example #2
0
 public void ReadFromGame(NetInfo info)
 {
     DTOUtil.CopyAllMatchingFields <NetInfoDTO>(this, info);
     MetaData   = info.GetMetaData().Clone();
     m_lanes    = DTOUtil.CopyArray <Lane>(info.m_lanes);
     m_segments = DTOUtil.CopyArray <Segment>(info.m_segments);
     m_nodes    = DTOUtil.CopyArray <Node>(info.m_nodes);
 }
Example #3
0
 public void WriteToGame(NetInfo info)
 {
     if (info == null)
     {
         return;
     }
     DTOUtil.CopyAllMatchingFields <NetInfoDTO>(info, this);
     info.m_lanes    = DTOUtil.CopyArray <NetInfo.Lane>(m_lanes);
     info.m_segments = DTOUtil.CopyArray <NetInfo.Segment>(m_segments);
     info.m_nodes    = DTOUtil.CopyArray <NetInfo.Node>(m_nodes);
     info.SetMetedata(MetaData?.Clone());
 }
Example #4
0
 public void ReadFromGame(NetInfo.Lane gameLane)
 {
     DTOUtil.CopyAllMatchingFields <Lane>(this, gameLane);
     this.m_props = DTOUtil.CopyArray <Prop>(gameLane.m_laneProps.m_props);
 }