protected override bool ValidateInternal(ref RpcExecutionContext ctx) { Vector3 point = ctx.GetArgument <Vector3>(0); Quaternion quaternion = ctx.GetArgument <Quaternion>(1); return(true); }
protected override bool ValidateInternal(ref RpcExecutionContext ctx) { int id = ctx.GetArgument <int>(0); int actorID = ctx.GetArgument <int>(1); return(true); }
protected override bool ValidateInternal(ref RpcExecutionContext ctx) { int amount = ctx.GetArgument <int>(0); string argumentTypeName = ctx.GetArgument <string>(1); Enum.TryParse <EvidenceTypeEnum>(argumentTypeName.Replace(' ', '_'), out var evidenceType); return(true); }
protected override bool ValidateInternal(ref RpcExecutionContext ctx) { //var actorId = ctx.GetArgument<PhotonPlayer>(0); // ? var actorId = ctx.GetArgument <Photon.Realtime.Player>(0); // ? return(ctx.Source?.Equals(actorId) ?? false); }
protected override bool ValidateInternal(ref RpcExecutionContext ctx) { var src = ctx.Source; var actorId = ctx.GetArgument <int>(0); return((src == null || src.IsMasterClient) && actorId == 999 || src?.ActorNumber == actorId); }
protected override bool ValidateInternal(ref RpcExecutionContext ctx) { bool isOn = ctx.GetArgument <bool>(0); return(true); }
protected override bool ValidateInternal(ref RpcExecutionContext ctx) { float timer = ctx.GetArgument <float>(0); return(true); }
protected override bool ValidateInternal(ref RpcExecutionContext ctx) { int newIndex = ctx.GetArgument <int>(0); return(true); }