public static Command write(string type, BoxModule boxModule)
        {
            var cmd = new ByteArray(ID);

            cmd.AddBytes(boxModule.write());
            cmd.UTF(type);
            return(new Command(cmd.ToByteArray(), true));
        }
Example #2
0
        public static Command write(BoxModule boxModule, OreTypeModule oreType)
        {
            var cmd = new ByteArray(ID);

            cmd.AddBytes(boxModule.write());
            cmd.AddBytes(oreType.write());
            cmd.Short(25679);
            return(new Command(cmd.ToByteArray(), false));
        }