Esempio n. 1
0
    public Contexts()
    {
        actor     = new ActorContext();
        config    = new ConfigContext();
        debugging = new DebuggingContext();
        game      = new GameContext();
        gameState = new GameStateContext();
        input     = new InputContext();
        snapshot  = new SnapshotContext();

        var postConstructors = System.Linq.Enumerable.Where(
            GetType().GetMethods(),
            method => System.Attribute.IsDefined(method, typeof(Entitas.CodeGeneration.Attributes.PostConstructorAttribute))
            );

        foreach (var postConstructor in postConstructors)
        {
            postConstructor.Invoke(this, null);
        }
    }
Esempio n. 2
0
 public static void help(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
 {
     DebuggingContext.Execute(client, args, OnHelp);
 }
Esempio n. 3
0
 public static void gcinfo(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
 {
     DebuggingContext.Execute(client, args, OnGCInfo);
 }
Esempio n. 4
0
 public static void DumpConcurrentQueue(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
 {
     DebuggingContext.Execute(client, args, OnDumpConcurrentQueue);
 }
 public static void PinnedObjects(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
 {
     DebuggingContext.Execute(client, args, OnPinnedObjects);
 }
 public static void StringDuplicates(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
 {
     DebuggingContext.Execute(client, args, OnStringDuplicates);
 }
Esempio n. 7
0
 private void SyncObjects(IDataObject[] objs)
 {
     _objCache.Clear();
     objs.ForEach(o => _objCache.Add(string.Format("({0}) {1}", o.ID, DebuggingContext.GetInterfaceType(o).Type.FullName)));
     Count = objs.Length;
 }
Esempio n. 8
0
 public static void tprunning(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
 {
     DebuggingContext.Execute(client, args, OnTpRunning);
 }
Esempio n. 9
0
 public static void getmethodname(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
 {
     DebuggingContext.Execute(client, args, OnGetMethodName);
 }
Esempio n. 10
0
 public static void ShowParallelStacks(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
 {
     DebuggingContext.Execute(client, args, OnParallelStacks);
 }