/// <summary> /// </summary> /// <param name="Player"> /// </param> /// <param name="ServerInstruction"> /// </param> public UpdateColorString(IFurre Player, string ServerInstruction) : base(ServerInstruction) { if (ServerInstruction.StartsWith("B")) { instructionType = ServerInstructionType.UpdateColorString; } player = Player; //avatar shape 2 b220 // player.Shape = ConvertFromBase220(ServerInstruction.Substring(5, 2)); // partial color code ((Furre)player).FurreColors.Update(ServerInstruction.Substring(8, ColorString.ColorStringSize)); }
/// <summary> /// Initializes a new instance of the <see cref="MoveFurre"/> class. /// </summary> /// <param name="ServerInstruction">raw server instruction</param> public MoveFurre(string ServerInstruction) : base(ServerInstruction) { switch (ServerInstruction[0]) { case '/': instructionType = ServerInstructionType.AnimatedMoveAvatar; break; case 'A': instructionType = ServerInstructionType.MoveAvatar; break; } if (ServerInstruction.Length > 4) { Player = new Furre(0); } }
/// <summary> /// Initializes a new instance of the <see cref="MoveFurre"/> class. /// </summary> /// <param name="ServerInstruction">The server instruction.</param> /// <param name="ActiveFurre">The active furre.</param> public MoveFurre(string ServerInstruction, ref Furre ActiveFurre) : this(ServerInstruction) { ActiveFurre.Location = new FurrePosition(ServerInstruction.Substring(5, 4)); Player = ActiveFurre; }