예제 #1
0
        public byte[] write()
        {
            var cmd = new ByteArray(ID);

            cmd.AddBytes(oreType.write());
            cmd.Double(count);
            return(cmd.Message.ToArray());
        }
예제 #2
0
        public static Command write(short eventType, OreTypeModule oreType, string hash)
        {
            var cmd = new ByteArray(ID);

            cmd.Short(eventType);
            cmd.AddBytes(oreType.write());
            cmd.UTF(hash);
            return(new Command(cmd.ToByteArray(), false));
        }
예제 #3
0
        public static Command write(string hash, OreTypeModule oreType, int x, int y)
        {
            var cmd = new ByteArray(ID);

            cmd.UTF(hash);
            cmd.AddBytes(oreType.write());
            cmd.Integer(x);
            cmd.Integer(y);
            return(new Command(cmd.ToByteArray(), false));
        }