c9cd71c3f9
# Conflicts: # Assets/PerfectWorld/Scripts/Task/ATaskTemplFixedData.cs # Assets/PerfectWorld/Scripts/Task/ATaskTemplFixedData.cs.meta # Assets/PerfectWorld/Scripts/Task/AWARD_DATA.cs # Assets/PerfectWorld/Scripts/Task/AWARD_DATA.cs.meta # Assets/PerfectWorld/Scripts/Task/AWARD_ITEMS_CAND.cs # Assets/PerfectWorld/Scripts/Task/AWARD_ITEMS_CAND.cs.meta # Assets/PerfectWorld/Scripts/Task/SizeTest.cs # Assets/PerfectWorld/Scripts/Task/SizeTest.cs.meta # Assets/PerfectWorld/Scripts/Task/TaskExpAnalyser.cs # Assets/PerfectWorld/Scripts/Task/TaskLog.txt # Assets/PerfectWorld/Scripts/Task/TaskLog.txt.meta # Assets/Scenes/HoangTest.unity
35 lines
846 B
C#
35 lines
846 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace PerfectWorld.Scripts.Task
|
|
{
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
|
public struct TASK_EXPRESSION
|
|
{
|
|
public int type;
|
|
public float value;
|
|
|
|
public bool Equals(TASK_EXPRESSION src)
|
|
{
|
|
return (type == src.type && value == src.value);
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (obj is TASK_EXPRESSION other)
|
|
{
|
|
return Equals(other);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public static bool operator ==(TASK_EXPRESSION lhs, TASK_EXPRESSION rhs)
|
|
{
|
|
return lhs.Equals(rhs);
|
|
}
|
|
|
|
public static bool operator !=(TASK_EXPRESSION lhs, TASK_EXPRESSION rhs)
|
|
{
|
|
return !lhs.Equals(rhs);
|
|
}
|
|
}
|
|
} |