예제 #1
0
 public UGlobalAttribute(UOCallibration.CallibratedFeatures CallibratedOffset, UnmanagedType returntype, Type knowntype)
 {
     CallibratedOffsetFeature = CallibratedOffset;
     ReturnType   = returntype;
     SizeConstant = 0;
     KnownType    = knowntype;
 }
예제 #2
0
 public UVtblMethodAttribute(UOCallibration.CallibratedFeatures CallibratedOffset, UnmanagedType returntype, uint sizeconstant)
 {
     CallibratedOffsetFeature = CallibratedOffset;
     HasReturnValue           = true;
     ReturnType   = returntype;
     SizeConstant = sizeconstant;
 }
예제 #3
0
 public UHookAttribute(UOCallibration.CallibratedFeatures address, ushort stacksize, bool early)
 {
     Address    = (uint)address;
     StackSize  = stacksize;
     IsVtblHook = false;
     IsEarly    = early;
 }
예제 #4
0
 public UVtblMethodAttribute(UOCallibration.CallibratedFeatures CallibratedOffset, Type knowntype)
 {
     CallibratedOffsetFeature = CallibratedOffset;
     HasReturnValue           = true;
     ReturnType   = UnmanagedType.Interface;
     SizeConstant = 0;
     KnownType    = knowntype;
 }
예제 #5
0
 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);
 }
예제 #6
0
 //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);
     }
 }
예제 #7
0
 public UGlobalAttribute(UOCallibration.CallibratedFeatures CallibratedOffset, UnmanagedType returntype, uint sizeconstant)
 {
     CallibratedOffsetFeature = CallibratedOffset;
     ReturnType   = returntype;
     SizeConstant = sizeconstant;
 }
예제 #8
0
 public UFieldAttribute(UOCallibration.CallibratedFeatures CallibratedOffset, UnmanagedType returntype)
 {
     CallibratedOffsetFeature = CallibratedOffset;
     ReturnType   = returntype;
     SizeConstant = 0;
 }
예제 #9
0
 public UVtblMethodAttribute(UOCallibration.CallibratedFeatures CallibratedOffset)
 {
     CallibratedOffsetFeature = CallibratedOffset;
     HasReturnValue           = false;
 }
예제 #10
0
 //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));
 }