Esempio n. 1
0
 public void DrawString(RemoteSpriteFont font, string str, Vector2 position, Color color)
 {
     Server.SendCommand(new CommandSpriteBatchDrawString(
                            this,
                            font,
                            str,
                            position,
                            color,
                            0.0f,
                            Vector2.Zero,
                            new Vector2(1.0f, 1.0f),
                            SpriteEffects.None,
                            1.0f));
 }
Esempio n. 2
0
 public void DrawString(RemoteSpriteFont font, string str, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects spriteEffects, float layerDepth)
 {
     Server.SendCommand(new CommandSpriteBatchDrawString(
                            this,
                            font,
                            str,
                            position,
                            color,
                            rotation,
                            origin,
                            new Vector2(scale, scale),
                            spriteEffects,
                            layerDepth));
 }
 public CommandSpriteBatchDrawString(
     RemoteSpriteBatch batch,
     RemoteSpriteFont font,
     string str,
     Vector2 position,
     Color color,
     float rotation,
     Vector2 origin,
     Vector2 scale,
     SpriteEffects spriteEffects,
     float layerDepth)
 {
     Batch         = batch;
     String        = str;
     Font          = font;
     Position      = position;
     Color         = color;
     Rotation      = rotation;
     Origin        = origin;
     Scale         = scale;
     LayerDepth    = layerDepth;
     SpriteEffects = spriteEffects;
 }