RegisterOperation fails after move to Photon3
Options
Hello all! Help Help! Can't move to Photon3
Is there some examles how to use OperationCache.RegisterOperation on Photon3? Can't find it on examples for P3, only "CASE" method is observed
For now I have got error like:
When I try to use this Photon2 kind of method declaration:
which is third parameter? :?:
Is there some examles how to use OperationCache.RegisterOperation on Photon3? Can't find it on examples for P3, only "CASE" method is observed
For now I have got error like:
ERROR Ph3test.Server.PhotonApplication - Operation SharedOperations.OperationChatMessage has wrong parameter count; 3 required.
When I try to use this Photon2 kind of method declaration:
OperationCache.RegisterOperation(OperationChatMessage); [Operation(OperationCode = (byte)OperationCode.ChatMessage)] public static OperationResponse OperationChatMessage(Peer peer, OperationRequest request) { ... }
which is third parameter? :?:
0
Comments
-
The third parameter should be of the type Photon.SocketServer.SendParameters0