zestylife / EuNet

Peer to peer network solution for multiplayer games.
MIT License
142 stars 26 forks source link

NetDataObjectAttribute issue (?) #6

Open YMitrohovich opened 3 years ago

YMitrohovich commented 3 years ago

I don't know if I did everything right, but if you try to generate code using scripts with NetDatObject attribute, the codegenerator will not find this attribute so that source code will be ignored during the generation process. I used source codes from your EuNet-Starter project: IShopRpc.cs, ILoginRpc.cs IActorViewRpc.cs and UserUnfo.cs. On the screenshot below you can see that only 3 out of 4 source code are generated.

cmd

As far as I understand this issue, the problem might be in the Utility.cs in IsNetDataObjectAttribute method, because attr variable never gets any value from GetCustomAttribute, except null.

NetDataObjectAttribute

Can you please tell me is this a script issue or I just to dumb? 😄