CreateCardAt() public method

public CreateCardAt ( int id, System.Guid modelId, int x, int y, bool faceUp, bool persist ) : void
id int
modelId System.Guid
x int
y int
faceUp bool
persist bool
return void
Ejemplo n.º 1
0
        public void CreateCardAt(int[] id, Guid[] modelId, int[] x, int[] y, bool faceUp, bool persist)
        {
            short s = State.Instance.GetPlayer(_sender).Id;

            for (int i = 0; i < id.Length; i++)
            {
                id[i] = s << 16 | (id[i] & 0xffff);
            }
            _broadcaster.CreateCardAt(id, modelId, x, y, faceUp, persist);
        }
Ejemplo n.º 2
0
        public void CreateCardAt(int[] id, ulong[] key, Guid[] modelId, int[] x, int[] y, bool faceUp, bool persist)
        {
            short s = _clients[_sender].Id;

            for (int i = 0; i < id.Length; i++)
            {
                id[i] = s << 16 | (id[i] & 0xffff);
            }
            _broadcaster.CreateCardAt(id, key, modelId, x, y, faceUp, persist);
        }