示例#1
0
 public EventArgsPrefab(Point[] points, int prefabID, Point location, Prefab.Rotate rotate, int playerID) : base()
 {
     Points   = points;
     PrefabID = prefabID;
     Location = location;
     Rotate   = rotate;
     PlayerID = playerID;
 }
示例#2
0
        public static Prefab.Rotate AddRotate(this Prefab.Rotate rotate, Prefab.Rotate add)
        {
            byte b1 = (byte)rotate;
            byte b2 = (byte)add;
            byte b3 = (byte)((b1 + b2) % 4);

            return((Prefab.Rotate)b3 | ((rotate ^ add) & (Prefab.Rotate.horizontal | Prefab.Rotate.vertical)));
        }