Improved weapon and turret sync

This commit is contained in:
sardelka9515
2022-10-19 19:07:46 +08:00
parent a50ae062d8
commit 69419d41e0
23 changed files with 541 additions and 673 deletions

View File

@ -0,0 +1,27 @@
using RageCoop.Core;
using Newtonsoft.Json;
using System.Data.HashFunction.Jenkins;
using System;
namespace RageCoop.Client.DataDumper
{
public static class Program
{
static UInt32 Hash(string key)
{
int i = 0;
uint hash = 0;
while (i != key.Length)
{
hash += key[i++];
hash += hash << 10;
hash ^= hash >> 6;
}
hash += hash << 3;
hash ^= hash >> 11;
hash += hash << 15;
return hash;
}
}
}