public UGlobalAttribute(UOCallibration.CallibratedFeatures CallibratedOffset, UnmanagedType returntype, Type knowntype) { CallibratedOffsetFeature = CallibratedOffset; ReturnType = returntype; SizeConstant = 0; KnownType = knowntype; }
public UVtblMethodAttribute(UOCallibration.CallibratedFeatures CallibratedOffset, UnmanagedType returntype, uint sizeconstant) { CallibratedOffsetFeature = CallibratedOffset; HasReturnValue = true; ReturnType = returntype; SizeConstant = sizeconstant; }
public UHookAttribute(UOCallibration.CallibratedFeatures address, ushort stacksize, bool early) { Address = (uint)address; StackSize = stacksize; IsVtblHook = false; IsEarly = early; }
public UVtblMethodAttribute(UOCallibration.CallibratedFeatures CallibratedOffset, Type knowntype) { CallibratedOffsetFeature = CallibratedOffset; HasReturnValue = true; ReturnType = UnmanagedType.Interface; SizeConstant = 0; KnownType = knowntype; }
public Action(SerializationInfo info, StreamingContext context) { name = (string)info.GetValue("Name", typeof(string)); boolpar = (bool)info.GetValue("boolpar", typeof(bool)); uintpar = (uint)info.GetValue("uintpar", typeof(uint)); knownpar = (UOCallibration.CallibratedFeatures)(uint) info.GetValue("knownpar", typeof(uint)); knownpar2 = (UOCallibration.CallibratedFeatures)(uint) info.GetValue("knownpar2", typeof(uint)); m_type = (ActionType)(uint)info.GetValue("type", typeof(uint)); seqpar = (Sequence)info.GetValue("sequence", typeof(Sequence)); actlist = (ActionList)info.GetValue("actlist", typeof(ActionList)); ontrue = (ActionList)info.GetValue("ontrue", typeof(ActionList)); onfalse = (ActionList)info.GetValue("onfalse", typeof(ActionList)); tocheck = (FilterList)info.GetValue("tocheck", typeof(FilterList)); actions.Add(name, this); }
//Feature check, looksup the named offset in the callibration tree. public long this[UOCallibration.CallibratedFeatures feature] { get { if (HasFeature(feature)) { return(UOCallibration.Callibrations[(uint)feature]); } else { return(0); } } set { if (HasFeature(feature)) { UOCallibration.Callibrations.Remove((uint)feature); } UOCallibration.Callibrations.Add((uint)feature, value); } }
public UGlobalAttribute(UOCallibration.CallibratedFeatures CallibratedOffset, UnmanagedType returntype, uint sizeconstant) { CallibratedOffsetFeature = CallibratedOffset; ReturnType = returntype; SizeConstant = sizeconstant; }
public UFieldAttribute(UOCallibration.CallibratedFeatures CallibratedOffset, UnmanagedType returntype) { CallibratedOffsetFeature = CallibratedOffset; ReturnType = returntype; SizeConstant = 0; }
public UVtblMethodAttribute(UOCallibration.CallibratedFeatures CallibratedOffset) { CallibratedOffsetFeature = CallibratedOffset; HasReturnValue = false; }
//Feature check, looksup the named offset in the callibration tree. //If not present it returns false, otherwise true. public bool HasFeature(UOCallibration.CallibratedFeatures tocheck) { return(UOCallibration.Callibrations.ContainsKey((uint)tocheck)); }