public static void RMI() { string fn = CONFIG.CLIENT_PATH + "DATAs/Info/Item03.rmi"; var rmi = new RMI(new ByteReader(File.ReadAllBytes(fn))); var item = new RMI.Item(); item.Message = new CTF.Ref(6, 5, 700); SetCommonItemFields(item); rmi.Items.Add(item); File.WriteAllBytes(fn, rmi.Save(new ByteWriter()).ToByteArray()); }
public static void RMI() { string fn = CONFIG.CLIENT_PATH + "DATAs/Info/Item03.rmi"; var rmi = new RMI(new ByteReader(File.ReadAllBytes(fn))); var item = new RMI.Item(); item.Message = new CTF.Ref(6,5,700); SetCommonItemFields(item); rmi.Items.Add(item); File.WriteAllBytes(fn, rmi.Save(new ByteWriter()).ToByteArray()); }