{"id":25743647,"url":"https://github.com/blakeliafk/unityprotobuftemplate","last_synced_at":"2026-05-16T07:47:53.818Z","repository":{"id":97852143,"uuid":"203299468","full_name":"BlakeLiAFK/UnityProtobufTemplate","owner":"BlakeLiAFK","description":"unity protobuf template","archived":false,"fork":false,"pushed_at":"2019-08-20T04:33:33.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-02T08:38:27.533Z","etag":null,"topics":["protobuf","protobuf-net","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BlakeLiAFK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-20T04:27:14.000Z","updated_at":"2019-08-20T04:34:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9fb184e-3f5b-4591-869e-6708c58f222d","html_url":"https://github.com/BlakeLiAFK/UnityProtobufTemplate","commit_stats":null,"previous_names":["blkie/unityprotobuftemplate","blakeliafk/unityprotobuftemplate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BlakeLiAFK/UnityProtobufTemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeLiAFK%2FUnityProtobufTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeLiAFK%2FUnityProtobufTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeLiAFK%2FUnityProtobufTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeLiAFK%2FUnityProtobufTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlakeLiAFK","download_url":"https://codeload.github.com/BlakeLiAFK/UnityProtobufTemplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeLiAFK%2FUnityProtobufTemplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285573087,"owners_count":27194648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-21T02:00:06.175Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["protobuf","protobuf-net","unity"],"created_at":"2025-02-26T10:29:56.645Z","updated_at":"2025-11-21T07:03:34.580Z","avatar_url":"https://github.com/BlakeLiAFK.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity Protobuf 模板\r\n开箱即用\r\n\r\n## 依赖库\r\n### protobuf-net\r\n[地址](https://github.com/DGHeroin/protobuf-net)\r\n\r\n## 例子\r\n\r\n```c#\r\nUserInfo user = new UserInfo() {\r\n    Id = 1,\r\n    Name = \"MyName\",\r\n    Address = new AddressInfo() {\r\n        Street = \"MyStreet\",\r\n        ZIP = 123456\r\n    }\r\n};\r\ntry {\r\n    byte[] bytes = Proto.Encode\u003cUserInfo\u003e(user);\r\n    UserInfo newUser = Proto.Decode\u003cUserInfo\u003e(bytes);\r\n    Debug.Log(newUser);\r\n} catch (Exception e) {\r\n    Debug.Log(e);\r\n}\r\n\r\n```\r\n\r\n```c#\r\n[ProtoContract]\r\npublic class UserInfo {\r\n    [ProtoMember(1)]\r\n    public int Id;\r\n\r\n    [ProtoMember(2)]\r\n    public string Name;\r\n\r\n    [ProtoMember(3)]\r\n    public AddressInfo Address;\r\n}\r\n\r\n[ProtoContract]\r\npublic class AddressInfo {\r\n    [ProtoMember(1)]\r\n    public string Street;\r\n\r\n    [ProtoMember(2)]\r\n    public int ZIP;\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakeliafk%2Funityprotobuftemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblakeliafk%2Funityprotobuftemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakeliafk%2Funityprotobuftemplate/lists"}