Example #1
0
        public static FieldInfo GetFinishCallBack(AbstractGame game)
        {
            FieldInfo callBackField = PrivateValueAccessor.GetPrivateFieldInfo(game.GetType().BaseType, "callback_0");

            if (callBackField == null)
            {
                return(null);
            }

            return(callBackField);
        }
Example #2
0
        public static FieldInfo GetCreatePlayerFunc(AbstractGame game)
        {
            FieldInfo createOwnerFunc = PrivateValueAccessor.GetPrivateFieldInfo(game.GetType().BaseType, "func_0");

            if (createOwnerFunc == null)
            {
                return(null);
            }

            return(createOwnerFunc);
        }