예제 #1
0
            public static GPSMarker Create(IMyEntity AttachTo, string Name, string Description, Color MarkerColor, long PlayerID)
            {
                if (AttachTo == null)
                {
                    return(null);
                }
                GPSMarker Marker = new GPSMarker();

                Marker.Name          = Name;
                Marker.Description   = Description;
                Marker.GPSColor      = MarkerColor;
                Marker.OwnerPlayerID = PlayerID;
                AttachTo.EnsureName();

                MyVisualScriptLogicProvider.AddGPSToEntity(AttachTo.Name, Name, Description, MarkerColor, PlayerID);
                Marker.Valid = true;
                return(Marker);
            }