public unsafe int setObjVarInt(int serial, byte* name, int value) { if (!Exists(serial)) return 0; string varname = StringPointerUtils.GetAsciiString(name); MockObjVarAttachments.AddAttachment(serial, VariableType.Integer, varname, value); return 1; }
public unsafe int setObjVarLocation(int serial, byte* name, Location* value) { if (!Exists(serial)) return 0; string varname = StringPointerUtils.GetAsciiString(name); Location varvalue = *value; MockObjVarAttachments.AddAttachment(serial, VariableType.Location, varname, varvalue); return 1; }
public unsafe int setObjVarString(int serial, byte *name, byte *value) { if (!Exists(serial)) { return(0); } string varname = StringPointerUtils.GetAsciiString(name); string varvalue = StringPointerUtils.GetAsciiString(value); MockObjVarAttachments.AddAttachment(serial, VariableType.String, varname, varvalue); return(1); }