Exemplo n.º 1
0
        public override int GetHashCode()
        {
            var hashCode = 346366327;

            hashCode = hashCode * -1521134295 + TitleId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + GameVersion.GetHashCode();
            hashCode = hashCode * -1521134295 + DlcVersion.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Path);

            return(hashCode);
        }
Exemplo n.º 2
0
 static int GetHashCode(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         GameVersion obj = (GameVersion)ToLua.CheckObject <GameVersion>(L, 1);
         int         o   = obj.GetHashCode();
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     return(GameVersion.GetHashCode() ^ FrameworkVersion.GetHashCode() ^ EngineVersion.GetHashCode());
 }