/* Blunk - Multi User Server Framework Copyright 2009 - 2010 Nils W [nillus.net] Michael Graham [script-o-matic.net] This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . * PORTED TO C# BY awa500! */ using System; /** * Provides the types known for the MUS protocol. * * @author Nils * @see http://kb2.adobe.com/cps/154/tn_15465.html */ namespace Holo.Source.Socket_servers.MUS { public class MusTypes { /** * No encoded data or additional bytes */ public static short Void = 0; /** * 4 bytes in network (not Intel) order */ public static short Integer = 1; /** * 4 bytes with string length, then N bytes of string data, not null terminated,but padded to an even byte boundary */ public static short Symbol = 2; /** * 4 bytes with string length, then N bytes of string data, not null terminated,but padded to an even byte boundary */ public static short String = 3; /** * 4 bytes with data length, then N bytes of binary picture data, padded to an even byte boundary */ public static short Picture = 5; /** * 8 bytes in network (not Intel) order */ public static short Float = 6; /** * 4 bytes with the number of elements in the list, then N values */ public static short List = 7; /** * 2 numeric values, each may be either an integer or float. First is X, then Y */ public static short Point = 8; /** * 4 numeric values, each may be either an integer or float. First is top, left, bottom, then right */ public static short Rect = 9; /** * 4 bytes with the number of elements in the list, then N pairs of values. The first of each pair is a symbol, then the corresponding value */ public static short PropList = 10; /** * 4 bytes of binary data */ public static short Color = 18; /** * 16 bytes of binary data */ public static short Date = 19; /** * 4 bytes with the data length, then N bytes of binary media data, padded to an even byte boundary */ public static short Media = 20; /** * 3 floats (8 bytes each, 24 total) in network order */ public static short Vector3D = 22; /** * 16 floats (8 bytes each, 128 total) in network order */ public static short Transform3D = 23; } }