Exemplo n.º 1
0
 private static SlimProfilerEntry SingleMethodEntryProvider_GridConveyorRequest(IMyConveyorEndpointBlock __anyBlock, string __key)
 {
     if (__anyBlock is IMyEntity entity)
     {
         return(ProfilerData.EntityEntry(entity)?.GetSlim(__key));
     }
     return(null);
 }
Exemplo n.º 2
0
 private SlimProfilerEntry GetterImplEntity()
 {
     return(!_owner.IsAllocated ? null : ProfilerData.EntityEntry(_owner.Target as IMyEntity));
 }
Exemplo n.º 3
0
 private static SlimProfilerEntry SingleMethodEntryProvider_SlimBlock_Damage(MySlimBlock __instance, MyStringHash damageType, string __key)
 {
     return(ProfilerData.EntityEntry(__instance?.CubeGrid)?.GetFat("Damage")?.GetSlim(damageType.String));
 }
Exemplo n.º 4
0
 // ReSharper disable UnusedMember.Local
 private static SlimProfilerEntry SingleMethodEntryProvider_Entity(IMyEntity __instance, string __key)
 {
     return(ProfilerData.EntityEntry(__instance)?.GetSlim(__key));
 }