Example #1
0
 /*
  * .method private hidebysig static void  OnWorldQuit() cil managed
  *
  * // Code size       46 (0x2e)
  * .maxstack  3
  * .locals init (class [mscorlib]System.Exception V_0)
  * IL_0000:  ldsfld     class [mscorlib]System.EventHandler [SimIFace]Sims3.SimIFace.World::sOnWorldQuitEventHandler
  * IL_0005:  brfalse.s  IL_002d
  *
  * .try
  * {
  * IL_0007:  ldsfld     class [mscorlib]System.EventHandler [SimIFace]Sims3.SimIFace.World::sOnWorldQuitEventHandler
  * IL_000c:  ldsfld     class [SimIFace]Sims3.SimIFace.IWorld [SimIFace]Sims3.SimIFace.World::gWorld
  * IL_0011:  callvirt   instance class [mscorlib]System.Type [mscorlib]System.Object::GetType()
  * IL_0016:  newobj     instance void [SimIFace]Sims3.SimIFace.World/OnWorldQuitEventArgs::.ctor()
  * IL_001b:  callvirt   instance void [mscorlib]System.EventHandler::Invoke(object,
  *                                                                       class [mscorlib]System.EventArgs)
  * IL_0020:  leave.s    IL_002d
  *
  * }  // end .try
  * catch [mscorlib]System.Exception
  * {
  * IL_0022:  stloc.0
  * IL_0023:  ldnull
  * IL_0024:  ldloc.0
  * IL_0025:  call       bool [SimIFace]Sims3.SimIFace.ScriptErrorWindow::DisplayScriptError(class [SimIFace]Sims3.SimIFace.IScriptProxy,
  *                                                                                       class [mscorlib]System.Exception)
  * IL_002a:  pop
  * IL_002b:  leave.s    IL_002d
  *
  * }  // end handler
  * IL_002d:  ret
  */
 private new static void OnWorldQuit()
 {
     if (sOnWorldQuitEventHandler != null)
     {
         try
         {
             sOnWorldQuitEventHandler(gWorld.GetType(), new OnWorldQuitEventArgs());
         }
         catch (Exception e)
         {
             ScriptErrorWindow.DisplayScriptError(null, e);
         }
     }
 }
Example #2
0
 /*
  * .method private hidebysig static void  OnObjectPlacedInLot(uint64 objectId,
  *
  * // Code size       48 (0x30)
  * .maxstack  5
  * .locals init (class [mscorlib]System.Exception V_0)
  * IL_0000:  ldsfld     class [mscorlib]System.EventHandler [SimIFace]Sims3.SimIFace.World::sOnObjectPlacedInLotEventHandler
  * IL_0005:  brfalse.s  IL_002f
  *
  * .try
  * {
  * IL_0007:  ldsfld     class [mscorlib]System.EventHandler [SimIFace]Sims3.SimIFace.World::sOnObjectPlacedInLotEventHandler
  * IL_000c:  ldsfld     class [SimIFace]Sims3.SimIFace.IWorld [SimIFace]Sims3.SimIFace.World::gWorld
  * IL_0011:  callvirt   instance class [mscorlib]System.Type [mscorlib]System.Object::GetType()
  * IL_0016:  ldarg.0
  * IL_0017:  ldarg.1
  * IL_0018:  newobj     instance void [SimIFace]Sims3.SimIFace.World/OnObjectPlacedInLotEventArgs::.ctor(uint64,
  *                                                                                                    uint64)
  * IL_001d:  callvirt   instance void [mscorlib]System.EventHandler::Invoke(object,
  *                                                                       class [mscorlib]System.EventArgs)
  * IL_0022:  leave.s    IL_002f
  *
  * }  // end .try
  * catch [mscorlib]System.Exception
  * {
  * IL_0024:  stloc.0
  * IL_0025:  ldnull
  * IL_0026:  ldloc.0
  * IL_0027:  call       bool [SimIFace]Sims3.SimIFace.ScriptErrorWindow::DisplayScriptError(class [SimIFace]Sims3.SimIFace.IScriptProxy,
  *                                                                                       class [mscorlib]System.Exception)
  * IL_002c:  pop
  * IL_002d:  leave.s    IL_002f
  *
  * }  // end handler
  * IL_002f:  ret
  */
 private new static void OnObjectPlacedInLot(ulong objectId, ulong lotId)
 {
     if (sOnObjectPlacedInLotEventHandler != null)
     {
         try
         {
             sOnObjectPlacedInLotEventHandler(gWorld.GetType(), new OnObjectPlacedInLotEventArgs(objectId, lotId));
         }
         catch (Exception e)
         {
             ScriptErrorWindow.DisplayScriptError(null, e);
         }
     }
 }
Example #3
0
 /*
  * .method private hidebysig static void  OnWorldLoadFinished() cil managed
  *
  * // Code size       51 (0x33)
  * .maxstack  3
  * .locals init (class [mscorlib]System.Exception V_0)
  * IL_0000:  call       void [SimIFace]Sims3.SimIFace.World::ResetCompositeTimes()
  * IL_0005:  ldsfld     class [mscorlib]System.EventHandler [SimIFace]Sims3.SimIFace.World::sOnWorldLoadFinishedEventHandler
  * IL_000a:  brfalse.s  IL_0032
  *
  * .try
  * {
  * IL_000c:  ldsfld     class [mscorlib]System.EventHandler [SimIFace]Sims3.SimIFace.World::sOnWorldLoadFinishedEventHandler
  * IL_0011:  ldsfld     class [SimIFace]Sims3.SimIFace.IWorld [SimIFace]Sims3.SimIFace.World::gWorld
  * IL_0016:  callvirt   instance class [mscorlib]System.Type [mscorlib]System.Object::GetType()
  * IL_001b:  newobj     instance void [SimIFace]Sims3.SimIFace.World/OnWorldLoadFinishedEventArgs::.ctor()
  * IL_0020:  callvirt   instance void [mscorlib]System.EventHandler::Invoke(object,
  *                                                                       class [mscorlib]System.EventArgs)
  * IL_0025:  leave.s    IL_0032
  *
  * }  // end .try
  * catch [mscorlib]System.Exception
  * {
  * IL_0027:  stloc.0
  * IL_0028:  ldnull
  * IL_0029:  ldloc.0
  * IL_002a:  call       bool [SimIFace]Sims3.SimIFace.ScriptErrorWindow::DisplayScriptError(class [SimIFace]Sims3.SimIFace.IScriptProxy,
  *                                                                                       class [mscorlib]System.Exception)
  * IL_002f:  pop
  * IL_0030:  leave.s    IL_0032
  *
  * }  // end handler
  * IL_0032:  ret
  */
 private new static void OnWorldLoadFinished()
 {
     ResetCompositeTimes();
     if (sOnWorldLoadFinishedEventHandler != null)
     {
         try
         {
             sOnWorldLoadFinishedEventHandler(gWorld.GetType(), new OnWorldLoadFinishedEventArgs());
         }
         catch (Exception e)
         {
             ScriptErrorWindow.DisplayScriptError(null, e);
         }
     }
 }