Exemplo n.º 1
0
        public void AllClientsShadow(bool shadow)
        {
            var pkg = new S2C_Shadow.ArgumentData();

            pkg.Shadow = shadow;
            if (ProfilerConnect != null)
            {
                S2C_Shadow.Instance.DoCall(ref pkg, NetCore.ERouteTarget.Self, ProfilerConnect, null);
            }

            {
            }

            Action act = async() =>
            {
                var pkg1 = new S2C_TestAwait.ArgumentData();
                pkg1.Enable = true;
                S2C_TestAwait.ReturnData ret = await S2C_TestAwait.Instance.DoAwaitHashCall(pkg1, -1, NetCore.ERouteTarget.Self, ProfilerConnect, null);

                if (ret.A1 == 0)
                {
                    return;
                }
            };

            act();
        }
Exemplo n.º 2
0
 public void OnS2C_Shadow(byte userFlags, ref S2C_Shadow.ArgumentData cmd, UInt16 serialId, NetCore.NetConnection connect, ref NetCore.RPCRouter.RouteData routeInfo)
 {
     CEngine.EnableShadow = cmd.Shadow;
 }