public bool SerializeFrom(UnityUtility.CStream msgStream) { m_gemID = msgStream.ReadUInt(); m_gemType = (EGemType)msgStream.ReadUInt(); m_gemTPID = msgStream.ReadUInt(); m_gemLevel = msgStream.ReadUInt(); m_gemMatarialCount = msgStream.ReadUInt(); return(true); }
public Gem(Game game, EGemType type, Vector2 position) : base(game) { Type = type; mPosition = position; var vector = new Vector2(position.X, position.Y); mPointA = vector; vector = new Vector2(position.X, position.Y); mPointB = vector; mAmount = 0f; ZoomOut = false; ZoomIn = false; }
public Gem(Game game, EGemType type, Vector2 position) : base(game) { Type = type; mPosition = position; var vector = new Vector2(position.X, position.Y); mPointA = vector; vector = new Vector2(position.X, position.Y); mPointB = vector; mAmount = 0f; ZoomOut = false; ZoomIn = false; }