示例#1
0
 public PathData(tga.pathroad s)
 {
     this.Road      = MapGrid.GetMG(s.road.layer, s.road.unit);
     this.state     = (RoleState)s.state;
     this.deltaTime = s.deltaTime * 0.001f;
     this.dir       = (WalkDir)s.dir;
     this.gs        = (GridSpace)s.gs;
 }
示例#2
0
 public tga.pathroad toPathRoad()
 {
     tga.pathroad tp = new tga.pathroad();
     tp.deltaTime  = (int)(deltaTime * 1000);
     tp.dir        = (int)dir;
     tp.gs         = (int)gs;
     tp.road       = new tga.GridPos();
     tp.road.layer = Road.GridPos.Layer;
     tp.road.unit  = Road.GridPos.Unit;
     tp.state      = (int)state;
     return(tp);
 }