public AIHintInfo GetAiHintInfo() { AIHintInfo info = new AIHintInfo(); info.Id = this.Id; info.Position = new PositionInfo(this.Coordinate.LatitudeDeg, this.Coordinate.LongitudeDeg); info.AIHintType = this.AIHintType; info.DirectionDeg = this.DirectionDeg; info.Direction = this.Direction; info.GameTime = new NWDateTime(this.GameTime); info.RadiusM = this.RadiusM; info.Strength = this.Strength; info.OwnerId = this.OwnerId; return(info); }
public AIHint(AIHintInfo info) : this() { this.Id = info.Id; this.AIHintType = info.AIHintType; this.DirectionDeg = info.DirectionDeg; if (info.GameTime != null) { this.GameTime = info.GameTime.GetDateTime(); } this.OwnerId = info.OwnerId; if (info.Position != null) { this.Coordinate = new Coordinate(info.Position.Latitude, info.Position.Longitude); } this.RadiusM = info.RadiusM; this.Strength = info.Strength; }