Esempio n. 1
0
 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);
 }
Esempio n. 2
0
		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;
		}
Esempio n. 3
0
        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;
        }