/// <summary> /// Adds/creates all <c>SmileyType</c>s /// </summary> public static void Init() { Smile = new SmileyType("Smile", 0); Happy = new SmileyType("Happy", Player.Height); Laughing = new SmileyType("Laughing", Player.Height * 2); Tounge = new SmileyType("Tounge", Player.Height * 3); Oh = new SmileyType("Oh", Player.Height * 4); Meh = new SmileyType("Meh", Player.Height * 5); Sad = new SmileyType("Sad", Player.Height * 6); Upset = new SmileyType("Upset", Player.Height * 7); }
public void Decode(NetIncomingMessage im) { this.ID = im.ReadByte(); this.Smiley = SmileyType.FromID(im.ReadByte()); }
public PlayerSmileyMessage(Player player, SmileyType smiley) { this.ID = player.ID; this.Smiley = smiley; }